Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #54710
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!feeder4.news.weretis.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <travisgriggs@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'definitions': 0.07; 'dynamically': 0.07; 'definition,': 0.09; 'ide': 0.09; 'otherwise)': 0.09; 'typed': 0.09; 'python': 0.11; 'def': 0.12; 'project,': 0.12; 'suggest': 0.14; '(free': 0.16; "(i'm": 0.16; '23,': 0.16; 'chris,': 0.16; 'definition.': 0.16; 'files:': 0.16; 'highlight': 0.16; 'stuff,': 0.16; 'subject:python': 0.16; 'wrote:': 0.18; 'all,': 0.19; '(where': 0.19; 'seems': 0.21; 'to:name:python-list@python.org': 0.22; 'instance,': 0.24; 'file.': 0.24; 'this:': 0.26; 'pass': 0.26; '(for': 0.26; 'header :In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; "i'm": 0.30; 'code': 0.31; 'context,': 0.31; 'sep': 0.31; 'class': 0.32; 'there.': 0.32; 'skip:c 30': 0.32; 'option': 0.32; 'linux': 0.33; 'running': 0.33; 'not.': 0.33; 'skip:_ 10': 0.34; "i'd": 0.34; 'could': 0.34; "can't": 0.35; 'skip:s 30': 0.35; 'definition': 0.35; 'received:google.com': 0.35; 'add': 0.35; 'there': 0.35; 'right?': 0.36; 'method': 0.36; 'possible': 0.36; 'too': 0.37; 'two': 0.37; 'message-id:@gmail.com': 0.38; 'to:addr:python-list': 0.38; 'fact': 0.38; 'rather': 0.38; 'does': 0.39; 'sure': 0.39; 'to:addr:python.org': 0.39; 'up,': 0.60; 'free': 0.61; 'new': 0.61; 'header:Message-Id:1': 0.63; 'different': 0.65; 'charset:windows-1252': 0.65; 'click': 0.77; 'potentially': 0.81; '"stop"': 0.84; 'presumably': 0.84; '2013,': 0.91 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=96jl/YYbF6JGgf98ZSzjw9hsHYFTSv8expJBrxC5mDQ=; b=Et5+ph7IgkvR0VQUJMU595cJpYHmqT8GRrZ0HqF0FNxo2QSuZDAh/hdTjR0KXFHHe6 EC9wIe0qt3bf4wMOecK/5IDg7ASUUkQ3P+ufN8vR+/HBA5KzPY0zeJXqvelHa+++J0Cn 4C+IsSRUN2pU2sF7o8iMbN6QnnoTBlDVvMofu5O3DSVAjbI4RKV3Kv4LFYRI+g5EjmQq i5OJmeBcKCbJ1pKhZwM5JlS4RFmsylrzgjARaIL5fmYT1SoeSwbdh3AsoLpfYGy4pBeh 0H+f5RLSK90cth7Xmt9oJI05wpNlNdls3IUuQ5yl+nYQYu1ZvI1Rg6r3DFTJmStzMnsp w4Cg== |
| X-Received | by 10.68.244.168 with SMTP id xh8mr27876120pbc.3.1380041973192; Tue, 24 Sep 2013 09:59:33 -0700 (PDT) |
| Content-Type | text/plain; charset=windows-1252 |
| Mime-Version | 1.0 (Mac OS X Mail 6.6 \(1510\)) |
| Subject | Re: python IDE and function definition |
| From | Travis Griggs <travisgriggs@gmail.com> |
| In-Reply-To | <524058FB.20005@mail.usask.ca> |
| Date | Tue, 24 Sep 2013 09:59:32 -0700 |
| Content-Transfer-Encoding | quoted-printable |
| References | <524058FB.20005@mail.usask.ca> |
| To | "python-list@python.org" <python-list@python.org> |
| X-Mailer | Apple Mail (2.1510) |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.300.1380041976.18130.python-list@python.org> (permalink) |
| Lines | 57 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1380041976 news.xs4all.nl 15955 [2001:888:2000:d::a6]:42912 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:54710 |
Show key headers only | View raw
On Sep 23, 2013, at 8:06 AM, 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.
Hi Chris,
Not sure if this reproduces what you want or not. I use PyCharm (free for free stuff, and very affordable/worthwhile otherwise) on Linux (as well as OSX/Windows). I made a new project, added two files:
provider.py:
class Provider(object):
def stop(self):
pass
usage.py:
class Conglomerate(object):
def doSomething(self):
self.provision.stop()
I then highlight 'stop', hit Ctrl-B (menu option go to>>declarations) and it brings up all the stop() definitions it could find, the Provider one on the top, click it and I jump there. Ctrl-Alt-B (menu option for goto>>implementation(s)) does nothing… UNLESS… I add this method to Conglomerate:
def __init__(self):
super.__init__()
self.provision = Provider()
Then go to implementations takes me right there to the other file.
HTH
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python IDE and function definition Travis Griggs <travisgriggs@gmail.com> - 2013-09-24 09:59 -0700
csiph-web