Issue 16600: small py3k issue in rlcompleter (original) (raw)

Issue16600

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:39 admin set github: 60804
2012-12-07 23:02:01 eric.araujo set nosy: + eric.araujomessages: + versions: - Python 3.1, Python 3.2, Python 3.3, Python 3.4, Python 3.5
2012-12-03 12:01:05 rmcgibbo set status: open -> closed
2012-12-03 12:00:57 rmcgibbo set messages: +
2012-12-03 11:51:40 rmcgibbo set title: small py3k bug in rlcompleter -> small py3k issue in rlcompleter
2012-12-03 09:55:58 rmcgibbo set title: rlcompleter -> small py3k bug in rlcompleter
2012-12-03 09:55:29 rmcgibbo create