Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54645 > unrolled thread
| Started by | Chris Friesen <cbf123@mail.usask.ca> |
|---|---|
| First post | 2013-09-23 09:06 -0600 |
| Last post | 2013-09-24 07:54 -0300 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.lang.python
python IDE and function definition Chris Friesen <cbf123@mail.usask.ca> - 2013-09-23 09:06 -0600
Re: python IDE and function definition Neil Hodgson <nhodgson@iinet.net.au> - 2013-09-24 09:20 +1000
Re: python IDE and function definition Fabio Zadrozny <fabiofz@gmail.com> - 2013-09-24 07:54 -0300
| From | Chris Friesen <cbf123@mail.usask.ca> |
|---|---|
| Date | 2013-09-23 09:06 -0600 |
| Subject | python IDE and function definition |
| Message-ID | <mailman.267.1379948867.18130.python-list@python.org> |
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.
Chris
[toc] | [next] | [standalone]
| From | Neil Hodgson <nhodgson@iinet.net.au> |
|---|---|
| Date | 2013-09-24 09:20 +1000 |
| Message-ID | <RKydnXvNRJliUd3PnZ2dnUVZ_oednZ2d@westnet.com.au> |
| In reply to | #54645 |
Chris Friesen:
> 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.
Some IDEs allow you to help them understand the context by adding
type information. Here's some documentation for Wing IDE that uses an
isinstance assertion:
http://www.wingware.com/doc/edit/helping-wing-analyze-code
Neil
[toc] | [prev] | [next] | [standalone]
| From | Fabio Zadrozny <fabiofz@gmail.com> |
|---|---|
| Date | 2013-09-24 07:54 -0300 |
| Message-ID | <mailman.291.1380020096.18130.python-list@python.org> |
| In reply to | #54666 |
[Multipart message — attachments visible in raw view] — view raw
On Mon, Sep 23, 2013 at 8:20 PM, Neil Hodgson <nhodgson@iinet.net.au> wrote: > Chris Friesen: > > > 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. >> > > Some IDEs allow you to help them understand the context by adding type > information. Here's some documentation for Wing IDE that uses an isinstance > assertion: > http://www.wingware.com/doc/**edit/helping-wing-analyze-code<http://www.wingware.com/doc/edit/helping-wing-analyze-code> Just to note, PyDev can also use the assert isinstance as well as docstrings (http://pydev.org/manual_adv_type_hints.html) for type hinting. Cheers, Fabio
[toc] | [prev] | [standalone]
Back to top | Article view | comp.lang.python
csiph-web