'new' module deprecation in python2.6
mcrute at gmail.com
Sat Nov 29 18:04:09 CET 2008
On Sat, Nov 29, 2008 at 11:52 AM, David Pratt <fairwinds.dp at gmail.com> wrote:
> Can someone tell me why 'new' has been deprecated in python 2.6 and provide
> direction for code that uses new for the future.
> I find new is invaluable for some forms of automation. I don't see a
> replacement for python 3 either. Many thanks.
You might want to take a look at PEP 3108 which says:
* Just a rebinding of names from the 'types' module.
* Can also call type built-in to get most types easily.
* Docstring states the module is no longer useful as of revision
Michael E. Crute
God put me on this earth to accomplish a certain number of things.
Right now I am so far behind that I will never die. --Bill Watterson
More information about the Python-list