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, apparently, Ceylon);

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: 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 and

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 fails

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.

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 st...@pearwood.info 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

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 st...@pearwood.info 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

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 travisgri...@gmail.com wrote:

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: 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

Re: zip list, variables

2013-11-20 Thread Jussi Piitulainen
flebber flebber.c...@gmail.com 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)) ---

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Duncan Booth
Denis McMahon denismfmcma...@gmail.com 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

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? --

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 st...@pearwood.info 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

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

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: 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 k...@codebykevin.com wrote: On 11/13/13, 7:46 AM, Alec Taylor wrote: Started to build this on my own; then

Re: Setting longer default decimal precision

2013-11-20 Thread Oscar Benjamin
On 20 November 2013 14:02, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

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 --

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 w:current element, just after the guid element using ElementTree or xml.sax. Since you aren't building up a complex data structure, xml.sax will be an OK choice.

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

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 j.d.mccl...@virgin.net 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

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 st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states,

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 st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states,

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 st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states,

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 st...@pearwood.info wrote: 2 does count because it isn't divisible by 3. The question states,

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 1:49 AM, Alister alister.w...@ntlworld.com 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

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 after

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 st...@pearwood.info wrote: 2 does count

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:52:10 GMT, Steven

Re: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 2:09 AM, Alister alister.w...@ntlworld.com 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

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 st...@pearwood.info wrote: 2 does count

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

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 alister.w...@ntlworld.com 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

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 alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard to

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 alister.w...@ntlworld.com 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

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 alister.w...@ntlworld.com 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

Re: Automation

2013-11-20 Thread Chris Angelico
On Wed, Nov 20, 2013 at 2:11 AM, Chris Angelico ros...@gmail.com wrote: On Wed, Nov 20, 2013 at 2:06 AM, MRAB pyt...@mrabarnett.plus.com 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

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

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 shorepoin...@gmail.com 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

Re: Automation

2013-11-20 Thread Grant Edwards
On 2013-11-19, Chris Angelico ros...@gmail.com 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

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 Chris Angelico
On Thu, Nov 21, 2013 at 3:14 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-11-19, Chris Angelico ros...@gmail.com 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,

Re: Automation

2013-11-20 Thread Grant Edwards
On 2013-11-19, Ian Kelly ian.g.ke...@gmail.com wrote: On Fri, Nov 15, 2013 at 1:45 PM, Alister alister.w...@ntlworld.com 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

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 invalid@invalid.invalid wrote: On 2013-11-19, Chris Angelico ros...@gmail.com wrote: Anyway, we Aussies know more about your geography than you know about ours, I reckon. Which of these is not a real

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 alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray allow multiple instances. Hmm. Hard to know, but I can

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 subitem as

Re: Automation

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 3:28 AM, Tim Golden m...@timgolden.me.uk wrote: On 20/11/2013 16:19, Chris Angelico wrote: On Thu, Nov 21, 2013 at 3:14 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-11-19, Chris Angelico ros...@gmail.com wrote: Anyway, we Aussies know more about your

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 shorepoin...@gmail.com 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

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

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 alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide to system tray

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: 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: 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 alister.w...@ntlworld.com wrote: must be a strange quirk of pan turned off hide

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 alister.w...@ntlworld.com wrote: must be

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: On

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

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, Mark

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 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,

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: 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. --

Re: Python Beginner

2013-11-20 Thread Joel Goldstick
On Wed, Nov 20, 2013 at 1:41 PM, Hector Chapa hch...@lrgvdc911.org 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

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

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 math

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 which can

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, Mark

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: 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 installation

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

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 in

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: Newbie - Trying to Help a Friend

2013-11-20 Thread Chris Angelico
On Thu, Nov 21, 2013 at 5:18 AM, Ned Batchelder n...@nedbatchelder.com 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

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,

Re: Automation

2013-11-20 Thread Grant Edwards
On 2013-11-20, Walter Hurry walterhu...@lavabit.com 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

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 wget is C:\Program

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

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 lo...@s1network.com 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

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: [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

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

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

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 lo...@s1network.com 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

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 ros...@gmail.com 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,

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 list

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 that my

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

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

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

2013-11-20 Thread Ben Finney
Chris Friesen chris.frie...@windriver.com 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

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 chris.frie...@windriver.com 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

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

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

[issue19661] Python: RuntimeError: invalid slot offset when importing a module

2013-11-20 Thread dellair jie
New submission from dellair jie: Dear 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. There was no error on compilation and link

[issue19183] PEP 456 Secure and interchangeable hash algorithm

2013-11-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset adb471b9cba1 by Christian Heimes in branch 'default': ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. http://hg.python.org/cpython/rev/adb471b9cba1 -- ___ Python tracker

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread Leslie P. Polzer
New submission from Leslie P. Polzer: http://hg.python.org/cpython/file/3.3/Lib/smtpd.py#l289 as of now decodes incoming bytes as UTF-8. An SMTP server must not attempt to interpret characters beyond ASCII, however. Originally mail servers were not 8-bit clean, meaning they would only

[issue19662] smtpd.py should not decode utf-8

2013-11-20 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19662 ___ ___ Python-bugs-list

[issue12816] smtpd uses library outside of the standard libraries

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12816 ___ ___ Python-bugs-list

[issue16462] smtpd should return greeting

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16462 ___ ___ Python-bugs-list

[issue8503] smtpd SMTPServer does not allow domain filtering

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8503 ___ ___ Python-bugs-list

[issue3802] smtpd.py __getaddr insufficient handling

2013-11-20 Thread Leslie P. Polzer
Changes by Leslie P. Polzer pol...@port-zero.com: -- nosy: +lpolzer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3802 ___ ___ Python-bugs-list

  1   2   3   >