Re: How to install pip for python3 on OS X?

2013-11-19 Thread Ned Deily
In article <6856a21c-57e8-4cdd-a9e8-5dd738c36...@gmail.com>, Travis Griggs wrote: > OSX (Mavericks) has python2.7 stock installed. But I do all my own personal > python stuff with 3.3. I just flushed my 3.3.2 install and installed the new > 3.3.3. So I need to install pyserial again. I can do

Re: HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3)

2013-11-19 Thread Chris Angelico
On Wed, Nov 20, 2013 at 1:14 PM, Logan wrote: > Chris, > > That is genius. Thank you! Then it works? Awesome!! (Permit me an evil laugh. Muahahah!) This is why I love working with open source languages. Even if you don't end up actually changing anything, you can go and snoop the code and s

Re: HTTP Header Capitalization in urllib.request.AbstractHTTPHandler (Python 3.3)

2013-11-19 Thread Logan
Chris, That is genius. Thank you! -- Logan -- https://mail.python.org/mailman/listinfo/python-list

How to install pip for python3 on OS X?

2013-11-19 Thread Travis Griggs
OSX (Mavericks) has python2.7 stock installed. But I do all my own personal python stuff with 3.3. I just flushed my 3.3.2 install and installed the new 3.3.3. So I need to install pyserial again. I can do it the way I've done it before, which is: Download pyserial from pypi untar pyserial.tgz

Re: pypix

2013-11-19 Thread Tim Roberts
Ajay Kumar wrote: > >Hi Guys, i have created a site for Python Tutorials. here is the link  >http://pypix.com/python/get-started-python-web-development/ . I would like to >have your opinion like what tutorials would you love to see. Are you making a site for Python Tutorials, or tutorials for cr

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Dave Angel
On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano wrote: 2 does count because it isn't divisible by 3. The question states, "[count] how many positive integers less than N are not divisible by 2,3 or 5". Two is not divisible by 3, so "not divisible by 2,3 or 5" is true, so two gets counted. Th

Re: Oh look, another language (ceylon)

2013-11-19 Thread Gregory Ewing
Steven D'Aprano wrote: Which sum would that be? Addition of vectors, matrices, quaternions, tensors, something else? Considering vectors, multiplying a vector by a scalar can be thought of as putting n copies of the vector together nose-to-tail. That's not very much different from putting n c

Re: parsing RSS XML feed for item value

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 19:39, Larry Wilson wrote: > Wanting to parse out the the temperature value in the " element, just after the guid element using ElementTree or xml.sax. When you get tired of that, take a look at Universal Feedparser, a Python Package: http://code.google.com/p/feedparse

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Steven D'Aprano
On Tue, 19 Nov 2013 22:10:55 -0500, Dave Angel wrote: > On 20 Nov 2013 00:17:23 GMT, Steven D'Aprano > wrote: >> problem by hand. I'll get you started by solving the problem for 7. > > > > >> Positive integers less than 23 are 1, 2, 3, 4, 5, 6. So let's start >> checking them for divisors: >

parsing RSS XML feed for item value

2013-11-19 Thread Larry Wilson
Wanting to parse out the the temperature value in the "http://rss.weather.com.au/nsw/newcastle"; === http://rss.weather.com.au/w.dtd";> Weather.com.au - Newcastle Weather http://www.weather.com.au/nsw/newcast

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Dave Angel
On 20 Nov 2013 00:17:23 GMT, Steven D'Aprano wrote: problem by hand. I'll get you started by solving the problem for 7. Positive integers less than 23 are 1, 2, 3, 4, 5, 6. So let's start checking them for divisors: Where did 23 come from? - 1 is not divisible by 2, 3 or 5, so we coun

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread David
On 20 November 2013 12:57, Steven D'Aprano wrote: > On Wed, 20 Nov 2013 10:32:08 +1000, alex23 wrote: >> >> They appear to be resurrecting a 12 year old thread. > > Wow, that's one slow News server. http://en.wikipedia.org/wiki/Slow_Movement :) -- https://mail.python.org/mailman/listinfo/python

Re: Using try-catch to handle multiple possible file types?

2013-11-19 Thread Mark Lawrence
On 20/11/2013 00:30, Victor Hooi wrote: Hi, Is either approach (try-excepts, or using libmagic) considered more idiomatic? What would you guys prefer yourselves? Also, is it possible to use either approach with a context manager ("with"), without duplicating lots of code? For example: try:

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread Steven D'Aprano
On Wed, 20 Nov 2013 10:32:08 +1000, alex23 wrote: > On 20/11/2013 12:12 AM, Chris Angelico wrote: >> On Wed, Nov 20, 2013 at 12:50 AM, Annmarina Nagy >> wrote: >>> the command label gets "stuck" >> >> A bit of context would help hugely. Are you replying to someone else's >> post? All we have is a

Re: Using try-catch to handle multiple possible file types?

2013-11-19 Thread Steven D'Aprano
On Tue, 19 Nov 2013 16:30:46 -0800, Victor Hooi wrote: > Hi, > > Is either approach (try-excepts, or using libmagic) considered more > idiomatic? What would you guys prefer yourselves? Specifically in the case of file types, I consider it better to use libmagic. But as a general technique, usin

Re: Using try-catch to handle multiple possible file types?

2013-11-19 Thread Victor Hooi
Hi, Is either approach (try-excepts, or using libmagic) considered more idiomatic? What would you guys prefer yourselves? Also, is it possible to use either approach with a context manager ("with"), without duplicating lots of code? For example: try: with gzip.open('blah.txt', 'rb') a

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread alex23
On 20/11/2013 12:12 AM, Chris Angelico wrote: On Wed, Nov 20, 2013 at 12:50 AM, Annmarina Nagy wrote: the command label gets "stuck" A bit of context would help hugely. Are you replying to someone else's post? All we have is a subject line. They appear to be resurrecting a 12 year old threa

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Steven D'Aprano
On Tue, 19 Nov 2013 10:40:18 -0800, bradleybooth12345 wrote: > Hi, > > A Friend is doing maths in University and has had some coursework to do > with python. > > The question is > > "Write a program that calculates how many positive integers less than N > are not divisible by 2,3 or 5. The user

Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread Chris Angelico
On Wed, Nov 20, 2013 at 9:43 AM, glen herrmannsfeldt wrote: > I also used to use a BASIC system that allowed you to stop a program > (or the program stopped itself), change statements (fix bugs) and > continue on from where it stopped. Not all can do that, but pretty > much compilers never do. Di

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Mark Janssen
> Think they just needed a starting point really to be honest as they can't get > there head round it. Then the problem is that your friend doesn't understand one or more of the words being used. This is s necessary prerequisite for making an algorithm from a text description. Perhaps they don'

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:20:54 Ethan Furman did opine: > On 11/19/2013 08:19 AM, Gene Heskett wrote: > > On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > >> Gene Heskett wrote: > >>> OSError: [Errno 2] No such file or directory > >>> > >>> No clue, even when straced, as to what

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 16:48:40 xDog Walker did opine: > On Tuesday 2013 November 19 10:57, Tim Chase wrote: > > Just an observation here, it looks like you might have a "one" > > instead of an "ell" in "float" in the file-name. > > That is exactly what I see using Monospace font where the l

Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread glen herrmannsfeldt
In comp.lang.fortran Rainer Weikusat wrote: > glen herrmannsfeldt writes: >> In comp.lang.fortran E.D.G. wrote: > "E.D.G." wrote in message > news:ro-dnch2dptbrhnpnz2dnuvz_rsdn...@earthlink.com... >>> Posted by E.D.G. on November 19, 2013 >>> 1. PERL PDL CALCULATION SPEED VERSUS PY

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:17:12 xDog Walker did opine: > On Tuesday 2013 November 19 10:57, Tim Chase wrote: > > Just an observation here, it looks like you might have a "one" > > instead of an "ell" in "float" in the file-name. > > Gene, > In an earlier email in this thread I lied when

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 17:02:37 Mark Lawrence did opine: > On 19/11/2013 19:06, xDog Walker wrote: > > On Tuesday 2013 November 19 10:43, Gene Heskett wrote: > >> Interesting, a print cmd immediately in front of that is quite noisy: > >> ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'cam

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 16:03:23 Tim Chase did opine: > On 2013-11-19 13:43, Gene Heskett wrote: > > Interesting, a print cmd immediately in front of that is quite > > noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', > > 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', > > '1

Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread Rainer Weikusat
glen herrmannsfeldt writes: > In comp.lang.fortran E.D.G. wrote: "E.D.G." wrote in message news:ro-dnch2dptbrhnpnz2dnuvz_rsdn...@earthlink.com... >> Posted by E.D.G. on November 19, 2013 > >> 1. PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN > > (snip) > >> This progr

Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread Yaşar Arabacı
2013/11/19 glen herrmannsfeldt : > More recently, there are JIT systems which generate the intermediate > code, but then at the appropriate time (Just In Time) compile that to > machine code and execute it. This is common for Java, and more recently > for languages like Matlab. Is there a particul

Re: Several Topics - Nov. 19, 2013

2013-11-19 Thread glen herrmannsfeldt
In comp.lang.fortran E.D.G. wrote: >>> "E.D.G." wrote in message >>> news:ro-dnch2dptbrhnpnz2dnuvz_rsdn...@earthlink.com... > Posted by E.D.G. on November 19, 2013 > 1. PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN (snip) > This program translation project has become one of th

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Denis McMahon
On Tue, 19 Nov 2013 11:27:08 -0800, bradleybooth12345 wrote: > On Tuesday, November 19, 2013 6:40:18 PM UTC, bradleyb...@gmail.com > wrote: >> "Write a program that calculates how many positive integers less than N >> are not divisible by 2,3 or 5. >> "The collatz process . >> Any help woul

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread bradleybooth12345
On Tuesday, November 19, 2013 6:40:18 PM UTC, bradleyb...@gmail.com wrote: > Hi, > > > > A Friend is doing maths in University and has had some coursework to do with > python. > > > > The question is > > > > "Write a program that calculates how many positive integers less than N are > n

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:57, Tim Chase wrote: > Just an observation here, it looks like you might have a "one" > instead of an "ell" in "float" in the file-name. Gene, In an earlier email in this thread I lied when I stated the name of the file you were missing (I retyped what I tho

Re: My first real request for help

2013-11-19 Thread Mark Lawrence
On 19/11/2013 19:06, xDog Walker wrote: On Tuesday 2013 November 19 10:43, Gene Heskett wrote: Interesting, a print cmd immediately in front of that is quite noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', '150995278'] The fil

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Gary Herron
On 11/19/2013 10:40 AM, bradleybooth12...@gmail.com wrote: Hi, A Friend is doing maths in University and has had some coursework to do with python. The question is "Write a program that calculates how many positive integers less than N are not divisible by 2,3 or 5. The user should be prompt

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:57, Tim Chase wrote: > Just an observation here, it looks like you might have a "one" > instead of an "ell" in "float" in the file-name. That is exactly what I see using Monospace font where the letter and digit are different shapes. -- Yonder nor sorghum stenches

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread Neil Cerutti
bradleybooth12...@gmail.com via python.org asks: > A Friend is doing maths in University and has had some > coursework to do with python. > > The question is > > "Write a program that calculates how many positive integers > less than N are not divisible by 2,3 or 5. The user should be > prompted to

Re: Newbie - Trying to Help a Friend

2013-11-19 Thread maxwell34m
On Tuesday, November 19, 2013 10:40:18 AM UTC-8, bradleyb...@gmail.com wrote: > Hi, > > > > A Friend is doing maths in University and has had some coursework to do with > python. > > > > The question is > > > > "Write a program that calculates how many positive integers less than N are

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 10:43, Gene Heskett wrote: > Interesting, a print cmd immediately in front of that is quite noisy: > ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', 'camview.cfg', '-g', > 'cam.ui', '-H', 'campins.hal', '-w', '150995278'] The file it cannot find is apparently ./camvi

Re: how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Mark Summerfield
On Tuesday, November 19, 2013 5:22:36 PM UTC, Thomas Heller wrote: > Am 19.11.2013 17:58, schrieb Mark Summerfield: > > > Hi, > > > > > > I am using ctypes to access a function in a DLL using Python 3.3 > > > 32-bit on Windows 7 64-bit: > > > > > > dplGetPageText = dpl.DPLGetPageText dplGetPa

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 13:43, Gene Heskett wrote: > Interesting, a print cmd immediately in front of that is quite > noisy: ['./camview-emc-f1oat.py', '-v', '1280x720', '-C', > 'camview.cfg', '-g', 'cam.ui', '-H', 'campins.hal', '-w', > '150995278'] This suggests that the value of "cmd" is indeed a list of

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 12:42:28 Tim Chase did opine: > On 2013-11-19 12:19, Gene Heskett wrote: > > > On 2013-11-19 11:19, Gene Heskett wrote: > > > >>> Traceback (most recent call last): > > > >>> File "/usr/bin/axis", line 3326, in > > > >>> > > > >>> _dynamic_tabs(inifile) > > >

Newbie - Trying to Help a Friend

2013-11-19 Thread bradleybooth12345
Hi, A Friend is doing maths in University and has had some coursework to do with python. The question is "Write a program that calculates how many positive integers less than N are not divisible by 2,3 or 5. The user should be prompted to supply the Number N. Demonstrate your program output

Re: My first real request for help

2013-11-19 Thread Ethan Furman
On 11/19/2013 08:19 AM, Gene Heskett wrote: On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: Gene Heskett wrote: OSError: [Errno 2] No such file or directory No clue, even when straced, as to what file might be missing. So, how do I find out? How about inserting a print cmd be

Re: My first real request for help

2013-11-19 Thread Peter Otten
Gene Heskett wrote: > On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > >> Gene Heskett wrote: >> > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 >> > LTS repo's. >> > >> > Should be a mauchs nichs as the code was written on, and is running >> > on, several of

Re: Terry Jones: "Monty Python to reunite for stage show"

2013-11-19 Thread Chris “Kwpolska” Warrick
On Tue, Nov 19, 2013 at 3:08 PM, Thomas Heller wrote: > "All of the surviving members of comedy group Monty Python are to reform for > a stage show, one of the Pythons, Terry Jones, has confirmed." > > See: http://www.bbc.co.uk/news/entertainment-arts-24999401 > > Thomas > -- > https://mail.python

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 09:19, Gene Heskett wrote: > _dynamic_tabs is not a file in /usr/lib/python2.6, nor does it "grep" in > that directory. The Traceback says that _dynamic_tabs is in /usr/bin/axis . -- Yonder nor sorghum stenches shut ladle gulls stopper torque wet strainers. -- http

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 12:19, Gene Heskett wrote: > > On 2013-11-19 11:19, Gene Heskett wrote: > > >>> Traceback (most recent call last): > > >>> File "/usr/bin/axis", line 3326, in > > >>> > > >>> _dynamic_tabs(inifile) > > >>> > > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs > >

Re: how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Thomas Heller
Am 19.11.2013 17:58, schrieb Mark Summerfield: Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes = (ctypes.c_int, ctypes.c_int) dplGetPageText.restype = ctypes.c_wchar_p Python returns th

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 12:12:49 Tim Chase did opine: > On 2013-11-19 11:19, Gene Heskett wrote: > >>> Traceback (most recent call last): > >>> File "/usr/bin/axis", line 3326, in > >>> > >>> _dynamic_tabs(inifile) > >>> > >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs >

Re: My first real request for help

2013-11-19 Thread xDog Walker
On Tuesday 2013 November 19 08:19, Gene Heskett wrote: > You are suggesting I edit /usr/lib/python2.6/subprocess.py? You should use either subprocess.Popen(["ls", "-l"]) or subprocess.Popen("ls -l") The argument to the first is a two element list. The argument to the second is a str

Re: My first real request for help

2013-11-19 Thread Tim Chase
On 2013-11-19 11:19, Gene Heskett wrote: >>> Traceback (most recent call last): >>> File "/usr/bin/axis", line 3326, in >>> >>> _dynamic_tabs(inifile) >>> >>> File "/usr/bin/axis", line 3182, in _dynamic_tabs >>> >>> child = Popen(cmd) > > You are suggesting I edit /usr/lib/py

how to get raw bytes for ctypes functions that return c_wchar_p

2013-11-19 Thread Mark Summerfield
Hi, I am using ctypes to access a function in a DLL using Python 3.3 32-bit on Windows 7 64-bit: dplGetPageText = dpl.DPLGetPageText dplGetPageText.argtypes = (ctypes.c_int, ctypes.c_int) dplGetPageText.restype = ctypes.c_wchar_p Python returns this as a str with the raw bytes already decoded.

Re: KeyboardInterrupt close failed in file object destructor: sys.excepthook is missing lost sys.stderr

2013-11-19 Thread Neil Cerutti
MOn Tue, Nov 19, 2013 at 10:35 AM, Jai wrote: > please help what is this i have try lot but unable to remove it Your code is getting into an infinite loop. One problem is, I suspect: > def find_position(line): > pun = "" > if re.search(r"[.?!]+", line): > pun = re.search(r"[.?!]

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 11:16:10 Peter Otten did opine: > Gene Heskett wrote: > > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 > > LTS repo's. > > > > Should be a mauchs nichs as the code was written on, and is running > > on, several of these same linuxcnc installs. >

Re: [RELEASED] Python 3.3.3 final

2013-11-19 Thread Mark Lawrence
On 19/11/2013 06:59, Georg Brandl wrote: To download Python 3.3.3 rc2 visit: http://www.python.org/download/releases/3.3.3/ Please make your mind up, final or rc2? Thanks everybody for your efforts, much appreciated :) -- Python is the second best programming language in the world. Bu

Re: KeyboardInterrupt close failed in file object destructor: sys.excepthook is missing lost sys.stderr

2013-11-19 Thread Mark Lawrence
On 19/11/2013 15:35, Jai wrote: Code # #!/usr/bin/env python import sys, re def find_position(line): pun = "" if re.search(r"[.?!]+", line): pun = re.search(r"[.?!]+", line).group() pos = line.find(pun) pos = pos+len(pun)-1 retu

Re: Glade Survey

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 10:56:49 Juan Pablo Ugarte did opine: > On Mon, 2013-11-18 at 21:12 -0500, Gene Heskett wrote: > [...] > > > > Invalid in what way? It looks fine to me. Or is it that you don't > > > trust its signer? > > > > > > ChrisA > > > > Firefox barked at me. So I backed away

Re: tcltk, python, xml, gtk problems

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 10:10:31 Gene Heskett did opine: > On Tuesday 19 November 2013 08:51:09 Albert Dengg did opine: > > On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote: > > ... > > > > > But when I switch in, as one of the plugins a new .py version of > > > camview- emc, I ge

Re: Glade Survey

2013-11-19 Thread Juan Pablo Ugarte
On Mon, 2013-11-18 at 21:12 -0500, Gene Heskett wrote: [...] > > Invalid in what way? It looks fine to me. Or is it that you don't > > trust its signer? > > > > ChrisA > > Firefox barked at me. So I backed away. And now it works. Phase of moon > sensitive? Chew in wrong side of mouth? Or y

KeyboardInterrupt close failed in file object destructor: sys.excepthook is missing lost sys.stderr

2013-11-19 Thread Jai
Code # #!/usr/bin/env python import sys, re def find_position(line): pun = "" if re.search(r"[.?!]+", line): pun = re.search(r"[.?!]+", line).group() pos = line.find(pun) pos = pos+len(pun)-1 return pos def sentence_splitter(f

Re: Automation

2013-11-19 Thread Chris Angelico
On Wed, Nov 20, 2013 at 2:06 AM, MRAB wrote: > You need to distinguish between "Scottish English" and "Scots", the > latter being related to English, but isn't English, much as Danish is > related to Swedish, but isn't Swedish. Ah. When I referred to a "Scots" word, I was talking about the Gaelic

Re: Automation

2013-11-19 Thread MRAB
On 19/11/2013 12:59, Alister wrote: On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: On Tue, Nov 19, 2013 at 11:36 PM, Alister wrote: the language & nationality is Scottish, the people are Scots & Scotch is a type of whisky. Hmm, I don't know that it's that clear-cut (other than th

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread Chris Angelico
On Wed, Nov 20, 2013 at 12:50 AM, Annmarina Nagy wrote: > the command label gets "stuck" A bit of context would help hugely. Are you replying to someone else's post? All we have is a subject line. ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Terry Jones: "Monty Python to reunite for stage show"

2013-11-19 Thread Thomas Heller
"All of the surviving members of comedy group Monty Python are to reform for a stage show, one of the Pythons, Terry Jones, has confirmed." See: http://www.bbc.co.uk/news/entertainment-arts-24999401 Thomas -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-19 Thread Chris Angelico
On Wed, Nov 20, 2013 at 12:55 AM, Tim Golden wrote: > On 19/11/2013 13:50, Mark Lawrence wrote: >> On 19/11/2013 10:48, Chris Angelico wrote: >>> >>> Anyway, we Aussies know more about your geography than you know about >>> ours, I reckon. Which of these is not a real place: Parramatta, >>> Warrna

Re: Automation

2013-11-19 Thread Mark Lawrence
On 19/11/2013 13:55, Tim Golden wrote: On 19/11/2013 13:50, Mark Lawrence wrote: On 19/11/2013 10:48, Chris Angelico wrote: Anyway, we Aussies know more about your geography than you know about ours, I reckon. Which of these is not a real place: Parramatta, Warrnambool, Cerinabbin, Mordialloc?

Re: My first real request for help

2013-11-19 Thread Gene Heskett
On Tuesday 19 November 2013 08:51:09 Albert Dengg did opine: > On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote: > ... > > > But when I switch in, as one of the plugins a new .py version of > > camview- emc, I get this when I attempt to run linuxcnc -l, where the > > -l is "use the sa

Re: Automation

2013-11-19 Thread Tim Golden
On 19/11/2013 13:50, Mark Lawrence wrote: > On 19/11/2013 10:48, Chris Angelico wrote: >> >> Anyway, we Aussies know more about your geography than you know about >> ours, I reckon. Which of these is not a real place: Parramatta, >> Warrnambool, Cerinabbin, Mordialloc? No fair Googling them, see if

Re: Automation

2013-11-19 Thread Mark Lawrence
On 19/11/2013 10:48, Chris Angelico wrote: Anyway, we Aussies know more about your geography than you know about ours, I reckon. Which of these is not a real place: Parramatta, Warrnambool, Cerinabbin, Mordialloc? No fair Googling them, see if you can call it. I've been to three of the above pla

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread Annmarina Nagy
the command label gets "stuck" -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 11:36 PM, Alister > wrote: >> the language & nationality is Scottish, the people are Scots & Scotch >> is a type of whisky. > > Hmm, I don't know that it's that clear-cut (other than the drink). > Derrick McClure

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 11:36 PM, Alister > wrote: >> the language & nationality is Scottish, the people are Scots & Scotch >> is a type of whisky. > > Hmm, I don't know that it's that clear-cut (other than the drink). > Derrick McClure

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 11:36 PM, Alister > wrote: >> the language & nationality is Scottish, the people are Scots & Scotch >> is a type of whisky. > > Hmm, I don't know that it's that clear-cut (other than the drink). > Derrick McClure

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 23:52:09 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 11:36 PM, Alister > wrote: >> the language & nationality is Scottish, the people are Scots & Scotch >> is a type of whisky. > > Hmm, I don't know that it's that clear-cut (other than the drink). > Derrick McClure

Re: Automation

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 11:36 PM, Alister wrote: > the language & nationality is Scottish, the people are Scots & Scotch is > a type of whisky. Hmm, I don't know that it's that clear-cut (other than the drink). Derrick McClure is himself a Scot, and he posted this on Savoynet: https://mailman.br

Re: Automation

2013-11-19 Thread Alister
On Tue, 19 Nov 2013 22:58:35 +1100, Chris Angelico wrote: > On Tue, Nov 19, 2013 at 10:53 PM, Walter Hurry > wrote: >> On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico wrote: >> >>> I guessed Scots for the second one because it didn't look Welsh and it >>> seemed plausible to get a mostly-Engli

Re: Where to find pip3 for Python 3.3.2?

2013-11-19 Thread Ned Batchelder
On Monday, November 18, 2013 10:57:23 PM UTC-5, Tony the Tiger wrote: > On Sun, 17 Nov 2013 11:22:05 +0200, Nikos wrote: > > > python3.4 is gone at this stage. Now if i only could install pip for > > Python 3.3.2 > > > > What are you? Some fucking moron? Multi-posting under different subjects

Re: Automation

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 10:53 PM, Walter Hurry wrote: > On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico wrote: > >> I guessed Scots for the second one because it >> didn't look Welsh and it seemed plausible to get a mostly-English >> paragraph with one Welsh name and one Scots word. > > The wor

Re: Automation

2013-11-19 Thread Walter Hurry
On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico wrote: > I guessed Scots for the second one because it > didn't look Welsh and it seemed plausible to get a mostly-English > paragraph with one Welsh name and one Scots word. The word is *Scottish*. I think that's what Mark was driving at. -- h

Several Topics - Nov. 19, 2013

2013-11-19 Thread E.D.G.
"E.D.G." wrote in message news:ro-dnch2dptbrhnpnz2dnuvz_rsdn...@earthlink.com... Posted by E.D.G. on November 19, 2013 1. PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN 2. COMPUTER PROGRAMMING PROJECTS PERL PDL CALCULATION SPEED VERSUS PYTHON AND FORTRAN This program translati

Re: How to catch error messages in ftplib?

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 9:18 PM, JL wrote: > I have the following code; > > try: > session = FTP(ftp_server_ip,ftp_user,ftp_password) > file = open(filename,'rb') # file to send > session.storbinary('STOR ' + filename, file) # send the file > except Exception, errO

Re: Automation

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 8:54 PM, Mark Lawrence wrote: > On 19/11/2013 09:26, Chris Angelico wrote: >> >> >> It couldn't figure out "Absytrytewh", "picsbeliud", or >> "hnasoa/tw.nartswdbvweos/utrtek:p./il". That's not a bad result. (And >> as a human, I'm guessing that the second one isn't an Engli

Re: Automation

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 8:54 PM, Mark Lawrence wrote: > On 19/11/2013 09:26, Chris Angelico wrote: >> >> >> It couldn't figure out "Absytrytewh", "picsbeliud", or >> "hnasoa/tw.nartswdbvweos/utrtek:p./il". That's not a bad result. (And >> as a human, I'm guessing that the second one isn't an Engli

Re: How to catch error messages in ftplib?

2013-11-19 Thread JL
I repost the original code segment to make it more complete; from ftplib import FTP try: session = FTP(ftp_server_ip,ftp_user,ftp_password) file = open(filename,'rb') # file to send session.storbinary('STOR ' + filename, file) # send the file except Excepti

How to catch error messages in ftplib?

2013-11-19 Thread JL
I have the following code; try: session = FTP(ftp_server_ip,ftp_user,ftp_password) file = open(filename,'rb') # file to send session.storbinary('STOR ' + filename, file) # send the file except Exception, errObj: print Exception print errObj

Re: My first real request for help

2013-11-19 Thread Peter Otten
Gene Heskett wrote: > Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS > repo's. > > Should be a mauchs nichs as the code was written on, and is running on, > several of these same linuxcnc installs. > > But when I switch in, as one of the plugins a new .py version of cam

Re: My first real request for help

2013-11-19 Thread Albert Dengg
On Tue, Nov 19, 2013 at 04:31:15AM -0500, Gene Heskett wrote: ... > But when I switch in, as one of the plugins a new .py version of camview- > emc, I get this when I attempt to run linuxcnc -l, where the -l is "use the > same config as last time" option. > > Starting LinuxCNC... > Traceback (mos

Re: Automation

2013-11-19 Thread Mark Lawrence
On 19/11/2013 09:26, Chris Angelico wrote: It couldn't figure out "Absytrytewh", "picsbeliud", or "hnasoa/tw.nartswdbvweos/utrtek:p./il". That's not a bad result. (And as a human, I'm guessing that the second one isn't an English word - maybe it's Scots?) Here's the code: I sense another lett

Re: Automation

2013-11-19 Thread Mark Lawrence
On 19/11/2013 08:53, Ian Kelly wrote: On Fri, Nov 15, 2013 at 1:45 PM, Alister wrote: and if you haven't seen it before :- Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht the frist and lsat ltteer be

Re: Automation

2013-11-19 Thread Ian Kelly
On Tue, Nov 19, 2013 at 2:26 AM, Chris Angelico wrote: > It couldn't figure out "Absytrytewh", "picsbeliud", or > "hnasoa/tw.nartswdbvweos/utrtek:p./il". That's not a bad result. (And > as a human, I'm guessing that the second one isn't an English word - > maybe it's Scots?) Here's the code: It's

Re: Using try-catch to handle multiple possible file types?

2013-11-19 Thread Mark Lawrence
On 19/11/2013 07:13, Victor Hooi wrote: So basically, using exception handling for flow-control. However, is that considered bad practice, or un-Pythonic? If it works for you use it, practicality beats purity :) -- Python is the second best programming language in the world. But the best ha

My first real request for help

2013-11-19 Thread Gene Heskett
Old python, 2.6.4 I believe, not update able from the Ubuntu 10.04.3 LTS repo's. Should be a mauchs nichs as the code was written on, and is running on, several of these same linuxcnc installs. But when I switch in, as one of the plugins a new .py version of camview- emc, I get this when I atte

Re: Automation

2013-11-19 Thread Chris Angelico
On Tue, Nov 19, 2013 at 7:53 PM, Ian Kelly wrote: > Aoilegpos for aidnoptg a cdocianorttry vwpiienot but, ttoheliacrley > spkeaing, lgitehnneng the words can mnartafucue an iocnuurgons > samenttet that is vlrtiauly isbpilechmoenrne. isbpilechmoenrne. I totally want to find an excuse to use that w

Re: Oh look, another language (ceylon)

2013-11-19 Thread wxjmfauth
Le lundi 18 novembre 2013 14:31:33 UTC+1, Steven D'Aprano a écrit : > > > ... choose one of the three bad choices: ... > > > > * choose UTF-16 or UTF-8, and have O(n) primitive string operations (like > > Haskell and, apparently, Ceylon); > > > > * or UTF-16 without support for the sup

Re: If you continue being rude i will continue doing this

2013-11-19 Thread rurpy
On Monday, November 18, 2013 7:24:53 AM UTC-7, Piet van Oostrum wrote: > Ferrous Cranus writes: > > No i haven't broke it at all. > > Everything work as they should. > > The refusal of 'pygeoip' to install turned out to be the local setting in > > my new VPS. > > So i have changes it to: > > expo

Re: Not my fault

2013-11-19 Thread rurpy
On 11/18/2013 07:30 AM, Ferrous Cranus wrote: >[...] > No i haven't broke it at all. Everything work as they should. > > The refusal of 'pygeoip' to install turned out to be the local > setting in my new VPS. > > So i have changes it to: > > export LANG = en_US.UTF-8 > > and then 'pip install p

Re: Automation

2013-11-19 Thread Ian Kelly
On Fri, Nov 15, 2013 at 1:45 PM, Alister wrote: > and if you haven't seen it before :- > > Aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it deosn't mttaer in > waht oredr the ltteers in a wrod are, the olny iprmoetnt tihng is taht > the frist and lsat ltteer be at the rghit pclae. The rset ca

Re: If you continue being rude i will continue doing this

2013-11-19 Thread alex23
On 19/11/2013 2:15 AM, Ferrous Cranus wrote: [...] Any chance you could stop acting like a troll and generating new email addresses in an apparent attempt to get around people's filters? You claim you're acting in good faith, so stop appearing to do otherwise. -- https://mail.python.org/mailma

Re: If you continue being rude i will continue doing this

2013-11-19 Thread Gregory Ewing
Ferrous Cranus wrote: Trying to figure out how to install-setup EPEL repository along with python3 && python3-pip and 2 extra modules my script needed in my new VPS have costed 4-5 of my life and of my mental health, while if you just helped a bit these would have been done in a couple of hours.

Python RPM distribution with altinstall on Centos 5

2013-11-19 Thread thomas . lehmann
Hi all, I missed to find a Python 2.7.6 Centos 5 distribution. Here's what I planned to do: - building from source on Centos 5 in a chroot (is working fine) - using "sudo make altinstall" (is working fine) But ... - I want to build this via Jenkins (we have this kind of chroot build's sti

  1   2   >