mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
* ftplib.py: added abort() command (sends oob data).
* Several modules: change "class C(): ..." to "class C: ...". * flp.py: support for frozen forms. * Added string.find() which is like index but returns -1 if not found
This commit is contained in:
parent
b3f7258f14
commit
d316607732
15 changed files with 127 additions and 35 deletions
|
|
@ -170,14 +170,14 @@ def dumptype(x, typedict, types, stack):
|
|||
print 'def some_function(): pass'
|
||||
print FN, '[', `uid`, '] = type(some_function)'
|
||||
elif x == type(some_class):
|
||||
print 'class some_class(): pass'
|
||||
print 'class some_class: pass'
|
||||
print FN, '[', `uid`, '] = type(some_class)'
|
||||
elif x == type(some_instance):
|
||||
print 'class another_class(): pass'
|
||||
print 'class another_class: pass'
|
||||
print 'some_instance = another_class()'
|
||||
print FN, '[', `uid`, '] = type(some_instance)'
|
||||
elif x == type(some_instance.method):
|
||||
print 'class yet_another_class():'
|
||||
print 'class yet_another_class:'
|
||||
print ' def method(): pass'
|
||||
print 'another_instance = yet_another_class()'
|
||||
print FN, '[', `uid`, '] = type(another_instance.method)'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue