Message244935
Another example of this overzealous removing is when you create a module named rpc, run, RemoteDebugger, or bdb.
For example (in this environment, a file in the current directory named rpc.py exists and refers to the undefined name "bar"):
>>>import rpc
Traceback (most recent call last):
File "<pyshell#x>", line 1, in <module>
import rpc
NameError: name 'bar' is not defined
The correct traceback is:
Traceback (most recent call last):
File "<pyshell#x>", line 1, in <module>
File "rpc.py", line 2, in <module>
bar
NameError: name 'bar' is not defined
The IDLE debugger also refuses to debug code in the above file (only if it is named "rpc" not any of the other names). |
|
Date |
User |
Action |
Args |
2015-06-07 00:09:09 | ppperry | set | recipients:
+ ppperry, terry.reedy, kbk, roger.serwy |
2015-06-07 00:09:09 | ppperry | set | messageid: <1433635749.16.0.07660129353.issue24252@psf.upfronthosting.co.za> |
2015-06-07 00:09:09 | ppperry | link | issue24252 messages |
2015-06-07 00:09:08 | ppperry | create | |
|