Facundo Batista [EMAIL PROTECTED] added the comment:
I don't understand.
I tried the following:
Python 2.6b2+ (trunk:65167M, Jul 21 2008, 09:51:48)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type help, copyright, credits or license for more information.
import
Antoine Pitrou [EMAIL PROTECTED] added the comment:
Selon Facundo Batista [EMAIL PROTECTED]:
Then I wrote int. Then I pressed TAB. Nothing happened. I pressed TAB
again, and the following appeared:
int
int( intern(
This is not the point. The problem is when you type int., then press
Facundo Batista [EMAIL PROTECTED] added the comment:
Ah, sorry, missed that point.
Ok, I included this change and now it works ok.
Also worked a little that code (change the name of the variable
object, used extend() for a list instead of adding to itself, and
removed a comparison from a
Changes by Georg Brandl [EMAIL PROTECTED]:
--
assignee: - facundobatista
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3396
___
___
Python-bugs-list
Guilherme Polo [EMAIL PROTECTED] added the comment:
This is somewhat obscure to notice but the problem is towards that
getattr on attr_matches. For int specifically, it will try to get the
attribute '__abstractmethods__' (which is a member of int.__class__) and
will raise an AttributeError but
Manuel Muradás [EMAIL PROTECTED] added the comment:
Oops, you are right. If that is the way we should handle this
regression, I could upload a patch. I also thought we could use
hasattr, but that means using getattr twice. Something like:
if word[:n] == attr and word != __builtins__ and