Wing IDE 4.1.3 released

2012-01-13 Thread Wingware
Hi, Wingware has released version 4.1.3 of Wing IDE, an integrated development environment designed specifically for the Python programming language. Wing IDE is a cross-platform Python IDE that provides a professional code editor with vi, emacs, and other key bindings, auto-completion, call

ANN: pysendfile 0.2.0 released

2012-01-13 Thread Giampaolo Rodolà
Hi folks, I'm pleased to announce the 0.2.0 release of pysendfile: http://code.google.com/p/pysendfile === About === This is a python interface to sendfile(2) system call available on most UNIX systems. sendfile(2) provides a zero-copy way of copying data from one file descriptor to another (a

SQLAlchemy and Camelot Trainings in Germany

2012-01-13 Thread Mike Müller
Get up to Speed with SQLAlchemy and More SQLAlchemy is a great library that combines the power of Python with the well-establish world of relational databases in a powerful manner. If you would like to learn more about SQLAlchemy, you might be interested

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Chris Angelico
On Fri, Jan 13, 2012 at 4:41 PM, alex23 wuwe...@gmail.com wrote: Oh please. Don't tar me with the Windows brush. Wouldn't the Windows brush zip you instead? ChrisA definitely ready for the weekend now -- http://mail.python.org/mailman/listinfo/python-list

Re: Zealotry [was Re: how to install lxml in window xp?] (OT)

2012-01-13 Thread Stefan Behnel
Noah Hall, 13.01.2012 08:29: I'M SO COOL USE MY HARDCORE GENTOO INSTALL THAT TOOK 36 HOURS AND SHAVED 2 SECONDS OFF MY BOOTUP TIME Just an off-topic thing that your comment above reminded me of: has anyone ever noticed that there are even quick install guides for Gentoo Linux? I think that's

Re: Zealotry [was Re: how to install lxml in window xp?] (OT)

2012-01-13 Thread Noah Hall
On Fri, Jan 13, 2012 at 7:54 AM, Stefan Behnel stefan...@behnel.de wrote: Noah Hall, 13.01.2012 08:29: I'M SO COOL USE MY HARDCORE GENTOO INSTALL THAT TOOK 36 HOURS AND SHAVED 2 SECONDS OFF MY BOOTUP TIME Just an off-topic thing that your comment above reminded me of: has anyone ever

Re: Zealotry

2012-01-13 Thread Jean-Michel Pichavant
Ben Finney wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: On Thu, 12 Jan 2012 18:50:13 -0800, alex23 wrote: Tamer Higazi th9...@googlemail.com wrote: So, instead of making yourself continuously headache for an outdated OS I advise [...] Please

Re: Zealotry

2012-01-13 Thread Chris Angelico
On Fri, Jan 13, 2012 at 9:34 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Recommending an OS to solve one python package installation is zealotry. At least, advise to use a virtual machine software to try it out, there are some VM softwares for free working with windows. If I

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Steven D'Aprano
On Thu, 12 Jan 2012 21:41:29 -0800, alex23 wrote: On Jan 13, 3:02 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Why is it that only Linux and Mac users are accused of being zealots? Oh please. Don't tar me with the Windows brush. I'd have used the same term no matter

Re: copy on write

2012-01-13 Thread Eduardo Suarez-Santana
El 13/01/12 11:33, Eduardo Suarez-Santana escribió: I wonder whether this is normal behaviour. Even simpler: $ python Python 2.7.2 (default, Oct 31 2011, 11:54:55) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. r={'a':1}; d={}; d['x']=r; d['y']=r;

copy on write

2012-01-13 Thread Eduardo Suarez-Santana
I wonder whether this is normal behaviour. I would expect equal sign to copy values from right to left. However, it seems there is a copy-on-write mechanism that is not working. Anyone can explain and provide a working example? Thanks, -Eduardo $ python Python 2.7.2 (default, Oct 31 2011,

Re: copy on write

2012-01-13 Thread Jean-Michel Pichavant
Eduardo Suarez-Santana wrote: El 13/01/12 11:33, Eduardo Suarez-Santana escribió: I wonder whether this is normal behaviour. Even simpler: $ python Python 2.7.2 (default, Oct 31 2011, 11:54:55) [GCC 4.5.3] on linux2 Type help, copyright, credits or license for more information. r={'a':1};

Re: Zealotry

2012-01-13 Thread Jean-Michel Pichavant
Chris Angelico wrote: On Fri, Jan 13, 2012 at 9:34 PM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Recommending an OS to solve one python package installation is zealotry. At least, advise to use a virtual machine software to try it out, there are some VM softwares for free working

Re: copy on write

2012-01-13 Thread Steven D'Aprano
On Fri, 13 Jan 2012 11:33:24 +, Eduardo Suarez-Santana wrote: I wonder whether this is normal behaviour. I would expect equal sign to copy values from right to left. Assignment in Python never copies values. However, it seems there is a copy-on-write mechanism that is not working.

Re: copy on write

2012-01-13 Thread Chris Angelico
On Fri, Jan 13, 2012 at 11:10 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: z = [x, y]  # z is a list containing the same sublist twice z[0].append(23) print z [[42, 23], [42, 23]] When you work with floats, ints or strings, you don't notice this because those types are

Re: copy on write

2012-01-13 Thread Steven D'Aprano
On Fri, 13 Jan 2012 23:30:56 +1100, Chris Angelico wrote: It seems there's a distinct difference between a+=b (in-place addition/concatenation) and a=a+b (always rebinding), Actually, both are always rebinding. It just happens that sometimes a+=b rebinds to the same object that it was

Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-13 Thread Devin Jeanpierre
On Thu, Jan 12, 2012 at 3:45 PM, Nathan Rice nathan.alexander.r...@gmail.com wrote: I'm interested in fixing both issues. I believe both issues I've had could be solved by having a robust symbolic object. These objects would basically usable like ordinary objects, however upon any attribute

Re: copy on write

2012-01-13 Thread Devin Jeanpierre
On Fri, Jan 13, 2012 at 7:30 AM, Chris Angelico ros...@gmail.com wrote: It seems there's a distinct difference between a+=b (in-place addition/concatenation) and a=a+b (always rebinding), which is sorely confusing to C programmers. But then, there's a lot about Python that's sorely confusing

Re: ERROR:root:code for hash md5 was not found

2012-01-13 Thread mike
On Jan 13, 5:41 am, alex23 wuwe...@gmail.com wrote: On Jan 13, 1:34 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: What is pysibelius? I can't find it on the web. Does it have anything to do with Sibelius the music composition software? Yes, please provide more

Re: [Python-ideas] Symbolic expressions (or: partials and closures from the inside out)

2012-01-13 Thread Nathan Rice
On Fri, Jan 13, 2012 at 8:45 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Thu, Jan 12, 2012 at 3:45 PM, Nathan Rice nathan.alexander.r...@gmail.com wrote: I'm interested in fixing both issues. I believe both issues I've had could be solved by having a robust symbolic object.  These

Re: Reading and writing to a file creates null characters

2012-01-13 Thread Denhua
On Jan 12, 6:21 pm, MRAB pyt...@mrabarnett.plus.com wrote: On 12/01/2012 22:26, Denhua wrote: Hi, I've got a file which I'd like to read, modify and write. # file contents a b c d My script reads the file contents into a list and rotates the list and writes it back to

Re: copy on write

2012-01-13 Thread Grant Edwards
On 2012-01-13, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Jan 13, 2012 at 7:30 AM, Chris Angelico ros...@gmail.com wrote: It seems there's a distinct difference between a+=b (in-place addition/concatenation) and a=a+b (always rebinding), which is sorely confusing to C programmers.

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread John Gordon
In 4f0fbad0$0$29984$c3e8da3$54964...@news.astraweb.com Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Why is it that only Linux and Mac users are accused of being zealots? Perhaps because Windows, being in a position of market dominance, doesn't *need* zealots. -- John Gordon

Re: open office in another language?

2012-01-13 Thread Wolfgang Keller
I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. OpenOffice (now LibreOffice, btw.) is not implemented in Java, if that's what you mean. It _is_ scriptable in Python,

Re: open office in another language?

2012-01-13 Thread Dotan Cohen
On Wed, Jan 11, 2012 at 00:17, Sean Wolfe ether@gmail.com wrote: hmm I didn't know this, nice to know. Yes, C++ is still enough overhead that I wouldn't want to try extending it ... I bet the code is a whole lot to try and grok. When Apache got the LibreOffice project they heavily

Re: open office in another language?

2012-01-13 Thread Nelle Varoquaux
On 13 January 2012 17:39, Dotan Cohen dotanco...@gmail.com wrote: On Wed, Jan 11, 2012 at 00:17, Sean Wolfe ether@gmail.com wrote: hmm I didn't know this, nice to know. Yes, C++ is still enough overhead that I wouldn't want to try extending it ... I bet the code is a whole lot to try

Re: copy on write

2012-01-13 Thread Devin Jeanpierre
On Fri, Jan 13, 2012 at 10:13 AM, Grant Edwards invalid@invalid.invalid wrote: On 2012-01-13, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Jan 13, 2012 at 7:30 AM, Chris Angelico ros...@gmail.com wrote: It seems there's a distinct difference between a+=b (in-place

Re: open office in another language?

2012-01-13 Thread Dotan Cohen
On Fri, Jan 13, 2012 at 18:46, Nelle Varoquaux Once again, a nitpick. Apache did not get the LibreOffice project, but the Openoffice.org project from Oracle. LibreOffice is a fork of openoffice and a foundation independant from Apache. Work has been done to simplify the code, but I wouldn't

Re: copy on write

2012-01-13 Thread Neil Cerutti
On 2012-01-13, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Jan 13, 2012 at 10:13 AM, Grant Edwards invalid@invalid.invalid wrote: On 2012-01-13, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Fri, Jan 13, 2012 at 7:30 AM, Chris Angelico ros...@gmail.com wrote: It seems there's

Problem filling an html form

2012-01-13 Thread Νικόλαος Κούρας
# get some enviromental values form = cgi.FieldStorage() mail = form.getvalue('mail') or '' comment = form.getvalue('comment') or '' # insert guest comments into database if form was submitted if '@' in mail and comment not in (Ρωτήστε με σχετικά...): try:

Re: ERROR:root:code for hash md5 was not found

2012-01-13 Thread Michael Torrie
On 01/13/2012 07:14 AM, mike wrote: pysibelius is a lib that we use. I am not sure that is the problem since the python program works on SuSE but not on RH server. And AFAIK the only difference ( well that I can see) is the OpenSSL version. According to code it uses openssl: built-in

Re: open office in another language?

2012-01-13 Thread Stefan Behnel
Wolfgang Keller, 13.01.2012 17:22: I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. OpenOffice (now LibreOffice, btw.) is not implemented in Java, if that's what you

Re: python philosophical question - strong vs duck typing

2012-01-13 Thread John Nagle
On 1/9/2012 2:45 AM, Robert Kern wrote: On 1/9/12 5:35 AM, John Nagle wrote: Python has some serious problems that preclude optimization. Basically, the language is designed to be run by a naive (non-optimizing) interpreter, and allows things that are easy for such an implementation but very

Re: copy on write

2012-01-13 Thread Grant Edwards
On 2012-01-13, Neil Cerutti ne...@norwich.edu wrote: If you've ever implemented operator=, operator+, and operator+= in C++ you'll know how and why they are different. That assumes that C++ programmers understand C++. ;) A C++ programmer would be wondering how either can work on immutable

Re: copy on write

2012-01-13 Thread Chris Angelico
On Sat, Jan 14, 2012 at 5:15 AM, Grant Edwards invalid@invalid.invalid wrote: That assumes that C++ programmers understand C++. I understand C++ very well. That's why I use Python or Pike. (With apologies to Larry Wall) ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: copy on write

2012-01-13 Thread Grant Edwards
On 2012-01-13, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 14, 2012 at 5:15 AM, Grant Edwards invalid@invalid.invalid wrote: That assumes that C++ programmers understand C++. I understand C++ very well. That's why I use Python or Pike. (With apologies to Larry Wall) Were one

Re: Problem filling an html form

2012-01-13 Thread MRAB
On 13/01/2012 17:02, Νικόλαος Κούρας wrote: # get some enviromental values form = cgi.FieldStorage() mail = form.getvalue('mail') or '' comment = form.getvalue('comment') or '' # insert guest comments into database if form was submitted if '@' in mail and comment not in (Ρωτήστε

Re: copy on write

2012-01-13 Thread Ethan Furman
Steven D'Aprano wrote: Normally this is harmless, but there is one interesting little glitch you can get: t = ('a', [23]) t[1] += [42] Traceback (most recent call last): File stdin, line 1, in module TypeError: 'tuple' object does not support item assignment t ('a', [23, 42]) There is

NaN, Null, and Sorting

2012-01-13 Thread Ethan Furman
With NaN, it is possible to get a list that will not properly sort: -- NaN = float('nan') -- spam = [1, 2, NaN, 3, NaN, 4, 5, 7, NaN] -- sorted(spam) [1, 2, nan, 3, nan, 4, 5, 7, nan] I'm constructing a Null object with the semantics that if the returned object is Null, it's actual value is

Re: NaN, Null, and Sorting

2012-01-13 Thread Chris Angelico
On Sat, Jan 14, 2012 at 6:04 AM, Ethan Furman et...@stoneleaf.us wrote: So I am strongly leaning towards implementing the comparisons such that Null objects are less than other objects so they will always sort together. This is a perfectly plausible view, and is the one adopted by SQL (I'm

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Tamer Higazi
dear people! I have just opened my MTU client, and figured out that through my comment, i caused a complete NONSENSE discussion at all. 1. I am not a zealot or whatever. I code on Linux and port it on MAC and WINDOWS. I do write solutions for customers across the whole 3 platform, and mostly I

Re: copy on write

2012-01-13 Thread Neil Cerutti
On 2012-01-13, Grant Edwards invalid@invalid.invalid wrote: On 2012-01-13, Chris Angelico ros...@gmail.com wrote: On Sat, Jan 14, 2012 at 5:15 AM, Grant Edwards invalid@invalid.invalid wrote: That assumes that C++ programmers understand C++. I understand C++ very well. That's why I use

Re: Problem filling an html form

2012-01-13 Thread Νικόλαος Κούρας
On 13 Ιαν, 21:35, MRAB pyt...@mrabarnett.plus.com wrote: On 13/01/2012 17:02, Íéêüëáïò Êïýñáò wrote: # get some enviromental values form = cgi.FieldStorage() mail = form.getvalue('mail') or '' comment = form.getvalue('comment') or ''    # insert guest comments into database if form

Re: copy on write

2012-01-13 Thread Evan Driscoll
On 01/13/2012 10:54 AM, Neil Cerutti wrote: If you've ever implemented operator=, operator+, and operator+= in C++ you'll know how and why they are different. At the same time, you'd also know that that implementing them in such a way that 'a += b' does *not* perform the same action as 'a = a

understanding a program project

2012-01-13 Thread Tracubik
Hi all, i hope not to be too much OT with this request. I'ld like to modify/contribute some open source in python, but first i've to read and understand the code. So, is there some guide lines / procedure to follow to help me in this process. I remember at school time there was some schema or

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Noah Hall
On Fri, Jan 13, 2012 at 8:07 PM, Tamer Higazi th9...@googlemail.com wrote: dear people! I have just opened my MTU client, and figured out that through my comment, i caused a complete NONSENSE discussion at all. 1. I am not a zealot or whatever. I code on Linux and port it on MAC and

Re: NaN, Null, and Sorting

2012-01-13 Thread MRAB
On 13/01/2012 19:58, Chris Angelico wrote: On Sat, Jan 14, 2012 at 6:04 AM, Ethan Furmanet...@stoneleaf.us wrote: So I am strongly leaning towards implementing the comparisons such that Null objects are less than other objects so they will always sort together. This is a perfectly

Re: Problem filling an html form

2012-01-13 Thread MRAB
On 13/01/2012 20:16, Νικόλαος Κούρας wrote: On 13 Ιαν, 21:35, MRABpyt...@mrabarnett.plus.com wrote: On 13/01/2012 17:02, Íéêüëáïò Êïýñáò wrote: # get some enviromental values form = cgi.FieldStorage() mail = form.getvalue('mail') or '' comment = form.getvalue('comment') or ''

Re: open office in another language?

2012-01-13 Thread Ben Finney
Dotan Cohen dotanco...@gmail.com writes: On Wed, Jan 11, 2012 at 00:17, Sean Wolfe ether@gmail.com wrote: hmm I didn't know this, nice to know. Yes, C++ is still enough overhead that I wouldn't want to try extending it ... I bet the code is a whole lot to try and grok. When Apache

Re: copy on write

2012-01-13 Thread Neil Cerutti
On 2012-01-13, Evan Driscoll edrisc...@wisc.edu wrote: On 01/13/2012 10:54 AM, Neil Cerutti wrote: If you've ever implemented operator=, operator+, and operator+= in C++ you'll know how and why they are different. At the same time, you'd also know that that implementing them in such a way

Re: Problem filling an html form

2012-01-13 Thread Νικόλαος Κούρας
On 13 Ιαν, 23:13, MRAB pyt...@mrabarnett.plus.com wrote: On 13/01/2012 20:16, Νικόλαος Κούρας wrote: On 13 Ιαν, 21:35, MRABpyt...@mrabarnett.plus.com  wrote:  On 13/01/2012 17:02, Íéêüëáïò Êïýñáò wrote:    # get some enviromental values    form = cgi.FieldStorage()    mail =

Re: copy on write

2012-01-13 Thread 88888 Dihedral
Ethan Furman於 2012年1月14日星期六UTC+8上午2時40分47秒寫道: Steven D'Aprano wrote: Normally this is harmless, but there is one interesting little glitch you can get: t = ('a', [23]) t[1] += [42] Traceback (most recent call last): File stdin, line 1, in module TypeError: 'tuple' object does

Re: copy on write

2012-01-13 Thread Evan Driscoll
On 01/13/2012 03:20 PM, Neil Cerutti wrote: They perform the same action, but their semantics are different. operator+ will always return a new object, thanks to its signature, and operator+= shall never do so. That's the main difference I was getting at. I was talking about the combination of

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Terry Reedy
On 1/13/2012 3:42 PM, Noah Hall wrote: On Fri, Jan 13, 2012 at 8:07 PM, Tamer Higazith9...@googlemail.com wrote: dear people! I have just opened my MTU client, and figured out that through my comment, i caused a complete NONSENSE discussion at all. 1. I am not a zealot or whatever. I code

Re: Zealotry [was Re: how to install lxml in window xp?]

2012-01-13 Thread Steven D'Aprano
On Fri, 13 Jan 2012 15:32:06 +, John Gordon wrote: In 4f0fbad0$0$29984$c3e8da3$54964...@news.astraweb.com Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Why is it that only Linux and Mac users are accused of being zealots? Perhaps because Windows, being in a position of

Re: ERROR:root:code for hash md5 was not found

2012-01-13 Thread Steven D'Aprano
On Fri, 13 Jan 2012 06:14:50 -0800, mike wrote: On Jan 13, 5:41 am, alex23 wuwe...@gmail.com wrote: On Jan 13, 1:34 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: What is pysibelius? I can't find it on the web. Does it have anything to do with Sibelius the music

Hash stability

2012-01-13 Thread Steven D'Aprano
On the Python Dev mailing list, there is a discussion going on about the stability of the hash function for strings. How many people rely on hash(some_string) being stable across Python versions? Does anyone have code that will be broken if the string hashing algorithm changes? -- Steven

Re: NaN, Null, and Sorting

2012-01-13 Thread Steven D'Aprano
On Fri, 13 Jan 2012 11:04:48 -0800, Ethan Furman wrote: With NaN, it is possible to get a list that will not properly sort: -- NaN = float('nan') -- spam = [1, 2, NaN, 3, NaN, 4, 5, 7, NaN] -- sorted(spam) [1, 2, nan, 3, nan, 4, 5, 7, nan] I'm constructing a Null object with the

logging and httphandler

2012-01-13 Thread Jason Friedman
I am logging to my Apache web server, using this Apache format: LogFormat %{%Y-%m-%d %H:%M:%S}t %U %q scriptlog CustomLog /var/log/apache2/script.log scriptlog My code is as follows: #!/usr/bin/env python3 import logging, logging.handlers, sys logger = logging.getLogger('simple_example')

Interpreting Surface Weather Stations reports (FM 12–XIV SYNOP)

2012-01-13 Thread Richard Shea
Does anyone have some code which interprets Surface Weather Stations reports (formally termed 'FM 12–XIV SYNOP' reports) ? I've tried the cheese shop but no joy. I've seen PyMetar (http://schwarzvogel.de/software-pymetar.shtml) but I don't believe it covers this format. I can't believe I'm the

Re: NaN, Null, and Sorting

2012-01-13 Thread jmfauth
On 13 jan, 20:04, Ethan Furman et...@stoneleaf.us wrote: With NaN, it is possible to get a list that will not properly sort: -- NaN = float('nan') -- spam = [1, 2, NaN, 3, NaN, 4, 5, 7, NaN] -- sorted(spam) [1, 2, nan, 3, nan, 4, 5, 7, nan] I'm constructing a Null object with the semantics

[issue10344] codecs.readline doesn't care buffering=0

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Something seems wrong somewhere. First, codecs.open(filename, mode[, encoding[, errors[, buffering]]]) in the doc, should be, to match the code, in the current sytle codecs.open(filename, mode='rb', encoding=None, errors='strict', buffering=1)

[issue10344] codecs.StreamReader.readline doc needs fix

2012-01-13 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: What I described is the behavior of codecs.StreamReader. However, the streamreader associated with a particular encoding(codec) might do differently. My understanding is that StreamReader is an example that a particular codec can use, derive

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread lesha
New submission from lesha pybug.20.le...@xoxy.net: Here is a great description of the issue: http://docs.oracle.com/cd/E19683-01/806-6867/gen-1/index.html This enhancement proposes a way to make Python more resistant to this kind of deadlock. Consider this program: import threading

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread lesha
lesha pybug.20.le...@xoxy.net added the comment: Actually, I think it does not matter which thread owns the lock, it is still invalid to try to acquire a lock that was grabbed by the fork() parent. Why? Because the fork() parent cannot free the child's copy of the lock anyway, and it's

[issue13703] Hash collision security issue

2012-01-13 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: Added some small comments in http://bugs.python.org/review/13703/show. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13703 ___

[issue13778] Python should invalidate all non-owned 'thread.lock' objects when forking

2012-01-13 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Locks in python standard library should be sanitized on fork ___ Python tracker rep...@bugs.python.org

[issue6721] Locks in python standard library should be sanitized on fork

2012-01-13 Thread lesha
lesha pybug.20.le...@xoxy.net added the comment: Just wanted to say that I spent something like 8 hours debugging a subprocess + threading + logging deadlock on a real production system. I suspected one of my locks at first, but I couldn't find any. The post-fork code was very simple, and I

[issue13779] os.walk: bottom-up

2012-01-13 Thread patrick vrijlandt
New submission from patrick vrijlandt patrick.vrijla...@gmail.com: PythonWin 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32. Portions Copyright 1994-2008 Mark Hammond - see 'Help/About PythonWin' for further copyright information. import os os.makedirs(g:/a/b/c)

[issue11682] PEP 380 reference implementation for 3.3

2012-01-13 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Committed for 3.3: http://hg.python.org/cpython/rev/d64ac9ab4cd0 Thanks to Greg for the initial effort on the PEP and reference implementation and to all involved in updating the original patch for 3.3 and getting the tests and documentation

[issue13780] make YieldFrom its own node

2012-01-13 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: As promised in a review a while ago of PEP 380. -- files: yieldfromnode.patch keywords: patch messages: 151172 nosy: benjamin.peterson, ncoghlan priority: normal severity: normal status: open title: make YieldFrom its own node

[issue12409] Moving Documenting Python to Devguide

2012-01-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: We'll probably have to redirect all /documenting in Apache anyway. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12409 ___

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Almar Klein
Almar Klein almar.kl...@gmail.com added the comment: Ok, I went to prepare a minimal example that does not use Cython nor Numpy. And then the problem was gone. Even more so, my fix would cause a problem, because somewhere quotes are placed around the entire command: ...link.exe /DLL

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: OK, thanks. Please add a link to the Numpy or Cython bug report here. -- assignee: tarek - eric.araujo resolution: - invalid stage: patch review - committed/rejected status: open - closed ___ Python

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Almar Klein
Almar Klein almar.kl...@gmail.com added the comment: This issue is posted at http://projects.scipy.org/numpy/ticket/2018 -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13765

[issue13765] Distutils does not put quotes around paths that contain spaces when compiling with MSVC

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13765 ___

[issue11682] PEP 380 reference implementation for 3.3

2012-01-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Kudos! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___ ___ Python-bugs-list mailing

[issue13473] Add tests for files byte-compiled by distutils[2]

2012-01-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nick, would you have a bit of time to read my OP and reply? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13473 ___

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think the script was used by the period regression test crontask that used to send emails to python-checkins. The crontask is offline and the script probably hasn't been used by anyone else, so we could indeed remove it. --

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: One is possibly deprecating path_mtime() so people don't waste time implementing it (we actually never need to remove it thanks to the ABC; otherwise we need to make sure the docs strongly state to only bother with path_stats()). Ok, I saw I

[issue12415] Missing: How to checkout the Doc sources

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Moving Documenting Python to Devguide ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12415 ___

[issue12409] Moving Documenting Python to Devguide

2012-01-13 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: About the devguide patch: a) The part about C roles and directives should probably mention version specifics (:cmacro: for 2.7, :c:macro: for 3.x) — unless you make this bug dependent on updating Sphinx to 1.0 for 2.7 and then all versions use

[issue13447] Add tests for some scripts in Tools/scripts

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Add tests for Tools/scripts/reindent.py - Add tests for some scripts in Tools/scripts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13447

[issue1475523] gettext breaks on plural-forms header

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Add tests for some scripts in Tools/scripts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523 ___

[issue1475523] gettext breaks on plural-forms header

2012-01-13 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: -Add tests for some scripts in Tools/scripts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523 ___

[issue12409] Moving Documenting Python to Devguide

2012-01-13 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Hi Éric, thanks for the review. On Fri, Jan 13, 2012 at 18:13, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added the comment: About the devguide patch: a) The part about C roles and directives should probably

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 87331661042b by Antoine Pitrou in branch 'default': Issue #13645: pyc files now contain the size of the corresponding source http://hg.python.org/cpython/rev/87331661042b --

[issue13645] import machinery vulnerable to timestamp collisions

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Now pushed in. Thanks for the reviews! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13645

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Neal Norwitz
Neal Norwitz nnorw...@gmail.com added the comment: If this script isn't used any more, it should be removed. On Fri, Jan 13, 2012 at 8:31 AM, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: I think the script was used by the period regression

[issue13728] Description of -m and -c cli options wrong?

2012-01-13 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com added the comment: Ah indeed, I could have looked at sys.path doc myself after all.. sorry for the noise. -- resolution: - invalid stage: needs patch - committed/rejected status: open - closed ___ Python tracker

[issue13761] Add flush keyword to print()

2012-01-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3120a988a1a3 by Georg Brandl in branch 'default': Closes #13761: add a flush keyword argument to print(). http://hg.python.org/cpython/rev/3120a988a1a3 -- nosy: +python-dev resolution: - fixed stage: needs

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f36c6f5f9d61 by Antoine Pitrou in branch '3.2': Issue #13764: remove outdated script Misc/build.sh http://hg.python.org/cpython/rev/f36c6f5f9d61 New changeset 609482c6710e by Antoine Pitrou in branch 'default':

[issue13764] Misc/build.sh is outdated... talks about svn

2012-01-13 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Removed then, thank you. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13764

[issue13746] ast.Tuple's have an inconsistent col_offset value

2012-01-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This is because the parentheses don't really belong to the tuple literal. You could just as well write b = 1, 3.14, 'abc', u'XYZ' In other cases, the parentheses may be needed for grouping purposes (e.g. in function calls), but they still are

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Brian Visel
Brian Visel aeon.descrip...@gmail.com added the comment: ..still an issue. -- nosy: +Brian.Visel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2124 ___

[issue13737] bugs.python.org/review's Django settings file DEBUG=True

2012-01-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: While the actual code may be accessible to everyone, the server configuration (paths etc. -- just look at the page; at least the session secret key and passwords are masked by Django) are not, and exposing that can be a security problem as

[issue13753] str.join description contains an incorrect reference to argument

2012-01-13 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You put '*' instead of '#' in the commit message. Also, I don't think you should close more than one issue in one commit. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue13768] Doc/tools/dailybuild.py available only on 2.7 branch

2012-01-13 Thread Georg Brandl
New submission from Georg Brandl ge...@python.org: Why is that a concern? It is not needed for the doc build and intended to be used on python.org only. -- nosy: +georg.brandl resolution: - wont fix status: open - closed ___ Python tracker

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2012-01-13 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1692335 ___ ___

[issue2124] xml.sax and xml.dom fetch DTDs by default

2012-01-13 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: And my position still remains the same: this is not a bug. Applications affected by this need to use the APIs that are in place precisely to deal with this issue. So I propose to close this report as invalid. --

  1   2   >