Function name unchanged in error message
andrew cooke
andrew at acooke.org
Sat Jan 30 17:26:43 EST 2010
On Jan 29, 11:50 am, exar... at twistedmatrix.com wrote:
> new.function and new.code will let you construct new objects with
> different values (and copying over whichever existing attributes you
> want to preserve).
unfortunately new is deprecated and dropped from 3. i can't see how
the same functionality is available in the types module for 3 - am i
missing something obvious?
http://docs.python.org/library/new.html
http://docs.python.org/3.1/library/types.html#module-types
thanks,
andrew
More information about the Python-list
mailing list