R. David Murray <rdmur...@bitdance.com> added the comment: To set the value of an immutable type you must use the __new__ method. By the time __init__ is called the value has already be established, and in the case of int it defaults to 0.
---------- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue12538> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com