homepage

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 rbcollins
Recipients Claudiu.Popa, donlorenzo, rbcollins
Date 2015年07月28日.04:31:41
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1438057901.7.0.516583468638.issue22141@psf.upfronthosting.co.za>
In-reply-to
Content
I'm struggling to understand this bug. I've tried idle and plain cPython and neither exhibit it. I suspect thats due to how readline is itself tokenizing things.
Python 3.6.0a0 (default:ef5a2ba9df62, Jul 28 2015, 15:48:19) 
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> readline.parse_and_bind("tab: complete")
Traceback (most recent call last):
 File "<stdin>", line 1, in <module>
NameError: name 'readline' is not defined
>>> import readline
>>> readline.parse_and_bind("tab: complete")
>>> class A:
... def foo(self):pass
... def foobar(self):pass
... 
>>> A.foo
A.foo( A.foobar( 
>>> A.foo( 
Whats probably not obvious there is that TAB at the ( indented a tab, rather than offering any completions.
I'm hesitant to apply this without a deeper understanding of where its used, in case of side effects.
History
Date User Action Args
2015年07月28日 04:31:41rbcollinssetrecipients: + rbcollins, donlorenzo, Claudiu.Popa
2015年07月28日 04:31:41rbcollinssetmessageid: <1438057901.7.0.516583468638.issue22141@psf.upfronthosting.co.za>
2015年07月28日 04:31:41rbcollinslinkissue22141 messages
2015年07月28日 04:31:41rbcollinscreate

AltStyle によって変換されたページ (->オリジナル) /