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.

Author ppperry
Recipients kbk, ppperry, roger.serwy, terry.reedy
Date 2015-06-07.00:09:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1433635749.16.0.07660129353.issue24252@psf.upfronthosting.co.za>
In-reply-to
Content
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).
History
Date User Action Args
2015-06-07 00:09:09ppperrysetrecipients: + ppperry, terry.reedy, kbk, roger.serwy
2015-06-07 00:09:09ppperrysetmessageid: <1433635749.16.0.07660129353.issue24252@psf.upfronthosting.co.za>
2015-06-07 00:09:09ppperrylinkissue24252 messages
2015-06-07 00:09:08ppperrycreate