[Pydev-users] [Users] auto-completion not working - files and pipes
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2011-05-13 15:54:41
|
The following forum message was posted by eldergabriel at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4529190: In the PyDev perspective, if I open a file or pipe, such as: f = open("somefile.text") p = os.popen("ls -al *.text") and then try to type f.read() or p.readlines(), auto-completion does not engage as expected to display the appropriate class methods after I type the '.' after the object name. What is presented in the auto-completion drop-down instead is a list of the parent class methods for anything derived from 'object' (such as __str__, __cmp__, etc.), and, mercifully, an option for method calls that I had manually invoked previously, i.e. whatever it remembered in that object's call history. Notably, if I start a new line and type 'file.', the appropriate methods appear in the auto-completion drop-down (close(), flush(), etc.). I would expect that the auto-completion would also readily display read(), readlines(), close(), etc. for any object returned from an open() or popen(). |