Re: Error handling with @parallel decorator

2016-01-17 Thread Steven D'Aprano
On Monday 18 January 2016 17:15, Ankur Agrawal wrote: > I am trying to catch Abort exception. When I use fabric's run(...) method, > the host it tries to connect is not available and so it aborts with > connect time out exception. I am not able to catch it. Following is a two > different ways of c

Error handling with @parallel decorator

2016-01-17 Thread Ankur Agrawal
I am trying to catch Abort exception. When I use fabric's run(...) method, the host it tries to connect is not available and so it aborts with connect time out exception. I am not able to catch it. Following is a two different ways of code snippet- First I try following - class FabricException(Ex

Re: ERROR: IDLEs subprocesses did not make a connection...

2016-01-17 Thread Terry Reedy
On 1/14/2016 12:42 PM, Lee, Brandon wrote: Hello! I am running into the following error and need some guidance. I summarized at https://bugs.python.org/issue25514#msg258498 the reasons listed in the SO page you linked and another linked on that page. Running through the list is your job. >

Re: "x == None" vs "x is None"

2016-01-17 Thread Ben Finney
writes: > I prefer (x is None) and (x is not None). There are good reasons to prefer this. But this is not a good reason: > This matches the SQL concept of NULL. That's not really helpful, because it *doesn't* match. > (X = NULL) is not valid since NULL is not a value and cannot be > compare

Re: how do I put the python on my desktop or even access it

2016-01-17 Thread eryk sun
On Sun, Jan 17, 2016 at 6:05 PM, Michael Torrie wrote: > On 01/17/2016 02:46 PM, eryk sun wrote: >> On Sun, Jan 17, 2016 at 9:03 AM, Michael Torrie wrote: >>> >>> but if it's a text-mode program you must run it from cmd.exe like this: >>> >>> python \path\to\myprogram.py. >> >> You only need to r

Re: how do I put the python on my desktop or even access it

2016-01-17 Thread Michael Torrie
On 01/17/2016 02:46 PM, eryk sun wrote: > On Sun, Jan 17, 2016 at 9:03 AM, Michael Torrie wrote: >> >> but if it's a text-mode program you must run it from cmd.exe like this: >> >> python \path\to\myprogram.py. > > You only need to run from another console program to keep the window > open after

Re: Modify Settings window pop-up

2016-01-17 Thread Michael Torrie
On 01/17/2016 03:54 PM, Dennis Lee Bieber wrote: > On Sun, 17 Jan 2016 16:52:52 -0500, Terry Reedy > declaimed the following: > >> On 1/17/2016 12:13 PM, Arvind Vallabhaneni wrote: >>> >>> [cid:888c5934-3c75-43d8-9e76-59a9dfbef814] >> >> What is this? When I mouse over, Thunderbird just says 'ab

Re: Modify Settings window pop-up

2016-01-17 Thread Terry Reedy
On 1/17/2016 12:13 PM, Arvind Vallabhaneni wrote: I installed the python interpreter and pycharm program onto my home desktop. However, while doing some simple programming exercises from class, the window below keeps popping up every time I type a few words or try to run the program. This pr

Re: how do I put the python on my desktop or even access it

2016-01-17 Thread eryk sun
On Sun, Jan 17, 2016 at 9:03 AM, Michael Torrie wrote: > > but if it's a text-mode program you must run it from cmd.exe like this: > > python \path\to\myprogram.py. You only need to run from another console program to keep the window open after Python exits. You can even do that in other ways, bu

Re: "x == None" vs "x is None"

2016-01-17 Thread Chris Angelico
On Mon, Jan 18, 2016 at 8:33 AM, Random832 wrote: > writes: > >> I prefer (x is None) and (x is not None). >> >> This matches the SQL concept of NULL. >> >> (X = NULL) is not valid since NULL is not a value and cannot be compared >> with anything. > > The suitably generic SQL operator is "is (not

Re: "x == None" vs "x is None"

2016-01-17 Thread Random832
writes: > I prefer (x is None) and (x is not None). > > This matches the SQL concept of NULL. > > (X = NULL) is not valid since NULL is not a value and cannot be compared > with anything. The suitably generic SQL operator is "is (not) distinct from", in some dialects of SQL [certainly if you're

Re: "x == None" vs "x is None"

2016-01-17 Thread paul.hermeneutic
I prefer (x is None) and (x is not None). This matches the SQL concept of NULL. (X = NULL) is not valid since NULL is not a value and cannot be compared with anything. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python plugin (semantic-aware) for the Qt Creator IDE

2016-01-17 Thread John Fabiani
What about debugging? On Jan 16, 2016 6:02 AM, "Leandro T. C. Melo" wrote: > Hi again... > > Sorry, but I have a new url for the video (it's just slightly modified). > > https://youtu.be/71aqIwv3vJs > > Thanks, > Leandro > > > On Thursday, January 14, 2016 at 9:23:47 AM UTC-2, Leandro T. C. Melo

Modify Settings window pop-up

2016-01-17 Thread Arvind Vallabhaneni
I installed the python interpreter and pycharm program onto my home desktop. However, while doing some simple programming exercises from class, the window below keeps popping up every time I type a few words or try to run the program. [cid:888c5934-3c75-43d8-9e76-59a9dfbef814] I tried to cl

Re: Hello.

2016-01-17 Thread jacob Kruger
Environment variables pointing to c:\python..? (needs to point to actual installation directory) Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-16 11:41 PM, Hmood Js wrote: cmd won't recognize python at all I've checked s

Re: Hello.

2016-01-17 Thread Bernardo Sulzbach
This is likely due to the fact that python.exe is not in PATH. Try reinstalling Python with this option or adding it yourself. -- https://mail.python.org/mailman/listinfo/python-list

why does windows command prompt not recognize "python"?

2016-01-17 Thread bob gailer
On Jan 17, 2016 9:13 AM, "Hmood Js" > wrote: > > cmd won't recognize python at all I've checked several times , and I don't understand what's wrong Better to ask this at help or tutor @ Python.org. I am sending this to help, with a new subject,. Please reply to

Re: how do I put the python on my desktop or even access it

2016-01-17 Thread Michael Torrie
On 01/16/2016 01:11 PM, zack fitzsimons wrote: > > > > > > > I'm assuming based on your empty email that you must be running Windows. Python is a command-line program. First run cmd.exe and then from there you can run python.exe and interact with it in immediate mode. To create and run p

Re: Hello.

2016-01-17 Thread Igor Korot
Hi, On Sat, Jan 16, 2016 at 4:41 PM, Hmood Js wrote: > cmd won't recognize python at all I've checked several times , and I don't > understand what's wrong What does this mean exactly? Can you give an example? Thank you. > > Sent from Mail for Windows 10 > > -- > https://mail.python.org/mail

Fwd: how do I put the python on my desktop or even access it

2016-01-17 Thread Igor Korot
-- Forwarded message -- From: Igor Korot Date: Sun, Jan 17, 2016 at 9:44 AM Subject: Re: how do I put the python on my desktop or even access it To: zack fitzsimons Hi, On Sat, Jan 16, 2016 at 3:11 PM, zack fitzsimons wrote: You can't put a snake onto you Desktop. And the bes

Hello.

2016-01-17 Thread Hmood Js
cmd won't recognize python at all I've checked several times , and I don't understand what's wrong Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

how do I put the python on my desktop or even access it

2016-01-17 Thread zack fitzsimons
Sent from Windows Mail -- https://mail.python.org/mailman/listinfo/python-list

Re: Keen eyes

2016-01-17 Thread Chris Angelico
On Sun, Jan 17, 2016 at 10:17 PM, BartC wrote: > On 17/01/2016 08:25, Chris Angelico wrote: >> >> On Sun, Jan 17, 2016 at 6:37 PM, Ian Kelly wrote: >>> >>> Technically it defaults to non local. The var statement allocates a >>> variable within the current scope. Otherwise it searches up the chain

Re: "x == None" vs "x is None"

2016-01-17 Thread Chris Angelico
On Sun, Jan 17, 2016 at 10:05 PM, Ulli Horlacher wrote: > Chris Angelico wrote: >> On Sun, Jan 17, 2016 at 8:51 PM, Ulli Horlacher >> wrote: >> > I have seen at several places "x == None" and "x is None" within >> > if-statements. >> > What is the difference? >> > Which term should I prefer and

Re: "x == None" vs "x is None"

2016-01-17 Thread Peter Otten
Ulli Horlacher wrote: > Chris Angelico wrote: >> On Sun, Jan 17, 2016 at 8:51 PM, Ulli Horlacher >> wrote: >> > I have seen at several places "x == None" and "x is None" within >> > if-statements. >> > What is the difference? >> > Which term should I prefer and why? >> >> tl;dr: Prefer "x is No

Re: Keen eyes

2016-01-17 Thread BartC
On 17/01/2016 08:25, Chris Angelico wrote: On Sun, Jan 17, 2016 at 6:37 PM, Ian Kelly wrote: Technically it defaults to non local. The var statement allocates a variable within the current scope. Otherwise it searches up the chain of parent scopes for a matching variable... This far, it's exa

Re: OT The fiction section

2016-01-17 Thread Ulli Horlacher
Marko Rauhamaa wrote: > Steven D'Aprano : > > > https://pbs.twimg.com/media/CWgV0ruUsAAcUD7.jpg > > Not bad. $ python Python 2.7.3 (default, Jun 22 2015, 19:33:41) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> bad=False >>> not bad True --

Re: "x == None" vs "x is None"

2016-01-17 Thread Ulli Horlacher
Chris Angelico wrote: > On Sun, Jan 17, 2016 at 8:51 PM, Ulli Horlacher > wrote: > > I have seen at several places "x == None" and "x is None" within > > if-statements. > > What is the difference? > > Which term should I prefer and why? > > tl;dr: Prefer "x is None" as a check. And for the nega

Re: OT The fiction section

2016-01-17 Thread Marko Rauhamaa
Steven D'Aprano : > https://pbs.twimg.com/media/CWgV0ruUsAAcUD7.jpg Not bad. Marko -- https://mail.python.org/mailman/listinfo/python-list

OT The fiction section

2016-01-17 Thread Steven D'Aprano
https://pbs.twimg.com/media/CWgV0ruUsAAcUD7.jpg -- Steve -- https://mail.python.org/mailman/listinfo/python-list

Re: Primality sieve challenge

2016-01-17 Thread jonas . thornvall
Den söndag 17 januari 2016 kl. 10:44:47 UTC+1 skrev jonas.t...@gmail.com: > Maybe we could have a challenge finding the base with best reducion factor > upto base 100 00? One probably do not want to store more vectors than > that in memory, and i guess > > Reducing composites in the integer

Re: "x == None" vs "x is None"

2016-01-17 Thread Chris Angelico
On Sun, Jan 17, 2016 at 8:51 PM, Ulli Horlacher wrote: > I have seen at several places "x == None" and "x is None" within > if-statements. > What is the difference? > Which term should I prefer and why? tl;dr: Prefer "x is None" as a check. The two checks have slightly different meaning, and alm

"x == None" vs "x is None"

2016-01-17 Thread Ulli Horlacher
I have seen at several places "x == None" and "x is None" within if-statements. What is the difference? Which term should I prefer and why? -- Ullrich Horlacher Server und Virtualisierung Rechenzentrum IZUS/TIK E-Mail: horlac...@tik.uni-stuttgart.de Universitaet Stuttgart

Primality sieve challenge

2016-01-17 Thread jonas . thornvall
Maybe we could have a challenge finding the base with best reducion factor upto base 100 00? One probably do not want to store more vectors than that in memory, and i guess Reducing composites in the integer field http://jt.node365.se/composite.html I've made my own kind of primality sieve

Re: Keen eyes

2016-01-17 Thread Chris Angelico
On Sun, Jan 17, 2016 at 6:37 PM, Ian Kelly wrote: > Technically it defaults to non local. The var statement allocates a > variable within the current scope. Otherwise it searches up the chain of > parent scopes for a matching variable... This far, it's exactly the same as C. > ... terminating at