New submission from Ruben Reifenberg:

Python 2.4.4 - 64 Bit
This code reproduceably fails with
IndexError: pop from empty list


def start(x):
        x.start()
        
if __name__ == "__main__":
        import hotshot
        prof = hotshot.Profile("test3_stats")
        start(prof)
        #prof.start()   
        prof.stop()
        prof.close()
        from hotshot import stats
        s = stats.load("test3_stats")

Note1: This issue may be identical with Issue1019882 (another situation
but same Error.)
Note2: Workaround exists: Replace the line "start(prof)" with
"prof.start()".
In this case, the resulting stats (binary) file is 1 Byte shorter, and
no error happens.

----------
components: Library (Lib)
messages: 57061
nosy: ratsberg
severity: minor
status: open
title: hotshot IndexError when loading stats
type: crash
versions: Python 2.4

__________________________________
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1375>
__________________________________
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to