Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=5053499 By: brucevdk
I'm still relatively inexperienced in Python, so I choose not to look at the source code for PyDev to figure out how the code completion functionality precisely works. From the FAQ I gather that it (by default) statically analyzes the source code and only starts up a Python shell for configured forced built-in libraries. However, I'm still left wondering why the following code completion doesn't work (and perhaps more importantly how I could get it to work): import Ft.Xml # the 4suite XML etc. library document = Ft.Xml.Parse(...) # ... being an URI to an XML file document. # doesn't complete Note that initially not even Ft.Xml shows up in the code completion. Adding Ft, Ft.Xml as forced built-in libraries at least makes it display some variables/functions/modules etc. but it's still quite limited. For example it doesn't complete: document.xpath # it doesn't know about xpath Did I by any chance overlook a somewhat more detailed explanation on the website for how code completion works and the associated quirks? For example, IPython's code completion functionality in this case works just fine (same for the included interactive console) and even using dir() on the result of Ft.Xml.Parse (an Ft.Xml.cDomlette.Document object) shows the xpath method. I'm assuming that in this case the fact that it's using a module/extension (cDomlette) written in in C might have something to do with it? Thanks. Best regards, Bruce ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=293649 ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Pydev-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pydev-users
