Author Topic: Can SlickEdit tag the Python's *.pyd files ?  (Read 3310 times)

pingf

  • Community Member
  • Posts: 29
  • Hero Points: 0
Can SlickEdit tag the Python's *.pyd files ?
« on: October 29, 2010, 12:41:46 pm »
I found some python libraries can not be tagged ,
however , the eclipse plugin pydev can , it can generate tag files from the *.pyd files
it do have a lot of information in the *.pyd files...
anybody knows how to parse tag files with SlickEdit ?

Rodney

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 734
  • Hero Points: 47
Re: Can SlickEdit tag the Python's *.pyd files ?
« Reply #1 on: October 29, 2010, 04:30:41 pm »
I did a little investigating into how Pydev Eclipse plugin offers "code completion" for builtins and .pyd files. It looks like they actually shell the python interpreter and do introspection on the .pyd to get the exported function names. Actually the introspection part is a guess on my part, albeit an educated one.

Currently we have a hard-coded list of builtins in builtins/python.tagdoc that we use for a non-comprehensive list of builtins not in .py source. We do it this way so that we can have comments (description, parameter help, return) to show you when using Context Tagging features. Symbols straight from the interpreter would be missing those comments.

I will log a feature-request for Pydev-like tagging for Python.

--rodney
« Last Edit: October 29, 2010, 04:47:42 pm by Rodney »