tag:blogger.com,1999:blog-8550962.post5158411375324043809..comments2024-01-27T21:10:48.750-08:00Comments on PyDev adventures: Templates on Pydev (with Jython scripting)Fabio Zadroznyhttp://www.blogger.com/profile/04202246218394712738noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-8550962.post-26488044793085470982010-03-14T10:40:39.547-07:002010-03-14T10:40:39.547-07:00Please, add ${package} tooPlease, add ${package} tooAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8550962.post-71208288459138952942010-01-31T02:21:19.625-08:002010-01-31T02:21:19.625-08:00Hi, please post feature requests in the sourceforg...Hi, please post feature requests in the sourceforge tracker (otherwise they end up lost in this blog). See: http://pydev.org/about.htmlFabio Zadroznyhttps://www.blogger.com/profile/04202246218394712738noreply@blogger.comtag:blogger.com,1999:blog-8550962.post-38130921702643289242010-01-30T12:24:26.432-08:002010-01-30T12:24:26.432-08:00It would be great to have docstring template accor...It would be great to have docstring template according to PEP 257 spec. like this:<br /><br />def complex(real=0.0, imag=0.0):<br /> """Form a complex number.<br /><br /> Keyword arguments:<br /> real -- the real part (default 0.0)<br /> imag -- the imaginary part (default 0.0)<br /><br /> """<br /> if imag == 0.0 and real == 0.0: return complex_zero<br /><br />Template should build keyword argument list along with default valuesb1r3knoreply@blogger.comtag:blogger.com,1999:blog-8550962.post-53613878257174164672010-01-25T15:22:17.164-08:002010-01-25T15:22:17.164-08:00I don't really think that'd be the place f...I don't really think that'd be the place for improving that kind of introspection...<br /><br />Those ideas would be very well suited for the Pydev bugtracker (at sourceforge).<br /><br />See: http://pydev.org/about.html<br /><br />Cheers,<br /><br />FabioFabio Zadroznyhttps://www.blogger.com/profile/04202246218394712738noreply@blogger.comtag:blogger.com,1999:blog-8550962.post-31143584115223710322010-01-25T11:19:37.605-08:002010-01-25T11:19:37.605-08:00I know this is not help desk, but would this be a ...I know this is not help desk, but would this be a way to improve auto-completion (where introspection can't do it) of PyDev?<br /><br />There are some problems with Django and auto-completion that I would like to fix, even with hardcoded scripts or something ugly if not the neat introspection can handle. Especially when I need to look at the name of the arguments in method, e.g. initializer __init__ of model fields such as:<br /><br />something = models.CharField(<b><i>[CTRL-Space]</i></b>...)<br /><br />I get nothing, nada. I always have to go to <i>look at the the source</i> of <a href="http://code.djangoproject.com/browser/django/trunk/django/db/models/fields/__init__.py" rel="nofollow">CharField.__init__()</a> to know the init parameters, they are neatly listed in there but for some reason PyDev won't show them...<br /><br />One of my ideas to start fixing auto-completion is to look at the @rtype or :rtype: value in docstring, and assume the output is in that type if possible. This does not help with Django, but with many other well documented modules it would.Ciantichttps://www.blogger.com/profile/09708844807487564418noreply@blogger.comtag:blogger.com,1999:blog-8550962.post-73388986752471512902010-01-10T02:34:58.768-08:002010-01-10T02:34:58.768-08:00I must say that I have no idea if Jython can use s...I must say that I have no idea if Jython can use setuptools (especially because Pydev is currently bound to version 2.1 of Jython -- the latest got too big to be incorporated).<br /><br />Also, what would be the advantages over the current system? (which I believe is pretty simple to use)Fabio Zadroznyhttps://www.blogger.com/profile/04202246218394712738noreply@blogger.comtag:blogger.com,1999:blog-8550962.post-42171579045121153632010-01-09T20:13:55.582-08:002010-01-09T20:13:55.582-08:00That's nice.
To add them we need to set in Py...That's nice.<br /><br />To add them we need to set in Pydev preferences a folder that holds our extensions files.<br /><br />Would it be possible to use something like setuptools' entries point to let Pydev disover extension? Can Jython use setuptools?Damien Lebrunhttps://www.blogger.com/profile/03568678153873025964noreply@blogger.com