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.

classification
Title: small py3k issue in rlcompleter
Type: behavior Stage:
Components: Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: eric.araujo, rmcgibbo
Priority: normal Keywords:

Created on 2012-12-03 09:55 by rmcgibbo, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (3)
msg176833 - (view) Author: Robert McGibbon (rmcgibbo) * Date: 2012-12-03 09:55
I'm not really sure how what the format for filing bugs with python is, so I'm sorry in advance if I've done something wrong.

There is a very small py3k bug in the readline completer (rlcompleter.py).

Specifically, if you look at line 105 (http://hg.python.org/cpython/file/03ce83e43e1b/Lib/rlcompleter.py#l105), you can see that the rlcompleter module is trying to remove '__builtins__' from the list of possible completions that it gives. This made sense in python2.x, but sense the name '__bultins__' was changed to 'builtins', perhaps the line should be changed?

The same issue applies on line 131-134 of the same file I think.

Thanks!
msg176838 - (view) Author: Robert McGibbon (rmcgibbo) * Date: 2012-12-03 12:00
nevermind.
msg177137 - (view) Author: Éric Araujo (eric.araujo) * (Python committer) Date: 2012-12-07 23:02
Actually the module was named __builtin__ in 2.x; __builtins__ was an optimization done for module globals, as an implementation detail of CPython.
History
Date User Action Args
2022-04-11 14:57:39adminsetgithub: 60804
2012-12-07 23:02:01eric.araujosetnosy: + eric.araujo

messages: + msg177137
versions: - Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
2012-12-03 12:01:05rmcgibbosetstatus: open -> closed
2012-12-03 12:00:57rmcgibbosetmessages: + msg176838
2012-12-03 11:51:40rmcgibbosettitle: small py3k bug in rlcompleter -> small py3k issue in rlcompleter
2012-12-03 09:55:58rmcgibbosettitle: rlcompleter -> small py3k bug in rlcompleter
2012-12-03 09:55:29rmcgibbocreate