[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-21 Thread Facundo Batista
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 lo

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-21 Thread Antoine Pitrou
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 "in

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-21 Thread Facundo Batista
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. >>>

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-20 Thread Georg Brandl
Changes by Georg Brandl <[EMAIL PROTECTED]>: -- assignee: -> facundobatista ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-17 Thread Manuel Muradás
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

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-17 Thread Guilherme Polo
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 bu

[issue3396] rlcompleter can't autocomplete members of callable objects

2008-07-17 Thread Antoine Pitrou
New submission from Antoine Pitrou <[EMAIL PROTECTED]>: This is a regression caused by #449227. When typing e.g. "int." and then pressing tab, none of the int members is proposed. It worked until just before r64664. -- components: Library (Lib) messages: 69905 nosy: facundobatista, pitro