[Python-bugs-list] [ python-Bugs-547176 ] rlcompleter does not expand on [ ]
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 22 Apr 2002 10:39:43 -0700
Bugs item #547176, was opened at 2002-04-22 13:39
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547176&group_id=5470
Category: Extension Modules
Group: Feature Request
Status: Open
Resolution: None
Priority: 5
Submitted By: Jaco Schieke (schiekjd)
Assigned to: Nobody/Anonymous (nobody)
Summary: rlcompleter does not expand on [ ]
Initial Comment:
A thread on comp.lang.python details the problem:
http://groups.google.com/groups?
hl=en&threadm=b5ddd682.0204180902.2866a9c0%
40posting.google.com&rnum=1&prev=/groups%3Fhl%3Den%
26selm%3Db5ddd682.0204180902.2866a9c0%
2540posting.google.com
rlcompleter.py does not expand correctly on something
like:
>>> sim[0].<tab>
since
m = re.match(r"(\w+(\.\w+)*)\.(\w*)", text)
does not allow for brackets in the match.
I propose:
m = re.match(r"([\w\[\]]+(\.[\w\[\]]+)*)\.(\w*)",
text)
to fix this on line 127 in cvs version 1.11
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=547176&group_id=5470