|
|
|
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"""
Jack Diederich |
Homepage |
08/03/23 - 4:40 am | #
|
|
|
Commenting by HaloScan
|