Re: Einstein's Riddle

2015-09-19 Thread Denis McMahon
On Sat, 19 Sep 2015 21:27:47 -0600, Michael Torrie wrote: > I read once of a university that, upon decomissioning a mainframe, found > a job that had been in the queue for many years but had never run. > Probably some poor grad student's job. Somewhere there's a computer sitting in the corner of

Re: Einstein's Riddle

2015-09-19 Thread m
W dniu 20.09.2015 o 05:27, Michael Torrie pisze: > On 09/18/2015 03:51 AM, Nick Sarbicki wrote: >> > On Fri, Sep 18, 2015 at 10:33 AM, Steven D'Aprano >>> >> Time is relative. Perhaps the poster has been travelling at close to the >>> >> speed of light, and for him it is only a few minutes after t

Re: Local variables and thread safety

2015-09-19 Thread dieter
Saint Desmond writes: > Dear Team, > Kindly advise if variables declared within a function are thread safe. In general, yes. However, there are exceptions. First of all, "variable" is not the optimal term to use in this context. In Python, a "variable" is nothing more than the binding of a name

Re: Einstein's Riddle

2015-09-19 Thread Michael Torrie
On 09/18/2015 03:51 AM, Nick Sarbicki wrote: > On Fri, Sep 18, 2015 at 10:33 AM, Steven D'Aprano >> Time is relative. Perhaps the poster has been travelling at close to the >> speed of light, and for him it is only a few minutes after the original >> post was sent. > > I prefer to think that it j

RE: Hello

2015-09-19 Thread Watson, Paul
> Hello I have problem with python installation.I downloaded python 3.5 but > I cannot use it on my computer.I can not open the idle. I get something like > saying > "users\local settings\Application data\programs\python\python35-32\pythonw.exe > is not valid win32 application. Thanks that will be

Re: Hello

2015-09-19 Thread Mark Lawrence
On 19/09/2015 18:31, Dennis Lee Bieber wrote: On Thu, 17 Sep 2015 16:10:55 +0100, moon khondkar declaimed the following: Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like saying "users\local

Re: Hello

2015-09-19 Thread Random832
Dennis Lee Bieber writes: > While Windows likes to stuff things in directories with spaces in them, > I find third-party applications (especially those that are created for > multiple OSes) work better when installed in directories that have no > spaces... Hey, don't put this on being creat

Re: Hello

2015-09-19 Thread Emile van Sebille
On 9/17/2015 8:10 AM, moon khondkar wrote: Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like saying "users\local settings\Application data\programs\python\python35-32\pythonw.exe is not valid w

Re: ConnectionError handling problem

2015-09-19 Thread Mark Lawrence
On 19/09/2015 07:13, shiva upreti wrote: I am learning python. I wrote a script using requests module. The scripts runs fine for sometime, but after a while it hangs. When I press CTRL+C it shows ConnectionError even though I have included exception handling. I am not sure as to why it cant hand

Re: windows 10

2015-09-19 Thread Mark Lawrence
On 18/09/2015 01:16, heidimtay...@gmail.com wrote: I am using Windows 10. I cannot find the Python (command line). Do you know where I would find it? Thank you, Heidi Sent from Mail for Windows 10 Python doesn't come with Windows, you have t

Re: windows 10

2015-09-19 Thread Joel Goldstick
On Thu, Sep 17, 2015 at 8:16 PM, wrote: > I am using Windows 10. I cannot find the Python (command line). Do you > know where I would find it? > > > > Thank you, > > Heidi > > > > Sent from Mail for > Windows 10 > Did you try googling "windows 10

Local variables and thread safety

2015-09-19 Thread Saint Desmond
Dear Team, Kindly advise if variables declared within a function are thread safe. I would like to share a snippet with you if you wouldn’t mind. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread Chris Angelico
On Sat, Sep 19, 2015 at 8:48 PM, James Harris wrote: > "Chris Angelico" wrote in message > news:mailman.13.1442657702.21674.python-l...@python.org... >> >> On Sat, Sep 19, 2015 at 7:49 PM, James Harris >> wrote: >>> >>> "Chris Angelico" wrote in message >>> news:mailman.8.1442612439.21674.pytho

windows 10

2015-09-19 Thread heidimtaylor
I am using Windows 10. I cannot find the Python (command line). Do you know where I would find it? Thank you, Heidi Sent from Mail for Windows 10 -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing a module to abstract a REST api

2015-09-19 Thread Sven R. Kunze
Hi Joseph, the basic wiring instances together is done via the assignment operator: "=". Like: queue._api = foo. Now, the "queue" knows about its API instance. Question now is, when do you do "="? On 18.09.2015 23:43, Joseph L. Casale wrote: This is where I am going, but how do you perform d

Re: Determining version of OpenSSL linked against python?

2015-09-19 Thread svalleru
AFAIK, there is no version variable for python2.6 ssl module but here a tip: Look for libeat32.dll (usually under Python2.6.1/Lib/site-packages), grep for 'OpenSSL' and you will see something like the following which will have the version string: - : SSLv3 part of OpenSSL 0.9.8d 28 Sep 2006 :

Hello

2015-09-19 Thread moon khondkar
Hello I have problem with python installation.I downloaded python 3.5 but I cannot use it on my computer.I can not open the idle. I get something like saying "users\local settings\Application data\programs\python\python35-32\pythonw.exe is not valid win32 application. Thanks that will be help i

Re: Adding PEP 495 support to dateutil

2015-09-19 Thread Alexander Belopolsky
[Tim Peters] > > I think acceptance of 495 should be contingent upon > someone first completing a fully functional (if not releasable) > fold-aware zoneinfo wrapping. [Alexander Belopolsky] > > I am making all development public early on and hope to see code reviews and pull requests from interes

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Chris Angelico" wrote in message news:mailman.13.1442657702.21674.python-l...@python.org... On Sat, Sep 19, 2015 at 7:49 PM, James Harris wrote: "Chris Angelico" wrote in message news:mailman.8.1442612439.21674.python-l...@python.org... ... If you're using select() to monitor the sockets

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread Chris Angelico
On Sat, Sep 19, 2015 at 7:49 PM, James Harris wrote: > "Chris Angelico" wrote in message > news:mailman.8.1442612439.21674.python-l...@python.org... >> >> On Sat, Sep 19, 2015 at 3:17 AM, James Harris >> wrote: >>> >>> Needless to say, on a test Windows machine AF_UNIX is not present. The >>> on

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Laura Creighton" wrote in message news:mailman.5.1442609448.21674.python-l...@python.org... In a message of Fri, 18 Sep 2015 20:09:19 +0100, "James Harris" writes: Set the daemon flag on the worker threads, so when the main thread exits, the workers also exit. Interesting idea, and I did n

Re: Shutting down a cross-platform multithreaded app

2015-09-19 Thread James Harris
"Chris Angelico" wrote in message news:mailman.8.1442612439.21674.python-l...@python.org... On Sat, Sep 19, 2015 at 3:17 AM, James Harris wrote: Needless to say, on a test Windows machine AF_UNIX is not present. The only cross-platform option, therefore, seems to be to use each subthread's se

Re: Add items from a python list to a javascript array

2015-09-19 Thread Denis McMahon
On Sat, 19 Sep 2015 00:25:20 -0700, Darryl Doherty wrote: > I have a kiosk for digital signage which has a html index file with a > javascript which rotates through other html files using iframe at timed > intervals. What I want to do is edit the array in the index file with > Python to add and re

Add items from a python list to a javascript array

2015-09-19 Thread Darryl Doherty
I have a kiosk for digital signage which has a html index file with a javascript which rotates through other html files using iframe at timed intervals. What I want to do is edit the array in the index file with Python to add and remove the HTML file paths from the array. I have a list of all fi

Re: True == 1 weirdness

2015-09-19 Thread Gregory Ewing
Random832 wrote: I'm disputing that chained comparisons are used for the particular combinations that I am actually arguing should not be used in python. Such as a < b > c or a != b != c [whereas a may or may not be equal to c] I can't remember offhand seeing a != b != c written by a mathemati