Re: Setting longer default decimal precision

2013-11-20 Thread Larry Hudson
On 11/20/2013 11:34 AM, Kay Y. Jheallee wrote: On 13.Nov.20.Wed 14:02, Steven D'Aprano wrote:> Hi Kay, > > You emailed me off-list, but your email address is bouncing or invalid, > so I have no way to email you back. So THAT's where it went! Sorry about that...yes, it WAS meant for the group

Recursive generator for combinations of a multiset?

2013-11-20 Thread John O'Hagan
Short story: the subject says it all, so if you have an answer already, fire away. Below is the long story of what I'm using it for, and why I think it needs to be recursive. It may even be of more general interest in terms of filtering the results of generators. I'm playing with an anagram-gene

Re: how to deal with deprecating API functionality in python module?

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 11:02 AM, Chris Friesen wrote: > I'm pretty new to python, I'm trying to figure out how a python module is > supposed to make non-backwards-compatible changes without blowing up the > applications that use it. First and foremost, the best way to break backward compatibilit

Re: how to deal with deprecating API functionality in python module?

2013-11-20 Thread Ben Finney
Chris Friesen writes: > I'm pretty new to python, I'm trying to figure out how a python module > is supposed to make non-backwards-compatible changes without blowing > up the applications that use it. The short answer is that Python doesn't have a library linker, so we do it through co-operative

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Christopher Welborn
On 11/20/2013 10:03 AM, Ev J wrote: I am learning Python and wish to develop GUI applications to run on Windows. I have installed the Visual Studio integrated shell (Ver. 12.0.21005.1 REL) IDE and the Python 3.3 interpreter. I have gone through some of the 3.3 tutorial available at http://docs.

how to deal with deprecating API functionality in python module?

2013-11-20 Thread Chris Friesen
Hi, I'm pretty new to python, I'm trying to figure out how a python module is supposed to make non-backwards-compatible changes without blowing up the applications that use it. In the C world this is straightforward, an application is linked against version X of the library, and if the libra

Re: Off-topic: Aussie place names [was Re: Automation]

2013-11-20 Thread Tim Delaney
On 21 November 2013 11:58, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > > For a serious look at Australian placenames named after Australian > Aboriginal words, see wikipedia: > > > http://en.wikipedia.org/wiki/List_of_Australian_place_names_of_Aboriginal_origin Just noticed t

Re: zip list, variables

2013-11-20 Thread Steven D'Aprano
On Wed, 20 Nov 2013 12:05:38 -0800, flebber wrote: > Thank you for the replies. > > Looking at the replies I am wondering which solution is more scalable. > At the moment it is only 2 nested lists but what about 5, 10, 20 or > more? > > Should I start looking into numpy to handle this or will lis

Off-topic: Aussie place names [was Re: Automation]

2013-11-20 Thread Steven D'Aprano
On Wed, 20 Nov 2013 17:58:27 -0500, Dennis Lee Bieber wrote: > On Tue, 19 Nov 2013 21:48:10 +1100, Chris Angelico > declaimed the following: > >>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,

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

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 10:26 AM, Logan wrote: > Not exactly as written, but close enough to get me working. Excellent. Sometimes it's fun to be just that evil. :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend]

2013-11-20 Thread MRAB
On 21/11/2013 00:27, Steven D'Aprano wrote: On Wed, 20 Nov 2013 18:09:42 +, Mark Lawrence defended his reference to Nazism: It's an excellent analogy that I've used before, hence the smiley. Clearly you don't do any research before bothering to say anything. I for one *have* done extensiv

Off-topic: Pop culture references [was Re: Newbie - Trying to Help a Friend]

2013-11-20 Thread Steven D'Aprano
On Wed, 20 Nov 2013 18:09:42 +, Mark Lawrence defended his reference to Nazism: >>> It's an excellent analogy that I've used before, hence the smiley. >>> Clearly you don't do any research before bothering to say anything. I for one *have* done extensive research on the Nazis, not to a prof

Re: [Python-Dev] PEP 0404 and VS 2010

2013-11-20 Thread MRAB
On 20/11/2013 23:36, Christian Tismer wrote: Hey Barry, On 20.11.13 23:30, Barry Warsaw wrote: On Nov 20, 2013, at 09:52 PM, Christian Tismer wrote: Many customers are forced to stick with Python 2.X because of other products, but they require a Python 2.X version which can be compiled using

Re: parsing RSS XML feed for item value

2013-11-20 Thread Larry Wilson
Thank you folks, now I know what I don't know and have a solution. -- https://mail.python.org/mailman/listinfo/python-list

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

2013-11-20 Thread Logan
On 11/20/2013 02:05 AM, Chris Angelico wrote: 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 a

ANN: stepford 0.1 release

2013-11-20 Thread Demian Brecht
Hi all, If you never have to deal with Facebook integration tests, feel free to stop reading here. Otherwise, hopefully this proves to be of some use to you: https://github.com/Demonware/stepford Integration testing is generally a pain. Stepford attempts to alleviate as much of that pain as poss

Re: run command line on Windows without showing DOS console window

2013-11-20 Thread Laurent Pointal
Tim Golden wrote: > On 20/11/2013 14:44, iMath wrote: >> >> >> is there anyway to run command line on Windows without showing DOS >> console window ? >> >> can you use the following command line to give a little example ? >> >> wget -r -np -nd http://example.com/packages/ >> >> the path to wg

Re: Automation

2013-11-20 Thread Grant Edwards
On 2013-11-20, Walter Hurry wrote: > On Thu, 21 Nov 2013 03:33:02 +1100, Chris Angelico wrote: > >> But the actual fake is Cerinabbin > > You might have included Woolloomooloo in the list! Anybody from the early days of TCP/IP networking on PC-DOS and Mac OS would also recognize Wollongong even i

Re: Several Topics - Nov. 19, 2013

2013-11-20 Thread gamo
El 19/11/13 23:43, glen herrmannsfeldt escribió: And, importantly, the code runs fairly slow. Some years ago, I was working with simple PERL programs that could process data at 1 megabyte per minute. Rewriting in C, I got one megabyte per second. It is not too unusual to run 10 times slower, but

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 5:18 AM, Ned Batchelder wrote: > On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: >> I suggest that you write to the BBC and get all episodes of the >> extremely popular *COMEDY* "Dad's Army" withdrawn as "typical shabby >> Nazi trick" was one of Capta

Re: Setting longer default decimal precision

2013-11-20 Thread Tim Golden
On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installation found in the registry". So I'm trying to

Re: zip list, variables

2013-11-20 Thread flebber
Thank you for the replies. Looking at the replies I am wondering which solution is more scalable. At the moment it is only 2 nested lists but what about 5, 10, 20 or more? Should I start looking into numpy to handle this or will list comprehension >>> [ [ x + y for x, y in zip(x,y) ] for x, y

Re: Python Beginner

2013-11-20 Thread Mark Lawrence
On 20/11/2013 19:33, ngangsia akumbo wrote: On Wednesday, November 20, 2013 8:21:44 PM UTC+1, Mark Lawrence wrote: On 20/11/2013 19:04, ngangsia akumbo wrote: Yes a lot, i come from a third world country. It will be a big opportunity for me and my community to study and being able to c

Re: Setting longer default decimal precision

2013-11-20 Thread Tim Golden
On 20/11/2013 19:59, Mark Lawrence wrote: On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installati

Re: Setting longer default decimal precision

2013-11-20 Thread Mark Lawrence
On 20/11/2013 19:34, Kay Y. Jheallee wrote: Ah, that looks like just the puppy I'm looking for. :) Okay then, I just installed the PortableApps version of Python, but when I downloaded "mpmath-0.17.win32" the installer aborted with "No Python installation found in the registry". So I'm trying to

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 1:35:06 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 18:18, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 17:51, Ned Batchelder wrote: > >>> On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mar

Re: Python Beginner

2013-11-20 Thread ngangsia akumbo
On Wednesday, November 20, 2013 8:21:44 PM UTC+1, Mark Lawrence wrote: > On 20/11/2013 19:04, ngangsia akumbo wrote: > > > Yes a lot, i come from a third world country. > > > > > > It will be a big opportunity for me and my community to study and being > > able to create programs, web apps etc

Re: Setting longer default decimal precision

2013-11-20 Thread Kay Y. Jheallee
On 13.Nov.20.Wed 14:02, Steven D'Aprano wrote:> Hi Kay, > > You emailed me off-list, but your email address is bouncing or invalid, > so I have no way to email you back. So THAT's where it went! Sorry about that...yes, it WAS meant for the group :/! > [you wrote] > Okay,but after I import "

Re: Python Beginner

2013-11-20 Thread Mark Lawrence
On 20/11/2013 19:04, ngangsia akumbo wrote: Yes a lot, i come from a third world country. It will be a big opportunity for me and my community to study and being able to create programs, web apps etc which can solve a lot of problems in my country and around. Each day i go out i see at least o

Re: Python Beginner

2013-11-20 Thread Joel Goldstick
On Wed, Nov 20, 2013 at 1:41 PM, Hector Chapa wrote: > Pretty much anything you can think off. You can create games. Also, you can > make python a front-end program attach to a back-end MySQL database as well > make websites. > Pretty much anything you can think off. You just have to think about

Re: Python Beginner

2013-11-20 Thread ngangsia akumbo
Yes a lot, i come from a third world country. It will be a big opportunity for me and my community to study and being able to create programs, web apps etc which can solve a lot of problems in my country and around. Each day i go out i see at least one problem that technology can solve. -- ht

RE: Python Beginner

2013-11-20 Thread Hector Chapa
Pretty much anything you can think off. You can create games. Also, you can make python a front-end program attach to a back-end MySQL database as well make websites. Pretty much anything you can think off. You just have to think about layout what you are trying to accomplish. Is there anything

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 18:18, Ned Batchelder wrote: On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: On 20/11/2013 17:51, Ned Batchelder wrote: On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: On 20/11/2013 17:12, Ned Batchelder wrote: On Wednesday, Novembe

Re: Python Beginner

2013-11-20 Thread ngangsia akumbo
can someone really help to give me a more details answer please. what can i do with python? -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 1:09:42 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 17:51, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 17:12, Ned Batchelder wrote: > >>> On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Ma

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 17:51, Ned Batchelder wrote: On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: On 20/11/2013 17:12, Ned Batchelder wrote: On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: On 20/11/2013 15:34, Alister wrote: On Thu, 21 Nov 2013 02:14:1

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 12:37:31 PM UTC-5, Mark Lawrence wrote: > On 20/11/2013 17:12, Ned Batchelder wrote: > > On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: > >> On 20/11/2013 15:34, Alister wrote: > >>> On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: >

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 17:12, Ned Batchelder wrote: On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: On 20/11/2013 15:34, Alister wrote: On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister wrote: must be a strange quirk of pan & t

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Ned Batchelder
On Wednesday, November 20, 2013 11:29:54 AM UTC-5, Mark Lawrence wrote: > On 20/11/2013 15:34, Alister wrote: > > On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > > > >> On Thu, Nov 21, 2013 at 2:09 AM, Alister > >> wrote: > >>> must be a strange quirk of pan & turned off hide to system

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-20 Thread Miki Tebeka
On Wednesday, November 20, 2013 6:36:56 AM UTC-8, Alec Taylor wrote: > Anyway, here is the link: https://github.com/rauhryan/huboard I thought you wanted a Python bases solution. -- https://mail.python.org/mailman/listinfo/python-list

Re: Automation

2013-11-20 Thread Walter Hurry
On Thu, 21 Nov 2013 03:33:02 +1100, Chris Angelico wrote: > But the actual fake is Cerinabbin You might have included Woolloomooloo in the list! -- https://mail.python.org/mailman/listinfo/python-list

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 16:29:54 +, Mark Lawrence wrote: > On 20/11/2013 15:34, Alister wrote: >> On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: >> >>> On Thu, Nov 21, 2013 at 2:09 AM, Alister >>> wrote: must be a strange quirk of pan & turned off hide to system tray & allow

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Rod Person
On 11/20/2013 11:03 AM, Ev J wrote: I am learning Python and wish to develop GUI applications to run on Windows. I have installed the Visual Studio integrated shell (Ver. 12.0.21005.1 REL) IDE and the Python 3.3 interpreter. I have gone through some of the 3.3 tutorial available at http://docs.

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 03:14:44 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 3:03 AM, Ev J wrote: >> Before I go too far down this road, I need to know if I can/should use >> this environment to develop GUI applications. Is there graphical >> support for this - for example I can I just in

Re: Automation

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 3:28 AM, Tim Golden wrote: > On 20/11/2013 16:19, Chris Angelico wrote: >> On Thu, Nov 21, 2013 at 3:14 AM, Grant Edwards >> wrote: >>> On 2013-11-19, Chris Angelico wrote: >>> Anyway, we Aussies know more about your geography than you know about ours, I reckon

Re: parsing RSS XML feed for item value

2013-11-20 Thread xDog Walker
On Wednesday 2013 November 20 05:44, Larry Wilson wrote: > >>> feed.entries[0].w_current > > {'temperature': u'20.3', 'dewpoint': u'18.6', 'windgusts': u'29.6', 'rain': > u'0.6', 'humidity': u'90', 'pressure': u'0.0', 'windspeed': u'22.2', > 'winddirection': u'SSW'} > > > in the above I get the sub

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 15:34, Alister wrote: On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: On Thu, Nov 21, 2013 at 2:09 AM, Alister wrote: must be a strange quirk of pan & turned off hide to system tray & allow multiple instances. Hmm. Hard to know, but I can imagine that having multiple

Re: Automation

2013-11-20 Thread Tim Golden
On 20/11/2013 16:19, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 3:14 AM, Grant Edwards > wrote: >> On 2013-11-19, 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-20 Thread Grant Edwards
On 2013-11-19, 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 l

Re: Automation

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 3:14 AM, Grant Edwards wrote: > On 2013-11-19, 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,

Re: parsing RSS XML feed for item value

2013-11-20 Thread xDog Walker
On Wednesday 2013 November 20 05:44, Larry Wilson wrote: > {'temperature': u'20.3', 'dewpoint': u'18.6', 'windgusts': u'29.6', 'rain': > u'0.6', 'humidity': u'90', 'pressure': u'0.0', 'windspeed': u'22.2', > 'winddirection': u'SSW'} Python 2.7.2 (default, Oct 10 2011, 10:47:36) [GCC 4.1.2 20061115

Re: Automation

2013-11-20 Thread Grant Edwards
On 2013-11-19, 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. Next thing you'll be telling us t

Re: Total Python Newbie needs geting started info.

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 3:03 AM, Ev J wrote: > Before I go too far down this road, I need to know if I can/should use this > environment to develop GUI applications. Is there graphical support for this > - for example I can I just insert/move/set properties of buttons, combo > boxes, etc. usin

Total Python Newbie needs geting started info.

2013-11-20 Thread Ev J
I am learning Python and wish to develop GUI applications to run on Windows. I have installed the Visual Studio integrated shell (Ver. 12.0.21005.1 REL) IDE and the Python 3.3 interpreter. I have gone through some of the 3.3 tutorial available at http://docs.python.org/3.3/tutorial/. The tutoria

Re: Automation

2013-11-20 Thread Chris Angelico
On Wed, Nov 20, 2013 at 2:11 AM, Chris Angelico wrote: > 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. W

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having multiple instances > MIGHT cause a

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having multiple instances > MIGHT cause a

Multiple postings

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:35:14 +, Alister wrote: > On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > >> On Thu, Nov 21, 2013 at 2:09 AM, Alister >> wrote: >>> must be a strange quirk of pan & turned off hide to system tray & >>> allow multiple instances. >> >> Hmm. Hard to know, but

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Thu, 21 Nov 2013 02:14:12 +1100, Chris Angelico wrote: > On Thu, Nov 21, 2013 at 2:09 AM, Alister > wrote: >> must be a strange quirk of pan & turned off hide to system tray & allow >> multiple instances. > > Hmm. Hard to know, but I can imagine that having multiple instances > MIGHT cause a

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 15:06, Alister wrote: Ok this is now silly Apologies to everyone I am monitoring my network connection to confirm that i am not sending multiple times. Still arriving multiple times, shoot the messenger? :) -- Python is the second best programming language in the world. But the

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: > On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > >> On 20/11/2013 09:29, Alister wrote: >>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano wrote: > 2 does count be

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 2:09 AM, Alister wrote: > must be a strange quirk of pan & turned off hide to system tray & allow > multiple instances. Hmm. Hard to know, but I can imagine that having multiple instances MIGHT cause a problem. But if that's confirmed (maybe fire up three copies and then p

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 15:06:44 +, Alister wrote: > On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: > >> On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: >> >>> On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: > On 20 Nov 2013 03

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 14:49:59 +, Alister wrote: > On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > >> On 20/11/2013 09:29, Alister wrote: >>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >>> On 20 Nov 2013 03:52:10 GMT, Steven D'Aprano wrote: > 2 does count be

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

2013-11-20 Thread Neil Cerutti
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info via python.org 8:56 PM (12 hours ago) wrote: > Write a helper function: > > def process(opener): > with opener('blah.txt', 'rb') as f: > for line in f: > print(line) As another option, you can enter the context manager af

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 1:49 AM, Alister wrote: > On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > >> On 20/11/2013 09:29, Alister wrote: >>> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> By the way, this is double posted and there were four identical messages >> from you yest

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> 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, "[cou

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> 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, "[cou

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> 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, "[cou

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 13:57:30 +, Mark Lawrence wrote: > On 20/11/2013 09:29, Alister wrote: >> On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: >> >>> 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, "[cou

Re: Automation

2013-11-20 Thread Chris Angelico
Here's a response from a full-blooded Scot on the subject. On Wed, Nov 20, 2013 at 8:29 PM, Derrick McCLURE wrote: > No, Chris, you haven't been led astray. The language is referred to as > Scots, not Scottish. There is an academic journal called Scottish Language, > which I edited for many yea

Re: run command line on Windows without showing DOS console window

2013-11-20 Thread Tim Golden
On 20/11/2013 14:44, iMath wrote: > > > is there anyway to run command line on Windows without showing DOS console > window ? > > can you use the following command line to give a little example ? > > wget -r -np -nd http://example.com/packages/ > > the path to wget is C:\Program Files\GnuWin3

Fwd: parsing RSS XML feed for item value

2013-11-20 Thread Neil Cerutti
Larry Wilson itd...@gmail.com via python.org 10:39 PM (10 hours ago) wrote: > > Wanting to parse out the the temperature value in the > " ElementTree or xml.sax. Since you aren't building up a complex data structure, xml.sax will be an OK choice. Here's a quick and dirty job: import io import xm

run command line on Windows without showing DOS console window

2013-11-20 Thread iMath
is there anyway to run command line on Windows without showing DOS console window ? can you use the following command line to give a little example ? wget -r -np -nd http://example.com/packages/ the path to wget is C:\Program Files\GnuWin32\bin\wget.exe -- https://mail.python.org/mailman/lis

Re: Setting longer default decimal precision

2013-11-20 Thread Oscar Benjamin
On 20 November 2013 14:02, Steven D'Aprano wrote: > > but alas, all the functions in the math module convert their arguments to > float first, so even though your Decimal(1) could perform calculations to > 75 decimal places, the math.atan function downgrades it to a regular > float. > > Unfortunat

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-20 Thread Alec Taylor
I actually did end up finding one; but now need bitbucket integration also. Anyway, here is the link: https://github.com/rauhryan/huboard On Mon, Nov 18, 2013 at 5:47 AM, Kevin Walzer wrote: > On 11/13/13, 7:46 AM, Alec Taylor wrote: >> >> Started to build this on my own; then was like, hang on!

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

2013-11-20 Thread Mark Lawrence
On 20/11/2013 06:55, 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. Just idle curiosity but why do you have to do this? On

Re: Setting longer default decimal precision

2013-11-20 Thread Steven D'Aprano
Hi Kay, You emailed me off-list, but your email address is bouncing or invalid, so I have no way to email you back. Unless you have something private or personal to say, you should keep replies on the list here so that others can either answer your questions or learn from the responses. If you

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Mark Lawrence
On 20/11/2013 09:29, Alister wrote: On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: 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". Tw

Re: parsing RSS XML feed for item value

2013-11-20 Thread Larry Wilson
>>> feed.entries[0].w_current {'temperature': u'20.3', 'dewpoint': u'18.6', 'windgusts': u'29.6', 'rain': u'0.6', 'humidity': u'90', 'pressure': u'0.0', 'windspeed': u'22.2', 'winddirection': u'SSW'} >>> in the above I get the subitem as shown. How do I extract the label, values pairs? -- http

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Duncan Booth
Denis McMahon wrote: > 1) Find all the numbers less than n that are not divisible by a, b, or c. > > ask the user for x; > assign the value 0 to some other variable i; > while i is not greater than than x do the following [ > if i is not divisible by a and i is not divisible by b and i is not >

Re: zip list, variables

2013-11-20 Thread Jussi Piitulainen
flebber writes: > If > > c = map(sum, zip([1, 2, 3], [4, 5, 6])) > > c > Out[7]: [5, 7, 9] > > why then can't I do this? > > a = ([1, 2], [3, 4]) > > b = ([5, 6], [7, 8]) > > c = map(sum, zip(a, b)) > --- > TypeError

Re: zip list, variables

2013-11-20 Thread Peter Otten
flebber wrote: > If > > c = map(sum, zip([1, 2, 3], [4, 5, 6])) > > c > Out[7]: [5, 7, 9] > > why then can't I do this? > > a = ([1, 2], [3, 4]) > > b = ([5, 6], [7, 8]) > > c = map(sum, zip(a, b)) > --- > TypeError

zip list, variables

2013-11-20 Thread flebber
If c = map(sum, zip([1, 2, 3], [4, 5, 6])) c Out[7]: [5, 7, 9] why then can't I do this? a = ([1, 2], [3, 4]) b = ([5, 6], [7, 8]) c = map(sum, zip(a, b)) --- TypeError Traceback (most re

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

2013-11-20 Thread Craig Yoshioka
Mavericks? Homebrew all the way. Google Homebrew and install it brew install python3 pip3 install pyserial Craig reporting from the road 10550 N Torrey Pines Rd La Jolla CA 92037 work: 858 784 9208 cell: 619 623 2233 > On Nov 19, 2013, at 10:55 PM, Travis Griggs wrote: > > OSX (Mavericks) ha

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: > 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

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Alister
On Wed, 20 Nov 2013 00:54:28 -0500, Dave Angel wrote: > 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

Re: Getting RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread dellair
Steven, Thanks for the reply, There was no error on compilation and link phases, only some warnings. However, during Python build, there is an import phase right after the link, which shows the same error as stated. building '_ssl' extension xlc_r -DNDEBUG -O -IInclude -I. -I/usr/local/include

Re: Getting RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread dellair
Environment: Python: 3.3.2 OpenSSL: 0.9.8y (also tried 0.9.7) OS: AIX 6.1 (also tried on HPUX_1131_IA) Thanks, 在 2013年11月20日星期三UTC+1上午9时21分23秒,del...@gmail.com写道: > Hello all, > > > > I am getting above error when trying to import ssl module. > > In fact, the error showed up during the build

Re: Getting RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread Steven D'Aprano
On Wed, 20 Nov 2013 00:21:23 -0800, dellair wrote: > Hello all, > > I am getting above error when trying to import ssl module. In fact, the > error showed up during the build and _ssl module was added to the failed > module list. However, the compilation and link went well. If the _ssl module fa

Getting RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread dellair
Hello all, I am getting above error when trying to import ssl module. In fact, the error showed up during the build and _ssl module was added to the failed module list. However, the compilation and link went well. Could anyone shed some lights on how to get it work? Thanks in advance! Br, --

Re: Oh look, another language (ceylon)

2013-11-20 Thread Bob Martin
in 710625 20131119 091055 wxjmfa...@gmail.com wrote: >Le lundi 18 novembre 2013 14:31:33 UTC+1, Steven D'Aprano a =E9crit=A0: >> >> >> ... choose one of the three bad choices: ... >> >> >> >> * choose UTF-16 or UTF-8, and have O(n) primitive string operations (like= >=20 >> >> Haskell and, appar