This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2012年02月14日 11:38 by ubershmekel, last changed 2022年04月11日 14:57 by admin. This issue is now closed.
| Messages (1) | |||
|---|---|---|---|
| msg153337 - (view) | Author: Yuval Greenfield (ubershmekel) * | Date: 2012年02月14日 11:38 | |
I ran the following code: import time time.sleep(10) print 1 / 0 And then modified the source before it hit the exception, python prints out the wrong lines from the new source file. e:\Dropbox\dev\python\metricbot>c:\python32\python test.py Traceback (most recent call last): File "test.py", line 3, in <module> alkdf;alsdkf;l ZeroDivisionError: division by zero What should have been printed out: e:\Dropbox\dev\python\metricbot>test.py Traceback (most recent call last): File "E:\Dropbox\dev\python\metricbot\test.py", line 3, in <module> print 1 / 0 ZeroDivisionError: integer division or modulo by zero Although this is a toy example, I did run in to the problem when working on a long running script that I was upgrading. Tested it and got the same results on python 2.7 and 3.2. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:57:26 | admin | set | github: 58216 |
| 2012年02月14日 13:17:51 | flox | set | status: open -> closed resolution: duplicate superseder: Unupdated source file in traceback |
| 2012年02月14日 11:38:58 | ubershmekel | create | |