Andrew Shuiu added the comment:
Hello Murray,
That seems a little strange to me, because if an object is instance of
a class, it should inherit all of it attributes.
Is it an optimization issue? because I observed that all
instances of a class that has such "static" attributes, s
New submission from Andrew Shuiu :
Interpreter do not fill in __dict__ attribute of a class which has atributes.
dir() shows them, but not __dict__. It works only when attributes are created
dynamically at runtime, such as class.attribute = value, not in class
definition.
Behaviour is the
Changes by Andrew Shuiu :
--
versions: +Python 3.1
___
Python tracker
<http://bugs.python.org/issue3924>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andrew Shuiu :
Puting 2 tuples like (100, data1), (100, data2) in a PriorityQueue
generates an builtins.TypeError: unorderable types: data1 < data2
Code which generates error:
theQueue.put((100, object1()),True)
theQueue.put((100, object1()),True)
Snippet from er