Changeset 391 for python/trunk/Lib/test/test_descrtut.py
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Lib/test/test_descrtut.py
r2 r391 67 67 68 68 >>> def sorted(seq): 69 ... seq.sort( )69 ... seq.sort(key=str) 70 70 ... return seq 71 71 >>> print sorted(a.keys()) … … 330 330 331 331 Now let's define a class with an attribute x defined by a pair of methods, 332 getx() and andsetx():332 getx() and setx(): 333 333 334 334 >>> class C(object):
Note:
See TracChangeset
for help on using the changeset viewer.