Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #54647 > unrolled thread

Re: python IDE and function definition

Started byFabio Zadrozny <fabiofz@gmail.com>
First post2013-09-23 12:32 -0300
Last post2013-09-23 12:32 -0300
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: python IDE and function definition Fabio Zadrozny <fabiofz@gmail.com> - 2013-09-23 12:32 -0300

#54647 — Re: python IDE and function definition

FromFabio Zadrozny <fabiofz@gmail.com>
Date2013-09-23 12:32 -0300
SubjectRe: python IDE and function definition
Message-ID<mailman.270.1379950382.18130.python-list@python.org>

[Multipart message — attachments visible in raw view] — view raw

On Mon, Sep 23, 2013 at 12:06 PM, Chris Friesen <cbf123@mail.usask.ca>wrote:

>
> Hi all,
>
> I'm looking for a python IDE (for Linux) that can look at code like this:
>
> class ConductorManager(manager.**Manager):
>     def compute_recover(self, context, instance):
>         self.compute_api.stop(context, instance, do_cast=False)
>
> where I could highlight the "stop" and ask it to go to the definition.
> (Where the definition is in a different file.)
>
> I'm running into issues where my current IDE (I'm playing with Komodo)
> can't seem to locate the definition, I suspect because it's too ambiguous.
>
> The fact that python is dynamically typed seems to mean that there could
> potentially be multiple answers, any class with a stop() method with the
> right signature could presumably be plausible, right?  So rather than give
> up, I'd like to have my IDE suggest all possible answers.



PyDev (http://pydev.org/) is able to do that (i.e.: if the find definition
doesn't find it directly, it shows a list with possible matches for you to
choose the most appropriate one: http://pydev.org/manual_adv_gotodef.html)
-- additionally, you can also search for methods/classes/attributes
directly: http://pydev.org/manual_adv_open_decl_quick.html

Cheers,

Fabio



>
>
> Chris
> --
> https://mail.python.org/**mailman/listinfo/python-list<https://mail.python.org/mailman/listinfo/python-list>
>

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web