Python 2.7.3 tempfile.py, ln34, from random import Random as _Random

Dave Angel d at davea.name
Mon Mar 25 13:44:46 CET 2013


On 03/25/2013 08:29 AM, dbv wrote:
> In Python 2.7.3, at ln34 the source file tempfile.py states:
>
> from random import Random as _Random
>
> But, Random is a Class.
>

Have you just tried the following:

    import random
    print dir(random.random)
    print random.__file__

I suspect you have another random.py (or equivalent) in your sys.path



-- 
DaveA



More information about the Python-list mailing list