what should we use instead of the 'new' module?

Flavio flavio.rump at gmail.com
Wed Nov 12 22:32:03 EST 2008


How is this code going to look like in Python 3.0? (it's deprecated
according to http://docs.python.org/library/new.html#module-new, but
it does not tell what to use instead)

 method = new.instancemethod(raw_func, None, cls)
 setattr(cls, name, method)

Can we write code in python2.5/2.6 that will work in 3.0?



More information about the Python-list mailing list