[wingide-users] Python shell ambiguous state

Christopher Fry cfry1 at MIT.EDU
Tue Dec 18 13:41:46 EST 2012


The Python shell in the Wing IDE does not make it obvious whether
a computation is in progress or has completed. 
This is espeically bad for long running computations or ones that might have
gone into an infinite loop.
The problem is compounded when the method you've called returns None,
or you've executed a file as no indication of a returned value occurrs.
Partially this is a defect of Python design. All expressions evaluated should
return a value, if only "None" and None should ALWAYS be printed
in the shell to let us know what has returned.
But that's not the only problem. During a long runing computation,
the >>> is printed and it appears that sometimes the cursor appears
to the right of it (sometimes not). I can't tell the exact behaviour,
but whther or not a computation is running shouldn't be a subtle clue,
it should be absolutely obvious, like a 'spinning watch' or beach ball (on the mac),
or some direct indication.
Lately I've taken to  adding, as the last statement in a file
print "foo.py loaded" 
to get around this deficiency. But its a poor work-around that should
be solved  once and for all by the IDE.

Speaking of infinite loops, how do I stop one in the shell? I don't want to
restart the shell as I want to preserve its basic state, just halt the currently
executing statement. There might be some magical keystroke incantation,
but please stick it on the Options menu so it can easily be discovered.

________________________________________
From: wingide-users-bounces at wingware.com [wingide-users-bounces at wingware.com] on behalf of wingide-users-request at wingware.com [wingide-users-request at wingware.com]
Sent: Tuesday, December 18, 2012 12:00 PM
To: wingide-users at wingware.com
Subject: wingide-users Digest, Vol 104, Issue 7

Send wingide-users mailing list submissions to
        wingide-users at wingware.com

To subscribe or unsubscribe via the World Wide Web, visit
        http://wingware.com/mailman/listinfo/wingide-users
or, via email, send a message with subject or body 'help' to
        wingide-users-request at wingware.com

You can reach the person managing the list at
        wingide-users-owner at wingware.com

When replying, please edit your Subject line so it is more specific
than "Re: Contents of wingide-users digest..."


Today's Topics:

   1. Re: Wing IDE 4.0.4 released (Max Slimmer)
   2. Feature request (Brett Dixon)
   3. Re: Feature request (Wing IDE Support)


----------------------------------------------------------------------

Message: 1
Date: Mon, 17 Dec 2012 10:10:37 -0800
From: Max Slimmer <maxslimmer at gmail.com>
To: wingide-users at wingware.com
Subject: Re: [wingide-users] Wing IDE 4.0.4 released
Message-ID:
        <CAP6Y=NpH_mq=X0KmwiO1KCU1oV7U69DSFZf5NNhpTU1CdN_xsw at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you Stephan. Your script worked perfectly and clearly illustrated the
extensibility of Wing for me and hopefully for others as well.
--
--Max
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20121217/6b8287d5/attachment-0001.html>

------------------------------

Message: 2
Date: Mon, 17 Dec 2012 21:02:07 +0000
From: Brett Dixon <brett at readyatdawn.com>
To: "wingide-users at wingware.com" <wingide-users at wingware.com>
Subject: [wingide-users] Feature request
Message-ID:
        <9C39F8EC774EB14AA36ED61125A5DAF42E0B6996 at BY2PRD0410MB365.namprd04.prod.outlook.com>

Content-Type: text/plain; charset="us-ascii"

For the autocompletion, I'd like to request either sorting based on frequency in file or simply putting "self" at the top when appropriate.

If I have a function "selectSomething" then go into a class def, autocomplete is useless as it will always put "selectSomething" ahead of self.

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/wingide-users/attachments/20121217/b6b9749c/attachment-0001.html>

------------------------------

Message: 3
Date: Mon, 17 Dec 2012 16:26:13 -0500
From: Wing IDE Support <support at wingware.com>
To: Brett Dixon <brett at readyatdawn.com>
Cc: "wingide-users at wingware.com" <wingide-users at wingware.com>
Subject: Re: [wingide-users] Feature request
Message-ID: <50CF8DF5.9040404 at wingware.com>
Content-Type: text/plain; charset=windows-1252

On 12/17/12 4:02 PM, Brett Dixon wrote:
> For the autocompletion, I?d like to request either sorting based on
> frequency in file or simply putting ?self? at the top when appropriate.
>
>
>
> If I have a function ?selectSomething? then go into a class def,
> autocomplete is useless as it will always put ?selectSomething? ahead of
> self.

I agree that something like this would be good and we'll try to improve
autocompletion in the future.  Alphabetical will probably continue to be
the default because it won't surprise new users.

Thanks for the suggestion,

John



------------------------------

_________________________________________________
Wing IDE users list
http://wingware.com/lists/wingide

End of wingide-users Digest, Vol 104, Issue 7
*********************************************


More information about the wingide-users mailing list