[Python-Dev] __subclasses__() return order
PJ Eby
pje at telecommunity.com
Sat May 25 19:03:57 CEST 2013
More information about the Python-Dev mailing list
Sat May 25 19:03:57 CEST 2013
- Previous message: [Python-Dev] __subclasses__() return order
- Next message: [Python-Dev] __subclasses__() return order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sat, May 25, 2013 at 9:18 AM, Antoine Pitrou <solipsis at pitrou.net> wrote: > In http://bugs.python.org/issue17936, I proposed making tp_subclasses > (the internal container implementing object.__subclasses__) a dict. > This would make the return order of __subclasses__ completely > undefined, while it is right now slightly predictable. I have never seen > __subclasses__ actually used in production code, so I'm wondering > whether someone might be affected by such a change. FWIW, when I've used __subclasses__, I've never depended on it having a stable or predictable order. (I find it somewhat difficult to imagine *why* one would do that, but of course that doesn't mean nobody has done it.)
- Previous message: [Python-Dev] __subclasses__() return order
- Next message: [Python-Dev] __subclasses__() return order
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list