Message6422

Author larry
Recipients larry
Date 2011-03-01.10:28:08
SpamBayes Score 2.0206968e-05
Marked as misclassified No
Message-id <1298975288.71.0.564129298331.issue1714@psf.upfronthosting.co.za>
In-reply-to
Content
A python program with the following fragment...

try:
    import psyco            # a specializing [runtime] compiler
    have_psyco = True       # for 32-bit compilations of Python
    print 'psyco enabled'
except:
    have_psyco = False

should have failed and have_psyco set to False.  It wasn't.  Instead a module named "psyco" was created with a single element "__name__" set to "psyco".  Later a conditioned dependency based on have_psyco being True caused a crash.  

The same program ran just fine after the offending psyco-based statements were commented out.
History
Date User Action Args
2011-03-01 10:28:08larrysetrecipients: + larry
2011-03-01 10:28:08larrysetmessageid: <1298975288.71.0.564129298331.issue1714@psf.upfronthosting.co.za>
2011-03-01 10:28:08larrylinkissue1714 messages
2011-03-01 10:28:08larrycreate