eval() of empty string hangs

Peter Otten __peter__ at web.de
Wed Jul 28 16:39:58 CEST 2004


Chris Connett wrote:

>         self.logger.debug( 'before second parse' )
>         self.references = eval( file(
>             self.temp_path + '/referenceOutput' ).read() )
 

You could modify the above to

self.logger.debug( 'before read' )
data = file(...).read()
self.logger.debug( 'before second parse' )
self.references = eval(data)

to verify that eval() is indeed the culprit.

Peter




More information about the Python-list mailing list