random.py

Bill Jackson jackson at hotmail.com
Thu Apr 26 07:08:42 CEST 2007


In random.py (Python 2.5.1), line 86 says:

    VERSION = 2    # used by getstate/setstate

Then, in the definition of Random.setstate, we have:

    if version == 2:

Why is it not:

    if version == self.VERSION:



More information about the Python-list mailing list