Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Laura Creighton
In a message of Fri, 23 Oct 2015 11:42:54 +0200, Peter Otten writes: >I tried it out: > >$ mkdir test >$ cd test >$ touch string.py >$ idle3 >Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python3.4/idlelib/run.py", line 12, in >from idlelib import CallTips > Fil

Best way to do background calculations?

2015-10-25 Thread Israel Brewster
tl;dr: I've been using the multiprocessing module to run some calculations in the background of my CherryPy web app, but apparently this process sometimes gets stuck, causing problems with open sockets piling up and blocking the app. Is there a better way?The (rather wordy) details:I have a moderat

OT snake_case

2015-10-25 Thread MRAB
I just discovered today that writing names in lowercase with underscores is sometimes called "snake case". Seems kind of apt for Python! :-) Apparently, it was coined in the Ruby community... -- https://mail.python.org/mailman/listinfo/python-list

Re: Best way to do background calculations?

2015-10-25 Thread MRAB
On 2015-10-23 17:35, Israel Brewster wrote: tl;dr: I've been using the multiprocessing module to run some calculations in the background of my CherryPy web app, but apparently this process sometimes gets stuck, causing problems with open sockets piling up and blocking the app. Is there a better w

Detection of a specific sound

2015-10-25 Thread Montana Burr
I'm looking for a library that will allow Python to listen for the shriek of a smoke alarm. Once it detects this shriek, it is to notify someone. Ideally, specificity can be adjusted for the user's environment. For example, I expect to need moderate specificity as I live in a quiet neighborhood, bu

ANN: lfm v3.0

2015-10-25 Thread Iñigo Serna
Hi all, after many years, new version of lfm; now compatible with Python 3.4+. Description === Last File Manager is a powerful file manager for the UNIX console. It has a curses interface and it's written in Python v3.4+. Licensed under GNU Public License version 3 or later. Some of the

Ignore stderr and use return code

2015-10-25 Thread Ganesh Pal
Hi Teamm In the below code, we found that the command i.e cmd = "mount /filesystem1" succeeded. But the test failed due to the weaker stderr def mount_me(): cmd = "mount /filesystem1" proc = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Please post “text/plain” message body (was: Best way to do background calculations?)

2015-10-25 Thread Ben Finney
Israel Brewster writes: [no text] Please ensure your email message body is “text/plain” (and preferably not HTML) when posting to unfamiliar recipients — which is always, on a public forum like this. -- \“Pinky, are you pondering what I'm pondering?” “Umm, I think | `\ so, Bra

Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Terry Reedy
On 10/23/2015 5:42 AM, Peter Otten wrote: Laura Creighton wrote: In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work. I

Re: OT snake_case

2015-10-25 Thread Mark Lawrence
On 23/10/2015 17:53, MRAB wrote: I just discovered today that writing names in lowercase with underscores is sometimes called "snake case". Seems kind of apt for Python! :-) Apparently, it was coined in the Ruby community... So when I get around to forking Python to produce 2.8 the name will

Re: OT snake_case

2015-10-25 Thread Joel Goldstick
On Fri, Oct 23, 2015 at 12:53 PM, MRAB wrote: > I just discovered today that writing names in lowercase with > underscores is sometimes called "snake case". > > Seems kind of apt for Python! :-) > > Apparently, it was coined in the Ruby community... > -- > https://mail.python.org/mailman/listinfo

Re: OT snake_case

2015-10-25 Thread Ben Finney
MRAB writes: > I just discovered today that writing names in lowercase with > underscores is sometimes called "snake case". > > Seems kind of apt for Python! :-) Cute! > Apparently, it was coined in the Ruby community... Do you have references for tracing the origin of that term? -- \

Re: how to get python socket to use a specific interface

2015-10-25 Thread Gene Heskett
On Friday 23 October 2015 05:03:41 Robin Becker wrote: > I need to run lynx on a ubuntu headless server with a specific IP > address in order to try and cancel an email blacklist. > > Lynx doesn't provide a way to do that so I thought to use a local > proxy. I tried pymiproxy and hacked the connec

Re: Detection of a specific sound

2015-10-25 Thread MRAB
On 2015-10-26 00:17, Montana Burr wrote: I'm looking for a library that will allow Python to listen for the shriek of a smoke alarm. Once it detects this shriek, it is to notify someone. Ideally, specificity can be adjusted for the user's environment. For example, I expect to need moderate specif

Re: Ignore stderr and use return code

2015-10-25 Thread Cameron Simpson
On 25Oct2015 11:35, Ganesh Pal wrote: In the below code, we found that the command i.e cmd = "mount /filesystem1" succeeded. But the test failed due to the weaker stderr [...] out, err = proc.communicate() if err != "": Checking stderr is never the correct way to do this. [.

Re: Best way to do background calculations?

2015-10-25 Thread Chris Angelico
On Sat, Oct 24, 2015 at 3:35 AM, Israel Brewster wrote: > > Ideally, this recalculation process would happen in the background. There is > no need for the user to wait around while the system crunches numbers - they > should be able to move on with entering another log or whatever else they > need

Re: OT snake_case

2015-10-25 Thread MRAB
On 2015-10-25 23:23, Ben Finney wrote: MRAB writes: I just discovered today that writing names in lowercase with underscores is sometimes called "snake case". Seems kind of apt for Python! :-) Cute! Apparently, it was coined in the Ruby community... Do you have references for tracing th

Re: Ignore stderr and use return code

2015-10-25 Thread Ben Finney
Ganesh Pal writes: > In the below code, we found that the command i.e cmd = "mount > /filesystem1" succeeded. But the test failed due to the weaker stderr I don't know what you mean by stderr being “weaker”. > def mount_me(): > cmd = "mount /filesystem1" > proc = subprocess.