The Voidspace Techie Blog

Gravatar From a conversation at PyCon: You were right about __new__ being able to return lists (or anything) going back to at least python 2.2. Which makes me wonder what I was doing when I wrote this comment in some code
""" __new__ doesn't allow a list of objects to be returned, so ThisClass wraps the list to be returned which gets unwrapped in the OtherClass"""


Name:

Email:

URL:

Comment:  ? 

 

Commenting by HaloScan