[ANN] Lupa 0.9 - Lua in Python

2010-07-24 Thread Stefan Behnel
Hi all, I'm happy to announce the release of Lupa 0.9. http://pypi.python.org/pypi/lupa/0.9 What is Lupa? -- Lupa integrates the LuaJIT2 runtime [1] into CPython. It is a rewrite of LunaticPython in Cython with a couple of additional features. The major new feature in this

[Python Ireland presents] August Talks at The Science Gallery (Wed 11th Aug, 19:00)

2010-07-24 Thread Vicky Twomey-Lee
Hi All, When: Wed 11th Aug, 19:00 Where: The Science Gallery, Pearse Street. What: Distributed profiling using Redis (Michael Twomey) - Mick moved his Redis talk from PyCon Ireland main tracks, so he decided to give a talk

Re: understanding the mro (long)

2010-07-24 Thread Michele Simionato
On Jul 24, 4:42 am, Rolando Espinoza La Fuente dark...@gmail.com wrote: Finally everything make sense. And make think about be careful when doing multiple inheritance. Any thoughts? ~Rolando I am not fond of multiple inheritance either and I wrote at length about the dangers of it. If you

'as' keyword - when/how to use it

2010-07-24 Thread Dummey
I am having the hardest time trying to find documentation on proper use of the 'as' keyword (aside from . I initially thought that I would be allowed to do something such as: import shared.util as util The as statement seems to be causing a lot of ''module' object has no attribute'. Is it safe

Re: time between now and the next 2:30 am?

2010-07-24 Thread John Nagle
On 7/23/2010 10:01 AM, Jim wrote: How can I calculate how much time is between now and the next 2:30 am? Naturally I want the system to worry about leap years, etc. Thanks, Jim DAYSECS = 24*60*60 GOALSECS = (2*60 + 30)*60 now = (GOALSECS + DAYSECS - (int(time.time()) % DAYSECS)) %

Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-24 Thread Lacrima
Hi! I have two super classes: class SuperClass1(object): def __init__(self, word): print word class SuperClass2(object): def __init__(self, word, word2): print word, word2 Also I have subclass of these classes: class SubClass(SuperClass1, SuperClass2): def

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-24 Thread Raymond Hettinger
On Jul 24, 12:47 am, Lacrima lacrima.ma...@gmail.com wrote: Hi! I have two super classes: class SuperClass1(object):     def __init__(self, word):         print word class SuperClass2(object):     def __init__(self, word, word2):         print word, word2 Also I have subclass of these

Re: 'as' keyword - when/how to use it

2010-07-24 Thread Terry Reedy
On 7/24/2010 2:33 AM, Dummey wrote: I am having the hardest time trying to find documentation on proper use of the 'as' keyword (aside from . I initially thought that I would be allowed to do something such as: import shared.util as util The as statement seems to be causing a lot of ''module'

Re: C interpreter in Lisp/scheme/python

2010-07-24 Thread francogrex
In article icqj46lnoaqkdr5igvqi9so62i30cac...@4ax.com, gneun...@comcast.net says... I don't think it's accurate to say that [some] experts really scorn newbies, but I do agree that newbies are occasionally mistreated. One thing newbies have to realize is that on Usenet you are quite likely to

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Mark Lawrence
On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and 3.1.2 into completely folders, but

Re: 'as' keyword - when/how to use it

2010-07-24 Thread Steven D'Aprano
On Fri, 23 Jul 2010 23:33:55 -0700, Dummey wrote: I am having the hardest time trying to find documentation on proper use of the 'as' keyword (aside from . I initially thought that I would be allowed to do something such as: import shared.util as util The as statement seems to be causing

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-24 Thread Lacrima
On Jul 24, 11:20 am, Raymond Hettinger raymond.hettin...@gmail.com wrote: On Jul 24, 12:47 am, Lacrima lacrima.ma...@gmail.com wrote: Hi! I have two super classes: class SuperClass1(object):     def __init__(self, word):         print word class SuperClass2(object):     def

Re: time between now and the next 2:30 am?

2010-07-24 Thread Jim
On Jul 23, 8:52 pm, MRAB pyt...@mrabarnett.plus.com wrote: dt_twothirty=dt_localtime.replace(hour=settings.UPDATE_TIME_HOURS,minute=se ttings.UPDATE_TIME_MINS,second=0,microsecond=0) You're changing the time of day, but not the date. You might want to add a day to the shutdown time if it's

Re: non-blocking IO EAGAIN on write

2010-07-24 Thread Roy Smith
In article mailman.1105.1279945954.1673.python-l...@python.org, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: In general, after select has told you a descriptor is ready, the first write after that should always succeed. I used to think that too. Over the last few years, I've been

Are those features still the same?

2010-07-24 Thread francogrex
Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). I'm not interested in any comparisons only in the Python features ( last column), can someone

Re: Are those features still the same?

2010-07-24 Thread Steven D'Aprano
On Sat, 24 Jul 2010 14:45:52 +0200, francogrex wrote: Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). I'm not interested in any comparisons

Re: Are those features still the same?

2010-07-24 Thread Peter Otten
francogrex wrote: Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). I'm not interested in any comparisons only in the Python features ( last

Re: Are those features still the same?

2010-07-24 Thread Thomas Jollans
On 07/24/2010 02:45 PM, francogrex wrote: Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). I'm not interested in any comparisons only in

Re: Are those features still the same?

2010-07-24 Thread Brian Quinlan
On 24 Jul 2010, at 23:19, Thomas Jollans wrote: Support heterogeneous lists == Yes (array) This is nonsense, and has always been. Python lists (not arrays) have always been heterogeneous. They store objects and don't care about the type. Python arrays (from the array module) are homogeneous,

Re: Are those features still the same?

2010-07-24 Thread Peter Otten
Thomas Jollans wrote: Support heterogeneous lists == Yes (array) This is nonsense, and has always been. I think you are misunderstanding that statement. Python's list stores its items in a continuous chunk of memory, a layout that is called array in common CS terminology as opposed to

Re: Are those features still the same?

2010-07-24 Thread Thomas Jollans
On 07/24/2010 03:48 PM, Brian Quinlan wrote: On 24 Jul 2010, at 23:19, Thomas Jollans wrote: Support heterogeneous lists == Yes (array) This is nonsense, and has always been. Python lists (not arrays) have always been heterogeneous. They store objects and don't care about the type. Python

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 17, 10:40 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: On 7/17/10 10:01 PM, be.krul wrote: why is this group being spammed? Because while God created the Internet, the Devil twisted it by creating spammers. What do you expect? Adam just didn't pay enough attention when Eve

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 17, 10:09 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Jul 17, 2010 at 10:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? Because that's what happens in unmoderated USENET newsgroups. Cheers, Chris I thought this group can be moderated, but turns out

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 17, 10:24 pm, Ben Finney ben+pyt...@benfinney.id.au wrote: be.krul be.k...@gmail.com writes: why is this group being spammed? What kind of answer are you looking for? Are you asking about the motives of spammers, or the technical explanation for how the spam arrives, or something

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 17, 10:57 pm, Alf P. Steinbach /Usenet alf.p.steinbach +use...@gmail.com wrote: * be.krul, on 18.07.2010 07:01: why is this group being spammed? It depends a little on what you're asking, e.g. technical versus motivation. But I'll answer about something you probably didn't mean to

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 17, 10:01 pm, be.krul be.k...@gmail.com wrote: why is this group being spammed? What I was asking is why not moderate the group. this is the only Python group I could find.. But maybe owner of this group do no care in that case we *all* get spammed! --

Re: why is this group being spammed?

2010-07-24 Thread Thomas Jollans
On 07/24/2010 04:20 PM, be.krul wrote: On Jul 17, 10:09 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Jul 17, 2010 at 10:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? Because that's what happens in unmoderated USENET newsgroups. Cheers, Chris I thought

Re: Jesus in the Glorious Qur'an ------ The True Message of Jesus Christ

2010-07-24 Thread be.krul
On Jul 23, 3:14 pm, nais-saudi f2h...@gmail.com wrote: Jesus in the Glorious Qur'an -- The True Message of Jesus Christ The Qur’an tells us a lot of wonderful things about Jesus. As a result, believers in the Qur’an love Jesus, honour him, and believe in him. In fact, no Muslim can be a

Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread rlevesque
Hi I am working on a program that generates various pdf files in the / results folder. scenario1.pdf results from scenario1 scenario2.pdf results from scenario2 etc Once I am happy with scenario1.pdf and scenario2.pdf files, I would like to save them in the /check folder. Now after having

Re: why is this group being spammed?

2010-07-24 Thread be.krul
On Jul 24, 7:39 am, Thomas Jollans tho...@jollans.com wrote: On 07/24/2010 04:20 PM, be.krul wrote: On Jul 17, 10:09 pm, Chris Rebert c...@rebertia.com wrote: On Sat, Jul 17, 2010 at 10:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? Because that's what happens

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread Peter Chant
rlevesque wrote: Is there a way to compare 2 pdf files generated at different time but identical in every other respect and validate by program that the files are identical (for all practical purposes)? I wonder, do the PDFs have a timestamp within them from when they are created? That

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread Peter Otten
rlevesque wrote: Hi I am working on a program that generates various pdf files in the / results folder. scenario1.pdf results from scenario1 scenario2.pdf results from scenario2 etc Once I am happy with scenario1.pdf and scenario2.pdf files, I would like to save them in the /check

Re: why is this group being spammed?

2010-07-24 Thread Brian J Mingus
On Sat, Jul 17, 2010 at 11:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? -- http://mail.python.org/mailman/listinfo/python-list Here's a few of theories: 1) This isn't a strong enough community to warrant a group of people who moderate the list and make sure spam

Library versions

2010-07-24 Thread Peo
Hi, I'm writing a library for doing sysadmin tasks at my workplace. These kind of scripts have a tendency to live for decades and I want to make sure that I don't break anything when I'm updating the library. My current plan is to call the library something like 'foo1' and import it into scripts

Re: why is this group being spammed?

2010-07-24 Thread nero janick
Brian, would you like to volunteer? On Sat, Jul 24, 2010 at 8:59 AM, Brian J Mingus brian.min...@colorado.eduwrote: On Sat, Jul 17, 2010 at 11:01 PM, be.krul be.k...@gmail.com wrote: why is this group being spammed? -- http://mail.python.org/mailman/listinfo/python-list Here's a few

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread rlevesque
On Jul 24, 11:50 am, Peter Otten __pete...@web.de wrote: rlevesque wrote: Hi I am working on a program that generates various pdf files in the / results folder. scenario1.pdf  results from scenario1 scenario2.pdf results from scenario2 etc Once I am happy with scenario1.pdf and

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread Peter Otten
rlevesque wrote: Unfortunately there is an other pair of values that does not match and it is not obvious to me how to exclude it (as is done with the / CreationDate pair). and the pdf document is created using reportLab. I dug into the reportlab source and in reportlab/rl_config.py

Re: Checking that 2 pdf are identical (md5 a solution?)

2010-07-24 Thread rlevesque
On Jul 24, 1:34 pm, Peter Otten __pete...@web.de wrote: rlevesque wrote: Unfortunately there is an other pair of values that does not match and it is not obvious to me how to exclude it (as is done with the / CreationDate pair). and the pdf document is created using reportLab. I dug

Re: non-blocking IO EAGAIN on write

2010-07-24 Thread John Nagle
On 7/23/2010 1:45 AM, Thomas Guettler wrote: Hi, I use non-blocking io to check for timeouts. Sometimes I get EAGAIN (Resource temporarily unavailable) on write(). My working code looks like this. But I am unsure how many bytes have been written to the pipe if I get an EAGAIN IOError. At

Re: Library versions

2010-07-24 Thread Carl Banks
On Jul 24, 8:56 am, Peo paul...@gmail.com wrote: Hi, I'm writing a library for doing sysadmin tasks at my workplace. These kind of scripts have a tendency to live for decades and I want to make sure that I don't break anything when I'm updating the library. My current plan is to call the

Re: why is this group being spammed?

2010-07-24 Thread Mark Lawrence
On 24/07/2010 18:01, Dennis Lee Bieber wrote: On Sat, 24 Jul 2010 07:32:30 -0700 (PDT), be.krulbe.k...@gmail.com declaimed the following in gmane.comp.python.general: But maybe owner of this group do no care in that case we *all* get spammed! There is NO OWNER of comp.lang.python;

Re: why is this group being spammed?

2010-07-24 Thread Jia Hu
Hi, can I subscribe this by gmail? On Sat, Jul 24, 2010 at 3:16 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 24/07/2010 18:01, Dennis Lee Bieber wrote: On Sat, 24 Jul 2010 07:32:30 -0700 (PDT), be.krulbe.k...@gmail.com declaimed the following in gmane.comp.python.general: But maybe

Re: understanding the mro (long)

2010-07-24 Thread Carl Banks
On Jul 23, 7:42 pm, Rolando Espinoza La Fuente dark...@gmail.com wrote: TL;DR: if you want to stay sane, don't inherit two classes that share same inheritance graph [snip rest] If you want to stay sane, don't inherit from ANY class unless A. you own it, or B. it's explicitly documented as

Re: why is this group being spammed?

2010-07-24 Thread Jia Hu
I subscribe for this mailing list at http://mail.python.org/mailman/listinfo/python-list On Sat, Jul 24, 2010 at 3:22 PM, Jia Hu huji...@gmail.com wrote: Hi, can I subscribe this by gmail? On Sat, Jul 24, 2010 at 3:16 PM, Mark Lawrence breamore...@yahoo.co.ukwrote: On 24/07/2010 18:01,

Re: 'as' keyword - when/how to use it

2010-07-24 Thread Dummey
On Jul 24, 3:44 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: On Fri, 23 Jul 2010 23:33:55 -0700, Dummey wrote: I am having the hardest time trying to find documentation on proper use of the 'as' keyword (aside from . I initially thought that I would be allowed to do

Re: Where is the man page of python library

2010-07-24 Thread Chris Jewell
rantingrick rantingr...@gmail.com writes: On Jul 23, 9:49 am, Steven D'Aprano st...@remove-this- [snip] In the land of the blind, the one eyed man is king! ;-) ... And across the way, in the country of the witless, the half-wit is king. Richard Mitchell (a/k/a The Undeground Grammarian.)

Re: Unicode error

2010-07-24 Thread John Machin
dirknbr dirknbr at gmail.com writes: I have kind of developped this but obviously it's not nice, any better ideas? try: text=texts[i] text=text.encode('latin-1') text=text.encode('utf-8') except: text=' ' As Steven has

Re: A portable LISP interpreter that includes all the major list-processing functions is described. A complete, annotated listing of the program's code, written in PASCAL, is included.

2010-07-24 Thread Emmy Noether
On Jul 23, 9:27 pm, TheFlyingDutchman zzbba...@aol.com wrote: On Jul 23, 12:06 pm, Emmy Noether emmynoeth...@gmail.com wrote: Title   Portable LISP interpreter Creator/Author  Cox, L.A. Jr. ; Taylor, W.P. Publication Date        1978 May 31 OSTI Identifier OSTI ID: 7017786 Report

Re: A portable LISP interpreter that includes all the major list-processing functions is described. A complete, annotated listing of the program's code, written in PASCAL, is included.

2010-07-24 Thread Emmy Noether
On Jul 23, 9:27 pm, TheFlyingDutchman zzbba...@aol.com wrote: On Jul 23, 12:06 pm, Emmy Noether emmynoeth...@gmail.com wrote: Title   Portable LISP interpreter Creator/Author  Cox, L.A. Jr. ; Taylor, W.P. Publication Date        1978 May 31 OSTI Identifier OSTI ID: 7017786 Report

Re: why is this group being spammed?

2010-07-24 Thread Mark Lawrence
On 24/07/2010 20:28, Jia Hu wrote: I subscribe for this mailing list at http://mail.python.org/mailman/listinfo/python-list I read through Thunderbird on Windows direct to gmane.comp.python.general. I'm no expert on such things, but assume that they are simply better [or less profitable

Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
Hi, I have been meddling around with forking and multiprocessing. Now both of them spawn new processes from parent (atleast from what I have understood). I have been able to reproduce a zombie state in a fork with: import os,time print('before fork',os.getpid()) pid = os.fork() if pid:

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
OK I wanted zombie processes and have been able to regenerate them with multiprocessing. Now lets see how I can handle them. Nav On 25-Jul-2010, at 4:37 AM, Navkirat Singh wrote: Hi, I have been meddling around with forking and multiprocessing. Now both of them spawn new processes from

Re: Are those features still the same?

2010-07-24 Thread Terry Reedy
On 7/24/2010 8:45 AM, francogrex wrote: Hi, I'm not a Python programmer but I'm interested in it and I found this table from Norvig that dates for some years (I re-posted it temporarily on my site below to take it out of context a little). I'm not interested in any comparisons only in the Python

Re: Multiprocessing zombie processes

2010-07-24 Thread Chris Rebert
On Sat, Jul 24, 2010 at 4:11 PM, Navkirat Singh navkir...@gmail.com wrote: OK I wanted zombie processes snip Now lets see how I can handle them. Paging Dr. Frankenstein. Dr. Frankenstein to the lab. Paging Dr. Frankenstein. Cheers, Chris -- Most people try to /avoid/ making zombies. --

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
I want to kill Zombiesso first I have to create them...simple law of nature On 25-Jul-2010, at 5:08 AM, Chris Rebert wrote: On Sat, Jul 24, 2010 at 4:11 PM, Navkirat Singh navkir...@gmail.com wrote: OK I wanted zombie processes snip Now lets see how I can handle them. Paging Dr.

Re: why is this group being spammed?

2010-07-24 Thread John Bokma
be.krul be.k...@gmail.com writes: On Jul 17, 10:01 pm, be.krul be.k...@gmail.com wrote: why is this group being spammed? What I was asking is why not moderate the group. this is the only Python group I could find.. Controlling spam starts by you! Report it. And certainly don't reply to spam

Re: Multiprocessing zombie processes

2010-07-24 Thread Thomas Jollans
On 07/25/2010 01:43 AM, Navkirat Singh wrote: I want to kill Zombiesso first I have to create them...simple law of nature You can't kill a zombie. That's why we call them zombies, as opposed to, say, daemons. On 25-Jul-2010, at 5:08 AM, Chris Rebert wrote: On Sat, Jul 24, 2010

Re: Multiprocessing zombie processes

2010-07-24 Thread Cameron Simpson
[ Please don't top post. Post below so that things read like a conversation. (And trim excess quoted junk.) It doesn't take long and makes things a lot easier for your readers. ] On 25Jul2010 04:41, Navkirat Singh navkir...@gmail.com wrote: | On 25-Jul-2010, at 4:37 AM, Navkirat Singh wrote:

Re: A portable LISP interpreter that includes all the major list-processing functions is described. A complete, annotated listing of the program's code, written in PASCAL, is included.

2010-07-24 Thread geremy condra
On Sat, Jul 24, 2010 at 3:43 PM, Emmy Noether emmynoeth...@gmail.com wrote: On Jul 23, 9:27 pm, TheFlyingDutchman zzbba...@aol.com wrote: On Jul 23, 12:06 pm, Emmy Noether emmynoeth...@gmail.com wrote: Title   Portable LISP interpreter Creator/Author  Cox, L.A. Jr. ; Taylor, W.P.

Re: Multiprocessing zombie processes

2010-07-24 Thread Navkirat Singh
On 25-Jul-2010, at 5:25 AM, Cameron Simpson wrote: [ Please don't top post. Post below so that things read like a conversation. (And trim excess quoted junk.) It doesn't take long and makes things a lot easier for your readers. ] On 25Jul2010 04:41, Navkirat Singh navkir...@gmail.com

pyqt Error with qtdesigner button groups

2010-07-24 Thread Gelonida
Hi, I have have a layout with qt designer, which contains radio buttons. Now I want to add three buttons into a button group. doing this manually works fine with manually I mean adding a few lines in my widget class. example: bg = self.buttongroup = Qg.QButtonGroup()

Re: Socket performance

2010-07-24 Thread Lawrence D'Oliveiro
In message mailman.1097.1279930004.1673.python-l...@python.org, Navkirat Singh wrote: I had a question, programming sockets, what are the things that would degrade performance and what steps could help in a performance boost? Remember the old saying, “premature optimization is the root of all

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-24 Thread Gregory Ewing
Lacrima wrote: But what if SuperClass1 is from third party library? If it hasn't been designed for super(), then you can't use super() with it. super() only works when *every* class in the hierarchy has been designed with it in mind. -- Greg --

Re: Socket performance

2010-07-24 Thread Navkirat Singh
On 25-Jul-2010, at 6:45 AM, Lawrence D'Oliveiro wrote: In message mailman.1097.1279930004.1673.python-l...@python.org, Navkirat Singh wrote: I had a question, programming sockets, what are the things that would degrade performance and what steps could help in a performance boost?

numpy installation

2010-07-24 Thread Jia Hu
Hello: I tried to install numpy 1.4.1 from source under ubuntu following instruction at http://docs.scipy.org/doc/numpy/user/install.html I type python setup.py build –help-fcompiler and it says gnu95 is found. Then I run python setup.py build –fcompiler=gnu95. There is error. Does anyone

Re: Builtn super() function. How to use it with multiple inheritance? And why should I use it at all?

2010-07-24 Thread Steven D'Aprano
On Sun, 25 Jul 2010 13:58:00 +1200, Gregory Ewing wrote: Lacrima wrote: But what if SuperClass1 is from third party library? If it hasn't been designed for super(), then you can't use super() with it. super() only works when *every* class in the hierarchy has been designed with it in

Re: non-blocking IO EAGAIN on write

2010-07-24 Thread Kushal Kumaran
- Original message - In article mailman.1105.1279945954.1673.python-l...@python.org,   Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: In general, after select has told you a descriptor is ready, the first write after that should always succeed. snip Consider, for example,

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Edward Diener
On 7/24/2010 6:25 AM, Mark Lawrence wrote: On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Edward Diener
On 7/24/2010 6:25 AM, Mark Lawrence wrote: On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to look out for ? I have already run into a number of them. I installed Python 2.7 and

Re: Multiple versions of Python coexisting in the same OS

2010-07-24 Thread Chris Rebert
On Sat, Jul 24, 2010 at 7:40 PM, Edward Diener eldie...@tropicsoft.invalid wrote: On 7/24/2010 6:25 AM, Mark Lawrence wrote: On 24/07/2010 04:17, Edward Diener wrote: Are there any documents about multiple versionsof Python coexisting in the same OS ( Windows in my case ) and what pitfalls to

Re: Socket performance

2010-07-24 Thread John Nagle
On 7/23/2010 5:06 PM, Navkirat Singh wrote: Hey Everyone, I had a question, programming sockets, what are the things that would degrade performance and what steps could help in a performance boost? I would also appreciate being pointed to some formal documentation or article. 1. When

[issue6517] configparser: add possibility to escape formatstrings

2010-07-24 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: The documentation should promote RawConfigParser, and note SafeConfigParser and ConfigParser as remaining for backward compatibility for existing software. That is another way to go around this. Anyway, ConfigParser is the least predictable

[issue9212] dict_keys purports to implement the Set ABC, but is missing the isdisjoint method

2010-07-24 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com added the comment: Unless there is a reason I have missed, I would iterate through the smaller set, which might even be empty or nearly so, rather than either in particular. You're right, here is a new patch. Pseudocode: def isdisjoint(self, other):

[issue8775] Use locale encoding to encode command line arguments (subprocess, os.exec*(), etc.)

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue only seems to be relevant for OSX, and then only for OSX releases before 10.5, because in that release Apple made sure that the LANG variable and simular LC_* ones specify a UTF-8 encoding and we're back at the common case

[issue9366] Reference leak for local new style class

2010-07-24 Thread Kay Hayen
New submission from Kay Hayen kayha...@gmx.de: Hello, I have created tests that check the reference counting and found that the following simple function leaks references in CPython: def simpleFunction39(): class Parent( object ): pass I have attached a test that needs to be run

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Darren Worrall
New submission from Darren Worrall d...@darrenworrall.co.uk: In my checkout of py3k (r83123), test_getgroups in test_posix fails - the right elements are returned but the ordering is different: $ ./python -m test.regrtest test_posix test_posix test test_posix failed -- Traceback (most recent

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Armin Ronacher
New submission from Armin Ronacher armin.ronac...@active-4.com: The following patch changes some parts of the public C API for const correctness which would help C++ programmers. The original patch was provided by neXyon on irc.freenode.net. It does not produce any compiler warnings on GCC

[issue4184] Remove use of private attributes in smtpd

2010-07-24 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: Committed in revision 83125. -- assignee: - richard resolution: - fixed stage: - committed/rejected status: open - closed type: - feature request ___ Python tracker

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
New submission from Jörg Müller nex...@gmail.com: Patch attached -- components: Interpreter Core files: patch.diff keywords: patch messages: 111437 nosy: neXyon priority: normal severity: normal status: open title: const char* for PyObject_CallMethod and PyObject_CallFunction type:

[issue9336] string.letters should display locale based equivalent of a-Z

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Actually, in Python 2.x, string.letters *does* contain the letters based on the locale. Just make sure to call locale.setlocale. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Jörg Müller nex...@gmail.com added the comment: I've merged the patch with the changes from Armin in issue9368. -- type: feature request - behavior Added file: http://bugs.python.org/file18176/patch.diff ___ Python tracker rep...@bugs.python.org

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Jörg Müller
Changes by Jörg Müller nex...@gmail.com: Removed file: http://bugs.python.org/file18175/patch.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9369 ___

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Jörg Müller
Jörg Müller nex...@gmail.com added the comment: Uhm, while I reported this Armin was faster than me :) However, I've merged our patches in issue9369. -- nosy: +neXyon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9368

[issue7900] posix.getgroups() failure on Mac OS X

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: 2.7: r83124 2.6: r83126 The fix is now in all active branches, and I therefore close the issue. -- stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can somebody please point to a current version of the Apache documentation? The link in msg106322 does not work anymore. I'm tempted to close this as invalid: Apache is clearly violating the XML-RPC specification, so the bug is theirs. As

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- assignee: - ronaldoussoren components: +Macintosh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7041 ___

[issue8792] Support Apache extensions to XML-RPC in xmlrpclib

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I just noticed that I only need to strip the comma from the URL. So I now see it's not an Apache bug, but explicitly marked as an extension. So I'm reclassifying this as a feature request. As a new feature, it can only go into 3.2.

[issue8798] tkinter build variants on OSX

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: We talked about this at the language summit at EuroPython 2010. We'll resolve the installer issue by moving the 64-bit capable installer to Tk 8.5 (with a minimal OSX version of 10.6). The 32-bit installer will still use Tk 8.4

[issue9367] test_getgroups in test_posix fails

2010-07-24 Thread Darren Worrall
Darren Worrall d...@darrenworrall.co.uk added the comment: After a quick chat with Ronald at the EP sprint he says the ordering didnt matter, so here's a quick patch to check only for deltas. -- keywords: +patch Added file: http://bugs.python.org/file18177/py3k-issue9367.diff

[issue4813] On OS-X the directories searched by setup.py for Tk are in the wrong order.

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue is no longer valid, the current search order from setup.py: def detect_tkinter_darwin(self, inc_dirs, lib_dirs): # The _tkinter module, using frameworks. Since frameworks are quite # different the UNIX

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If an application uses .isalpha for a security-relevant check, this is a security issue in the application, not in Python. -- ___ Python tracker rep...@bugs.python.org

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Anthony Long
Anthony Long antl...@gmail.com added the comment: I disagree. It's expected that the function will return valid data. This doesn't return valid data so isalpha() is compromised. -- ___ Python tracker rep...@bugs.python.org

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Martin that the security problem would be in the application, not python itself. Testing with isalpha is generally not the right thing to do anyway, it is much better to restrict input to a know-good set of data, such as

[issue9370] Add reader redirect from test package docs to unittest module

2010-07-24 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: Brett updated the docs for the test package to (correctly) point out that it is our internal testing package and isn't subject to the same stringent backwards compatibility rules as the rest of the standard library. A see also link pointing

[issue1560032] confusing error msg from random.randint

2010-07-24 Thread Petras Zdanavičius
Petras Zdanavičius petra...@gmail.com added the comment: I have written a patch thats makes these strange error messages go away. What actually I have done was something like this: randint = _inst.randint Was replaced with: def randint(a, b): return _inst.randint(a, b) But I do not

[issue9197] Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: (changing subject to better tell what this issue is about) -- title: subprocess module causing crash - Crash when importer an extension after Py_Initialize, Py_Finalize and Py_Initialize ___

[issue1152248] Enhance file.readlines by making line separator selectable

2010-07-24 Thread Ralph Corderoy
Ralph Corderoy ralph-pythonb...@inputplus.co.uk added the comment: fileLineIter() is not a solution that allows this bug to be closed, no. readline() needs modifying and if that means python-dev discussion then that's what it needs. Things to consider include changing the record separator as

[issue7041] test_macostools fails on os x 10.6

2010-07-24 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This issue was fixed in the repository a while back by disabling these tests on 64-bit systems. As Ned notes the code uses APIs that aren't available for 64-bit processes. -- status: open - closed

[issue9368] Const-Correctness for Method Calls

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - const char* for PyObject_CallMethod and PyObject_CallFunction ___ Python tracker

[issue9369] const char* for PyObject_CallMethod and PyObject_CallFunction

2010-07-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +aronacher stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9369 ___ ___

  1   2   >