Open GoogleCodeExporter opened 9 years ago
This is a straight up Python 3 bug:
https://docs.python.org/3/reference/datamodel.html?highlight=__slots__#object.__
slots__
"__slots__ are implemented at the class level by creating descriptors
(Implementing Descriptors) for each variable name. As a result, class
attributes cannot be used to set default values for instance variables defined
by __slots__; otherwise, the class attribute would overwrite the descriptor
assignment."
The fix should be easy; assign default values in the __init__() instead of
class variable.
Original comment by war...@gmail.com
on 1 Jun 2015 at 10:30
Looks like this is already fixed in their upstream, but not yet released.
Original comment by war...@gmail.com
on 1 Jun 2015 at 10:34
Yes, it was fixed on
https://code.google.com/p/python-progressbar/source/detail?spec=svn235f632a9c86d
7a84c607151d5127652102549ab&r=3c94a3a1ebe1325c7c605cc8f11126dcc632b04d
I thought this was included in the 2.3 release. I'll probably have to do
another release, then
Original comment by nilton.v...@gmail.com
on 2 Jun 2015 at 12:21
Original issue reported on code.google.com by
mort...@gmail.com
on 11 Apr 2015 at 11:16