[Python-Dev] __subclasses__() return order

Robert Kern robert.kern at gmail.com
Sun May 26 06:19:08 CEST 2013

On 2013-05-25 09:18, Antoine Pitrou wrote:
> Hello,
> 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.

I do use a package that does use __subclasses__ in production code, but the 
order is unimportant.

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
  that is made terrible by our own mad attempt to interpret it as though it had
  an underlying truth."
   -- Umberto Eco

More information about the Python-Dev mailing list