[issue1504] Add 2to3 fixer for (un)bound methods
Guido van Rossum
report at bugs.python.org
Fri Nov 30 23:51:12 CET 2007
Guido van Rossum added the comment:
> Whatever you say. But shouldn't we make people to use types.MethodType()
> or whatever we use as the new module for PyMethod_Type()? People are
> going to use types.MethodType() when they see the deprecation warning.
Well, if new.method is deprecated, then types.MethodType should be
doubly deprecated. The types module was only ever intended for type
checking, not for creating new instances.
The correct solution will be to use whatever we end up deciding about
pyvm. Certainly the types module will go.
Maybe new in 2.6 should be a -3 deprecation only?
__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1504>
__________________________________
More information about the Python-bugs-list
mailing list