REMINDER: OSCON Call for Proposals (deadline 1/12)

2012-01-02 Thread Aahz
DEADLINE Thursday January 12 Ring in the Gnu year with a proposal for OSCON! OSCON (O'Reilly Open Source Convention), the premier Open Source gathering, will be held in Portland, OR July 16-20. We're looking for people to deliver tutorials and shorter presentations.

Re: Generating sin/square waves sound

2012-01-02 Thread Peter Billam
On 2012-01-02, Paulo da Silva p_s_d_a_s_i_l_...@netcabo.pt wrote: Em 30-12-2011 11:23, mblume escreveu: Am Fri, 30 Dec 2011 07:17:13 + schrieb Paulo da Silva: Alternatively you might just generate (t,signal) samples, write them to a file and convert them using sox (under Linux, might also

Re: .format vs. %

2012-01-02 Thread Terry Reedy
On 1/1/2012 4:11 PM, Miki Tebeka wrote: s = {0} {1} {2} {3} s.format(1, 2, 3, 4) '1 2 3 4' Or even In [4]: fmt = '{0} {1} {2} {3}'.format In [5]: print(fmt(1, 2, 3, 4)) 1 2 3 4 I have done this, except for using a more informative name, like 'emsg' for error message.

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
Hi guys, I am the author of girlfriend module, a serious Python programmer. This project is nothing about sexist or racism, it is just a joke, a famous joke in China, please be cool down. And now, I have removed money, car, house packages from PyPi, and remove their dependences in girlfriend

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Tim Golden
On 02/01/2012 03:14, David Goldsmith wrote: Here's my script, in case that helps: It certainly does. A few things occur to me. First, you shouldn't need to double-quote the path; the subprocess.call should do that for you as long as you're using the list version of the param -- which you are.

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Kai Diefenbach
Hi, On 2012-01-02 11:03:25 +, Felinx Lee said: I am the author of girlfriend module, a serious Python programmer. This project is nothing about sexist or racism,  it is just a joke, a famous joke in China, please be cool down. Yeah, quite funny. Why not put this on an own web server?

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Chris Withers
On 02/01/2012 11:03, Felinx Lee wrote: The girlfriend module just depends on workhard module now. I will remove girlfriend module forever if you still think it is a spam or illegal. What is the point of these packages? Why do they exist? Chris -- Simplistix - Content Management, Batch

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. -- Felinx Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Peter Otten
Felinx Lee wrote: I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. The thought police has won :( -- http://mail.python.org/mailman/listinfo/python-list

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Felinx Lee
Hi, On 2012-01-02 11:03:25 +, Felinx Lee said: I am the author of girlfriend module, a serious Python programmer. This project is nothing about sexist or racism, it is just a joke, a famous joke in China, please be cool down. Yeah, quite funny. Why not put this on an own web server?

Re: Spamming PyPI with stupid packages

2012-01-02 Thread David Monaghan
On Mon, 2 Jan 2012 02:52:06 -0500, Devin Jeanpierre jeanpierr...@gmail.com wrote: Perhaps I'm just slow, but what is sexist about this package? Do you even know what the package does? The dependencies are car, house, and money (and workhard, of course). The joke being that women only care

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Chris Angelico
On Mon, Jan 2, 2012 at 11:20 PM, Peter Otten __pete...@web.de wrote: Felinx Lee wrote: I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. The thought police has won :( There's nothing wrong with cracking jokes, but sometimes a large central

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 23 Δεκ 2011, 19:14, Νικόλαος Κούρας nikos.kou...@gmail.com wrote: On 23 Äåê, 12:41, becky_lewis bex.le...@gmail.com wrote: Is there any possibility that you can tell us what the script actually is or provide a code listing (use pastebin if it's big)? The script is about retrieving and

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Heiko Wundram
Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: On 23 Δεκ 2011, 19:14, Νικόλαος Κούραςnikos.kou...@gmail.com wrote: I dont know why this line host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes and some other times works ok retrieving the hostnames correctly. Please i

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread Dave Angel
On 01/01/2012 10:14 PM, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Goldenm...@timgolden.me.uk wrote: On 01/01/2012 12:05, David Goldsmith wrote: ie can the Python process creating the directories, Yes. and a subprocess called from it create a simple file? No.

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb Νικόλαος Κούρας: On 23 Δεκ 2011, 19:14, Νικόλαος Κούραςnikos.kou...@gmail.com  wrote: I dont know why this line host = socket.gethostbyaddr( os.environ['REMOTE_ADDR'] )[0] fails sometimes and some

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article 6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος Κούρας: On 23

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Thomas Rachel
Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at http://superhost.gr Please if you can tell me what might be wrong. What is wrong on this site? Mainly the unwanted

Re: Python education survey

2012-01-02 Thread Grant Edwards
On 2012-01-01, Alexander Kapps alex.ka...@web.de wrote: On 01.01.2012 03:36, Grant Edwards wrote: On 2011-12-31, Alexander Kappsalex.ka...@web.de wrote: On 31.12.2011 19:23, Roy Smith wrote: Why do I waste my time reading your pretentious self-important nonsense? http://xkcd.com/386/ ;)

Re: Generating sin/square waves sound

2012-01-02 Thread Dave Angel
On 01/02/2012 02:24 AM, Paulo da Silva wrote: Em 30-12-2011 10:05, Dave Angel escreveu: On 12/30/2011 02:17 AM, Paulo da Silva wrote: Hi, Sorry if this is a FAQ, but I have googled and didn't find any satisfatory answer. Is there a simple way, preferably multiplataform (or linux), of

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Lie Ryan
On 01/02/2012 11:20 PM, Peter Otten wrote: Felinx Lee wrote: I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. The thought police has won :( I think the community has a right to defend themselves against trolls. If it's just bad naming, we can

Re: Generating sin/square waves sound

2012-01-02 Thread Paulo da Silva
Em 30-12-2011 07:17, Paulo da Silva escreveu: Hi, Sorry if this is a FAQ, but I have googled and didn't find any satisfatory answer. Is there a simple way, preferably multiplataform (or linux), of generating sinusoidal/square waves sound in python? Thanks for any answers/suggestions.

Re: InvalidResponseError: headers must be str

2012-01-02 Thread Waldek M.
On Sat, 31 Dec 2011 17:40:15 -0800 (PST), Niklas Rosencrantz wrote: Thanks for the replies here. I will have patience but this bug is blocking my integration efforts. I tried logging the TCP packets with tcpdump and nothing special appeared. Well, it's free software, isn't it? You may either

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:49, Thomas Rachel nutznetz-0c1b6768-bfa9-48d5- a470-7603bd3aa...@spamschutz.glglgl.de wrote: Am 22.12.2011 15:40 schrieb Νικόλαος Κούρας: Hello when i try to visit my webpage i get the error it displays. Iam not posting it since you can see it by visiting my webpage at

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 17:47, Roy Smith r...@panix.com wrote: In article 6b787f23-5813-4831-a349-02883f564...@q7g2000yqn.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 16:00, Heiko Wundram modeln...@modelnine.org wrote: Am 02.01.2012 14:25, schrieb ÉΪÉ«É»όλαος

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes. Background music on web sites is evil.

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-02 Thread K Richard Pixley
On 1/1/12 19:04 , K Richard Pixley wrote: On 1/1/12 16:49 , K Richard Pixley wrote: I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built with old versions of macosx and are not capable of building any third party packages that

Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but then it lacks some libraries, notably, readline. Attempting to build the full Mac packages fails,

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Ben Finney
Peter Otten __pete...@web.de writes: Felinx Lee wrote: I have removed those packages (girlfriend and others) from PyPI forever, I apologize for that. The thought police has won :( Nonsense. Felinx is free to make sexist jokes, and others are free to howl him down when he does so. PyPI

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes.  

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Νικόλαος Κούρας
On 2 Ιαν, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com,  ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: I'am trying to present myself through my webpage as computer tech. Is the background music so bad?! :-) Yes.  

Re: socket.gethostbyaddr( os.environ['REMOTE_ADDR'] error

2012-01-02 Thread Roy Smith
In article 24123dfe-b2fc-4f4c-8dfe-23bfef19b...@m10g2000vbc.googlegroups.com, ÉΪÉ«É»όλαος Κούρας nikos.kou...@gmail.com wrote: On 2 ÉßÉΩÉΥ, 20:42, Roy Smith r...@panix.com wrote: In article bacea15d-fae0-4b1f-8a8e-a8b06b561...@t30g2000vbx.googlegroups.com, †

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Devin Jeanpierre
Nonsense. Felinx is free to make sexist jokes, and others are free to howl him down when he does so. PyPI has no obligation to be a platform to amplify anyone's prejudice. A module named girlfriend won't amplify anyone's prejudice. It is, at that point, just a joke. The punchline is import

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Benjamin Kaplan
On Mon, Jan 2, 2012 at 2:32 PM, K Richard Pixley r...@noir.com wrote: Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but then it lacks some libraries,

Re: Python3 on MacOsX Lion?

2012-01-02 Thread K Richard Pixley
On 1/2/12 13:03 , Benjamin Kaplan wrote: On Mon, Jan 2, 2012 at 2:32 PM, K Richard Pixleyr...@noir.com wrote: Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Ben Finney
Devin Jeanpierre jeanpierr...@gmail.com writes: Nonsense. Felinx is free to make sexist jokes, and others are free to howl him down when he does so. PyPI has no obligation to be a platform to amplify anyone's prejudice. A module named girlfriend won't amplify anyone's prejudice. It is,

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Robert Kern
On 1/2/12 8:56 PM, Devin Jeanpierre wrote: But, hey, inertia. As long as we're trying to make this dude get rid of the offensive part, might as well get rid of the rest too. Why not make him get rid of everything he's written, too? Because that's something that no one desires, nor is it the

Re: .format vs. %

2012-01-02 Thread Ethan Furman
Andrew Berg wrote: On 12/31/2011 12:19 PM, davidfx wrote: Should we always be using .format() for formatting strings or %? %-style formatting will eventually go away, but probably not for a long time. %-style formatting isn't going away. ~Ethan~ --

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Tamer Higazi
Hi Rich! Why don't you ask the maintainer who built the macport?! Why don't you try to to figure out with WHAT kind of tools they have built the mac port and WHERE to get them either. And ask him also how to set the flags to build the 64bit edition. Then you don't have to be afraid of any

Avoid race condition with Popen.send_signal

2012-01-02 Thread Jérôme
Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has already finished, an error is raised : File /usr/lib/python2.7/subprocess.py, line 1457, in

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread MRAB
On 02/01/2012 23:09, Jérôme wrote: Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has already finished, an error is raised : File

Re: Spamming PyPI with stupid packages

2012-01-02 Thread Devin Jeanpierre
Because that's something that no one desires, nor is it the logical conclusion of anything that anyone has expressed here. Please don't invent strawmen. You're right, sorry. I let myself say something dumb. I'll try not to do it again. -- Devin On Mon, Jan 2, 2012 at 5:43 PM, Robert Kern

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Adam Skutt
On Jan 2, 6:09 pm, Jérôme jer...@jolimont.fr wrote: Hi all. When a subprocess is running, it can be sent a signal with the send_signal method : process = Popen( args) process.send_signal(signal.SIGINT) If the SIGINT is sent while the process has already finished, an error is raised :  

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Devin Jeanpierre
I think that catching the exception is probably the most Pythonic way. It's the only correct way. -- Devin On Mon, Jan 2, 2012 at 6:51 PM, MRAB pyt...@mrabarnett.plus.com wrote: On 02/01/2012 23:09, Jérôme wrote: Hi all. When a subprocess is running, it can be sent a signal with the

Re: Idiot-proof installs for python+pygame+pyopenal+app

2012-01-02 Thread alex23
On Jan 2, 1:58 pm, Tim Chase python.l...@tim.thechases.com wrote: I'm looking at developing some tools that involve pygame+pyopenal and would like to make cross-platform distribution as painless as possible. Hey Tim, I don't have an answer, sorry, just two suggestions: 1. Maybe PyInstaller

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Cameron Simpson
On 02Jan2012 20:31, Devin Jeanpierre jeanpierr...@gmail.com wrote: | I think that catching the exception is probably the most Pythonic way. | | It's the only correct way. Indeed, but be precise - chek that it _is_ error 3, or more portably, errno.ESRCH. POSIX probably mandates that that is a 3,

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Jan 2, 4:00 pm, Ethan Furman et...@stoneleaf.us wrote: %-style formatting isn't going away. You may want to freshen up on the definition of deprecation. If it was NOT going away, why the need to deprecate it? hmm? It would be more beneficial if you DO NOT encourage continued usage of this

Re: .format vs. %

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 12:19 pm, davidfx dgeorge2...@gmail.com wrote: Hello everyone, I just have a quick question about .format and %r %s %d. Should we always be using .format() for formatting strings or %? ALWAYS use the format method over the old and dumpy string interpolation. Why? Well because

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Benjamin Kaplan
On Mon, Jan 2, 2012 at 6:03 PM, Tamer Higazi th9...@googlemail.com wrote: Hi Rich! Why don't you ask the maintainer who built the macport?! Why don't you try to to figure out with WHAT kind of tools they have built the mac port and WHERE to get them either. And ask him also how to set the

Re: Can't write to a directory made w/ os.makedirs

2012-01-02 Thread David Goldsmith
On Jan 2, 6:09 am, Dave Angel d...@davea.name wrote: On 01/01/2012 10:14 PM, David Goldsmith wrote: On Jan 1, 7:05 am, Tim Goldenm...@timgolden.me.uk  wrote: On 01/01/2012 12:05, David Goldsmith wrote:    ie can the Python process creating the directories,    Yes.    and a

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread alex23
On Dec 27 2011, 8:01 pm, Eelco hoogendoorn.ee...@gmail.com wrote: But I consider it a reasonable change for a 'python 4', or whatever the next major version change will be called. You do realise there were 8 years between 2 3? You might be waiting for quite some time. Conversely, you could

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Adam Skutt
On Jan 2, 8:44 pm, Cameron Simpson c...@zip.com.au wrote: On 02Jan2012 20:31, Devin Jeanpierre jeanpierr...@gmail.com wrote: | I think that catching the exception is probably the most Pythonic way. | | It's the only correct way. Indeed, but be precise - chek that it _is_ error 3, or more

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 17:51:48 -0800, Rick Johnson wrote: You may find the format spec to be cryptic at first. Well, most find regexes cryptic also -- but would anyone recommend NOT using regexes just because of crypti-ness? I think not. It's a non-starter. I would. If you have a task that

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: On Jan 2, 4:00 pm, Ethan Furman et...@stoneleaf.us wrote: %-style formatting isn't going away. You may want to freshen up on the definition of deprecation. I'm sure Ethan knows the definition of deprecation. I'm sure he also knows

Re: Avoid race condition with Popen.send_signal

2012-01-02 Thread Cameron Simpson
On 02Jan2012 19:16, Adam Skutt ask...@gmail.com wrote: | On Jan 2, 8:44 pm, Cameron Simpson c...@zip.com.au wrote: | On 02Jan2012 20:31, Devin Jeanpierre jeanpierr...@gmail.com wrote: | | I think that catching the exception is probably the most Pythonic way. | | | | It's the only correct way.

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Ned Deily
In article eDnMq.3172$ik5.2...@newsfe03.iad, K Richard Pixley r...@noir.com wrote: Where would I look to find the current expected status of python3 on MacOsX Lion? The distributed binaries aren't capable of allowing extensions that use gcc. I can build the source naked, but then it

Re: Python education survey

2012-01-02 Thread Rick Johnson
On Dec 31 2011, 11:12 pm, Dominic Binks dbi...@codeaurora.org wrote: I doubt you could validate or invalidate a word.  A word is, there is no validation necessary.  You could potentially try to validate it's use but again that's not in your power. Usage begets validation. By using words in a

Re: readline for mac python? (really, reproducing mac python packages)

2012-01-02 Thread Ned Deily
In article cxnMq.50333$dr1.19...@newsfe08.iad, K Richard Pixley r...@noir.com wrote: On 1/1/12 19:04 , K Richard Pixley wrote: On 1/1/12 16:49 , K Richard Pixley wrote: I'm having trouble finding a reasonable python environment on mac. The supplied binaries, (2.7.2, 3.2.2), are built

Re: Python3 on MacOsX Lion?

2012-01-02 Thread Ned Deily
In article WepMq.67154$u16.54...@newsfe15.iad, K Richard Pixley r...@noir.com wrote: On 1/2/12 13:03 , Benjamin Kaplan wrote: [...] Have you tried building through Macports? No, I haven't. Macports scares me. When I tried them, or fink, in the past, they rapidly polluted my boot disk and

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread Rick Johnson
On Jan 2, 8:38 pm, alex23 wuwe...@gmail.com wrote: Conversely, you could pitch in behind Rick Johnson's Python 4000 fork, I sure it's progressing nicely given how long Rick has been talking it up. It's NOT a fork Alex. It IS in fact the next logical step in Python's future evolution. --

Setting an environment variable.

2012-01-02 Thread Ashton Fagg
Hi list. A bit new to Python so please forgive my potential ignorance. I'm working with an embedded machine, which is using a Python script to oversee the acquisition of some data. The supervisor script, which is run by crontab every 5 minutes, relies on an environment variable to be set.

Re: .format vs. %

2012-01-02 Thread Ian Kelly
On Mon, Jan 2, 2012 at 8:52 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: On Jan 2, 4:00 pm, Ethan Furman et...@stoneleaf.us wrote: %-style formatting isn't going away. You may want to freshen up on the definition of

Re: Python education survey

2012-01-02 Thread Dominic Binks
On 1/2/2012 9:27 PM, Rick Johnson wrote: On Dec 31 2011, 11:12 pm, Dominic Binksdbi...@codeaurora.org wrote: I doubt you could validate or invalidate a word. A word is, there is no ... taken off list -- Dominic Binks: dbi...@codeaurora.org Employee of Qualcomm Innovation Center, Inc.

Re: .format vs. %

2012-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2012 22:58:23 -0700, Ian Kelly wrote: On Mon, Jan 2, 2012 at 8:52 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Mon, 02 Jan 2012 17:59:43 -0800, Rick Johnson wrote: On Jan 2, 4:00 pm, Ethan Furman et...@stoneleaf.us wrote: %-style formatting isn't going

Re: Python education survey

2012-01-02 Thread Evan Driscoll
On 1/3/2012 0:27, Rick Johnson wrote: Yes, i used the word work improperly here. Just another example of the corrupting influence of garage verbiage. Thanks for bring this to my attention! Diction would be a far better word than verbiage there. Evan signature.asc Description: OpenPGP

Re: Pythonification of the asterisk-based collection packing/unpacking syntax

2012-01-02 Thread alex23
On Jan 3, 3:39 pm, Rick Johnson rantingrickjohn...@gmail.com wrote: It's NOT a fork Alex. It IS in fact the next logical step in Python's future evolution. Link to the repo please, or STFU. -- http://mail.python.org/mailman/listinfo/python-list

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2012-01-02 Thread Piotr Dobrogost
Piotr Dobrogost p...@python.dobrogost.net added the comment: @Lehmann You have to have either Visual Studio 2008 or Visual C++ Express 2008 installed. The folder where vcvarsall.bat file is being looked for is read from the registry. It's either

[issue13565] test_multiprocessing.test_notify_all() hangs on AMD64 Snow Leopard 02 03.x

2012-01-02 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alright, it seems to be fixed. We can still reopen if this happens again. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +giampaolo.rodola, josiahcarlson, stutzbach stage: - patch review versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the updated patch. I think I would like other people's opinions about the dual-function approach. -- nosy: +loewis, neologix, rosslagerwall ___ Python tracker rep...@bugs.python.org

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I'm not sure how useful this is as addr will be set later, when connection is established. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: What I would do: - build the namedtuple in Python rather than in C - I don't particularly like CamelCased names for nametuples (I would use size instead of TerminalSize) - on UNIX, the ioctl() stuff can be done in python rather than in C

[issue9975] Incorrect use of flowinfo and scope_id in IPv6 sockaddr tuple

2012-01-02 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0c10061df711 by Charles-François Natali in branch '2.7': Issue #9975: socket: Fix incorrect use of flowinfo and scope_id. Patch by http://hg.python.org/cpython/rev/0c10061df711 New changeset cc346a672091 by

[issue13684] httplib tunnel infinite loop

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13684 ___ ___

[issue13694] asynchronous connect in asyncore.dispatcher does not set addr

2012-01-02 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13694 ___ ___

[issue13690] Add DEBUG flag to documentation of re.compile

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Display debug information about compiled expression. IMO it would be helpful to define “display” more precisely (e.g. “Print debugging information on stdout during pattern compilation”). -- nosy: +eric.araujo

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck r...@runtux.com added the comment: I've been bitten by this too (in python up to 2.7 in roundup the bug-tracker). We're currently using a workaround that re-inserts spaces, see git on roundup.sourceforge.net file mailgw.py method _decode_header_to_utf8 RFC2047 even has a

[issue13402] Document absoluteness of sys.executable

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This discussion seems relevant: http://mail.python.org/pipermail/python-dev/2006-March/062453.html (it talks about the meaning of sys.executable, special cases such as embedded Python and functions that implement it (so we can have a look at

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1467619 ___ ___

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread Ralf Schlatterbeck
Ralf Schlatterbeck r...@runtux.com added the comment: maybe it would be a good start to include the examples at the end of RFC2047 into the regression tests? These examples at least support the case that a '?' may immediately follow an encoded string: encoded form

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Nice patch :-) I think the two function approach works well. Since you have already checked that termsize is not NULL, Py_DECREF can be used instead of Py_CLEAR. Would it not be better to use sys.__stdout__ instead of 1 in the

[issue12394] packaging: generate scripts from callable (dotted paths)

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’ll get back to this issue later, but now I just wanted to add a link about building the binary exe files: http://mail.python.org/pipermail/python-dev/2006-April/063846.html (it comes from the time where setuptools was supposed to be added to

[issue13511] Specifying multiple lib and include directories on linux

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Whether or not includedir and libdir are supposed to allow multiple packages is beyond me at this point so I'll change the topic to more reflect the problem I am having. More importantly (and possibly related to includedir and libdir) is

[issue6983] Add specific get_platform() for freebsd

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the reply. distutils2 won’t support eggs, and I don’t think setuptools or distribute will be reworked to work on distutils2, so if your problem is only with eggs there is nothing that we can do to solve it in distutils2. (As I

[issue13561] os.listdir documentation should mention surrogateescape

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good, apart from a missing “the”, but I think it should be expanded: Right now it tells that surrogateescape is used, but IMO it would be more useful if it also mentioned practical implications, i.e. what Michael “The Beard” Foord

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Antoine, would you mind taking this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9993 ___

[issue13663] pootle.python.org is outdated.

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13663 ___ ___

[issue13665] TypeError: string or integer address expected instead of str instance

2012-01-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13665 ___

[issue13693] email.Header.Header incorrect/non-smart on international charset address fields

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Actually, no, the local part cannot be in anything other than ascii (see RFC 5335, which desires to address this problem among others). Also, an encoded word cannot occur inside quotation marks. If you correct those two bugs, you can

[issue10839] email module should not allow some header field repetitions

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Regardless of what anybody thinks about the design, it is what it is and can't be changed for backward compatibility reasons. The best we can do is reject creating duplicate headers for headers that may only appear once. That feature

[issue1467619] Header.decode_header eats up spaces

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Antoine, I marked this for Python 3.3 only because there is no good way to fix it in 2.7/3.2. (If someone comes up with a way I'll be happy to review it, though!) -- versions: -Python 2.7, Python 3.2

[issue1079] decode_header does not follow RFC 2047

2012-01-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The RFC isn't at all vague about encoded words not separated by white space. That isn't allowed by the BNF. As you say, though, they occur in the wild and should be parsed correctly. In your other point I think you mean immediately

[issue9993] shutil.move fails on symlink source

2012-01-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ow, I'm sorry for overlooking this. I thought you would take it. Unfortunately the patch is now broken because of 5b61334bb776. (technically it applies, but the tests don't run anymore because the other filesystem now uses a mocking approach) By

[issue13696] [urllib.request.HTTPRedirectHandler.http_error_302] Relative Redirect issue

2012-01-02 Thread CRicky
New submission from CRicky cricky@gmx.fr: I had an HTTP redirection that worked perfectly on version 3.1. On version 3.2, I get a HTTP error 302. In this redirection, I actually have 2 redirections. The last one does not work because it is a relative redirection, so urlparts.scheme is

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Thanks for the reviews! - build the namedtuple in Python rather than in C I started this way, but if two functions are used, it is nicer to have them both return the same type. If it was defined in the Python part, there would be loop in the

[issue13609] Add os.get_terminal_size() function

2012-01-02 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I'll try investigate Solaris a bit... Also, what should be the default terminal size? Gnome-terminal and xterm seem to default to 80x24, not 80x25. -- ___ Python tracker

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2012-01-02 Thread Bill Janssen
Bill Janssen bill.jans...@gmail.com added the comment: Actually, when using setup.py with MinGW, you just need to say the right thing: % python setup.py build --compiler=mingw32 install That removes the check for vcvarsall.bat. Bill On Mon, Jan 2, 2012 at 6:19 AM, Piotr Dobrogost

[issue13697] python RLock implementation unsafe with signals

2012-01-02 Thread Robert Collins
New submission from Robert Collins robe...@robertcollins.net: This affects the python implementation of RLock only. If a signal occurs during RLock.acquire() or release() and then operates on the same lock to acquire() or release() it, process hangs or assertions can be triggered. The

[issue13698] Should not use mboxo format

2012-01-02 Thread endolith
New submission from endolith endol...@gmail.com: The documentation states: Several variations of the mbox format exist to address perceived shortcomings in the original. In the interest of compatibility, mbox implements the original format, which is sometimes referred to as mboxo.

[issue13698] Mailbox module should not use mboxo format

2012-01-02 Thread endolith
Changes by endolith endol...@gmail.com: -- title: Should not use mboxo format - Mailbox module should not use mboxo format ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13698 ___

  1   2   >