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().

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to