[issue12194] Fix LDFLAGS on Ubuntu 11.04+

2011-05-26 Thread Nick Coghlan
New submission from Nick Coghlan : A complete build on Ubuntu currently requires fiddling with LDFLAGS before invoking configure (otherwise the build process fails to find the necessary pieces to build some modules): http://www.technobits.net/articles/8919/christian-heimes-how-to-compile-python

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2011-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The ZIP file format is unable to store dates before 1980. With version 3.2, your script even raises an exception. Please file this in a different issue. -- nosy: +amaury.forgeotdarc ___ Python tracker

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: I don't think you should remove the old patch, as it's a part of the discussion. For the new patch, I'd explicitly state what can go wrong, e.g. add "(e.g. invalid parameters passed to __init__)" or something like that. Otherwise, looks good. -- ___

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12190] intern filenames in bytecode

2011-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/5/26 Mike Solomon : > > Mike Solomon added the comment: > > If you have a file with say a hundred functions, and each function contains > the full path of that file on disk, your pyc file will contain about > (100*(path_size+overhead)) bytes. In some ca

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-26 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue12042] What's New multiprocessing example error

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Sometimes only one patch is needed, if it applies cleanly to both python2 and python3. If it doesn't, then two patches are useful, one for python2.7 and one for python3.2. (The last version of 3.1 is about to be released, so I don't think it likely that th

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread Nicholas Marriott
Nicholas Marriott added the comment: To follow up a little - I'm afraid that you should not depend on the internal layout of structures like this. We clearly document the kevent structure in kevent(2), and of course beyond that it is of course dependent on C padding rules. It isn't a bug tha

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread Nicholas Marriott
Nicholas Marriott added the comment: Hi This is not an OpenBSD bug. kqueue is not standardized. There is no reason for the ident member to be uintptr_t over u_int - either is valid, and so far I don't see any reason for us to try and change it. -- nosy: +nicm __

[issue1144504] Add IEEE Float support to wave.py

2011-05-26 Thread bemasc
bemasc added the comment: I am the original author ... just ran into the same exact issue 6 years later, and google turned up this ticket. This bug is still unfixed, and the patch is still correct. The patch does not reject any valid WAV files. Its worst sin is accepting and processing (co

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-26 Thread Nadeem Vawda
Nadeem Vawda added the comment: Committed. Once again, thanks for the patch! -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue1625] bz2.BZ2File doesn't support multiple streams

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8cebbc6473d9 by Nadeem Vawda in branch 'default': Issue #1625: BZ2File and bz2.decompress() now support multi-stream files. http://hg.python.org/cpython/rev/8cebbc6473d9 New changeset 0be55601f948 by Nadeem Vawda in branch 'default': Update bz2 doc

[issue8796] Deprecate codecs.open()

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3555cf6f9c98 by Victor Stinner in branch 'default': Issue #8796: codecs.open() calls the builtin open() function instead of using http://hg.python.org/cpython/rev/3555cf6f9c98 -- nosy: +python-dev ___ Py

[issue1526] DeprecationWarning in zipfile.py while zipping 113000 files

2011-05-26 Thread Greg Steuck
Greg Steuck added the comment: There may be a related issue that I still hit with 2.6.5. % cat /tmp/a.py import zipfile import os z = zipfile.ZipFile('/tmp/a.zip', 'w') open("/tmp/a", "w") os.utime("/tmp/a", (0,0)) z.write("/tmp/a", "a") % python -V Python 2.6.5 % uname -mo x86_64 GNU/Linux %

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Jordan Stadler added the comment: To be honest, I'm getting a bit confused as to what is required. I thought the two most important patches would be 2.7 and 3.2, but we have 2.7, 3.1, 3.2, and 3.3 listed as versions affected. I posted the patch for 2.7 originally on May 14th. I'm not sure

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Davi Post
Davi Post added the comment: Thanks Jordan. How about 2.7? Is that not an open branch? --Davi On Thu, May 26, 2011 at 12:17 PM, Jordan Stadler wrote: > > Jordan Stadler added the comment: > > Alright, patches are up for 3.1 and 3.2. I'm not sure if I can just make > one for the 3.x's so I ma

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +bethard type: crash -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Thorsten Kampe
Changes by Thorsten Kampe : Added file: http://bugs.python.org/file22140/script.mo ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Thorsten Kampe
Changes by Thorsten Kampe : Added file: http://bugs.python.org/file22139/script.de.po ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Thorsten Kampe
Changes by Thorsten Kampe : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12193] Argparse does not work together with gettext and non-ASCII help text

2011-05-26 Thread Thorsten Kampe
New submission from Thorsten Kampe : Error with argparse and UTF-8 non-ASCII help text on Linux (works on Windows and on Linux with optparse): % LANG=de_De ./script.py --help Traceback (most recent call last): File "./script.py", line 26, in args = cmdlineparser.parse_args() File "/usr

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Ashley Anderson
Ashley Anderson added the comment: I disagree, I think %G is necessary in strptime(). Take Monday, December 31, 2001 as an example. The ISO date is 2002 01 1. Now, given only the Gregorian year (2001) for this date, and the ISO week and weekday (01 1), there is an ambiguity with Monday, Janua

[issue12192] Doc that collection mutation methods return item or None

2011-05-26 Thread Chris Rebert
Changes by Chris Rebert : -- nosy: +cvrebert ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12190] intern filenames in bytecode

2011-05-26 Thread Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file22136/unnamed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Charles-François Natali
Charles-François Natali added the comment: I didn't test, but after skimming through the code I think that if an invalid user name/group name is provided, os.chown is passed None, which will fail with ValueError. It would be better to raise an explicit error like "no such user" / "no such gro

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
Mike Solomon added the comment: If you have a file with say a hundred functions, and each function contains the full path of that file on disk, your pyc file will contain about (100*(path_size+overhead)) bytes. In some cases, this is pretty significant. On Thu, May 26, 2011 at 12:47 PM, Benjami

[issue11995] test_pydoc loads all Python modules

2011-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[issue11995] test_pydoc loads all Python modules

2011-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file22135/python-3.3-issue_11995.patch ___ Python tracker ___

[issue11995] test_pydoc loads all Python modules

2011-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : Added file: http://bugs.python.org/file22134/python-3.2-issue_11995.patch ___ Python tracker ___

[issue11995] test_pydoc loads all Python modules

2011-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- keywords: +patch Added file: http://bugs.python.org/file22133/python-2.7-issue_11995.patch ___ Python tracker ___

[issue12190] intern filenames in bytecode

2011-05-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue12192] Doc that collection mutation methods return item or None

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : BACKGROUND One of most common recurring topics on python-list (perhaps monthly) is newbies tripping over a mutation method returning None when they expect the collection. Today's example: "Puzzled by list-appending behavior". An excerpt from the responses:

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Eric V. Smith
Eric V. Smith added the comment: As a new feature, it can't be added to 2.7. -- nosy: +eric.smith ___ Python tracker ___ ___ Python-b

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: I agree that since we get very few requests to add aliases our current tables are probably what we want. So adding the MIME_preferred_name mapping *somewhere* is indeed what I would like to see happen. It doesn't matter to me whether it is in the codecs mo

[issue12189] Python 2.6.6 fails to compile a source whereas pycompile 1.0 and Python 2.7 succeed

2011-05-26 Thread R. David Murray
R. David Murray added the comment: There are a number of issues with compile that have been fixed. See #4628 and #1479099 for example. Since you say it works with 2.7, and Python3 compile handles \r\n, and 2.6 is in security fix only mode, I'm closing this as out of date. If you think ther

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-26 Thread Brian Curtin
Brian Curtin added the comment: Ok, so it's actually 0a1baa619171 that broke it, not sure how I came up with the other revision. In any case, it's too hairy to try and piece everything together across the numerous bug fixes, feature adds, and refactorings in this area in order to get back to

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Sandro Tosi
Changes by Sandro Tosi : -- versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue12191] Shutil - add chown() in order to allow to use user and group name (and not only uid/gid)

2011-05-26 Thread Sandro Tosi
New submission from Sandro Tosi : Hi, following up the discussion on http://mail.python.org/pipermail/python-dev/2011-May/111642.html here'a patch to introduce shutil.chown() along with doc, tests and a change in os doc to link to the new function (I also took the occasion to rewrap os.chown()

[issue12189] Python 2.6.6 fails to compile a source whereas pycompile 1.0 and Python 2.7 succeed

2011-05-26 Thread Feth AREZKI
Feth AREZKI added the comment: Amaury Forgeot d'Arc wrote: >The problem is probably near this code in Lib/doctest.py (in _load_testfile):: Hm, I discovered this without using doctest, and used it only to present the testcase. Are you sure that it relates to Lib/doctest (candid question, I neve

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand added the comment: Oh, I see, you're talking about strftime(). You're correct that you would need %G to print the year to which the ISO week containing the specific date belongs. I see no ambiguity or need for %G in strptime(). --

[issue12190] intern filenames in bytecode

2011-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo type: performance -> resource usage versions: +Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker ___ _

[issue3754] cross-compilation support for python build

2011-05-26 Thread Roumen Petrov
Roumen Petrov added the comment: At least one is really would like to cross-compile. worber, the config site has to look like (sample for linux i?86, i.e. intel 32 bit, as host platform) = ac_cv_little_endian_double=yes ac_cv_broken_sem_getvalue=no ac_cv_compute

[issue12190] intern filenames in bytecode

2011-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: How exactly does it bring down your disk space? -- nosy: +benjamin.peterson ___ Python tracker ___ _

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: R. David Murray wrote: > > R. David Murray added the comment: > > Well, my thought was to avoid having multiple charset alias lists in the > stdlib, and reusing the one in codecs, which is larger than the one in email, > seemed to make sense. This came

[issue12190] intern filenames in bytecode

2011-05-26 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-26 Thread Eric V. Smith
Changes by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Michele Orrù
Michele Orrù added the comment: In that case, I could still take care of it; it would be really easy to do. So, it's up to you to tell me what is the best design choice. (: -- ___ Python tracker __

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
New submission from Mike Solomon : I work on a large app and we noticed that a surprising portion of our heap was filenames embedded the the bytecode. This one-line patch to intern filenames reduces our on-disk size about ~15% and brings down our heap and in-memory object count by a similar pe

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Well, my thought was to avoid having multiple charset alias lists in the stdlib, and reusing the one in codecs, which is larger than the one in email, seemed to make sense. This came up because a bug was reported where email (silently) failed to encode a st

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Ashley Anderson
Ashley Anderson added the comment: The example that triggered the issue in testing was January 1, 1905. The ISO date for this day is 1904 52 7. This is reported correctly if you use datetime.isocalendar() or datetime.strftime('%G'), but you get 1905 if you use datetime.strftime('%Y'). When it

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Michele Orrù
Michele Orrù added the comment: +1 What do you think? Ezio, David? -- title: The email package should defer to the codecs module for all aliases -> The email package should defer to the codecs module for all aliases ___ Python tracker

[issue12189] Python 2.6.6 fails to compile a source whereas pycompile 1.0 succeeds

2011-05-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: The problem is probably near this code in Lib/doctest.py (in _load_testfile):: # get_data() opens files as 'rb', so one must do the equivalent # conversion as universal newlines would do. return file_contents.replace(os.linesep, '\

[issue12189] Python 2.6.6 fails to compile a source whereas pycompile 1.0 succeeds

2011-05-26 Thread Feth AREZKI
New submission from Feth AREZKI : At least on Linux debian sid, it seems that Python 2.6.6 compile builtin does not like the empty line with only '\r\n' in it. The following doctest story runs with the attached CRLF'ed file: """ >>> fd = open('test_win32.py', 'r') >>> compile(fd.read(), 'test_w

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy : In response to a discussion of a patch removing 'useless' post-increments, (which issue has apparently come up before) Guido posted "> Sorry to butt in here, but I agree with Eric that it was better > before. There is a common idiom, *pointer++ =, and > whene

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand added the comment: Ashley, can you elaborate on wherein the ambiguity lies? Which combination of year, ISO week number and ISO weekday would lead to ambiguity? Regarding documentation, the %G, %V and %u directives are listed in IEEE Std 1003.1, 2004 Edition for strftime(): h

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: R. David Murray wrote: > > R. David Murray added the comment: > > What is not-a-charset? > > I apparently misunderstood what normalize_encodings does. It isn't doing a > lookup in the codecs registry and returning the canonical name for the codec. > D

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread Charles-François Natali
Charles-François Natali added the comment: > ident and data are not pointers, That's not the point. struct kevent declaration should be the following: struct kevent { uintptr_t ident;/* identifier for this event */ short filter; /* filter for event */

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell added the comment: looking into configure.in the above fails due to following check AC_MSG_CHECKING(for %lld and %llu printf() format support) the check compiles and tries to _run_ a bit of software to determine lld/llu support. that of course fails (we are cross compiling). this i

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread Michele Orrù
Michele Orrù added the comment: Done. -- Added file: http://bugs.python.org/file22129/issue10424_2.patch ___ Python tracker ___ ___ P

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Jordan Stadler added the comment: Alright, patches are up for 3.1 and 3.2. I'm not sure if I can just make one for the 3.x's so I made both. -- ___ Python tracker ___ _

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Changes by Jordan Stadler : Added file: http://bugs.python.org/file22128/issue12042_32.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Changes by Jordan Stadler : Added file: http://bugs.python.org/file22127/issue12042_31.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue8898] The email package should defer to the codecs module for all aliases

2011-05-26 Thread R. David Murray
R. David Murray added the comment: What is not-a-charset? I apparently misunderstood what normalize_encodings does. It isn't doing a lookup in the codecs registry and returning the canonical name for the codec. Does that mean we actually have to fetch the codec in order to get the canonica

[issue11342] ResourceWarning: unclosed file <_io.TextIOWrapper

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: Closing after no reply. If someone can reproduce the bug, please say so and reopen. -- stage: -> committed/rejected status: pending -> closed ___ Python tracker __

[issue10645] Remove egg-info files in stdlib

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: The egg-info file for Python itself can go, but what about wsgiref.egg-info? It was included in 2.5 too to preserve compatibility with code using pkg_resources.require instead of regular import. I’d like to remove it too: it’s not needed anymore with the new s

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread R. David Murray
R. David Murray added the comment: I would remove the docstring from the new test class...if more tests of message content are added that docstring won't be accurate. It really isn't needed. (Also, shouldn't the test method be named test_missingarguments?) I would also like to see a test wh

[issue8777] Add threading.Barrier

2011-05-26 Thread Daniel Stutzbach
Changes by Daniel Stutzbach : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11664] Add patch method to unittest.TestCase

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: There’s also test.support.swap_attr... -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue10766] optparse uses %s in gettext calls

2011-05-26 Thread Éric Araujo
Changes by Éric Araujo : -- status: open -> versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 26 mai 2011 à 14:54 +, Charles-François Natali a écrit : > Charles-François Natali added the comment: > > OpenBSD's struct kevent definition looks fishy: > http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/event.h?rev=1.15;content-type=text%2Fplai

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: > I propose to merge both files, this would ease maintenance > and understanding of how these paths are determined. You mean to have only one function? I would prefer to keep two functions, but one should call the another one :) (you should factorize the code)

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, May 26, 2011 at 12:07 PM, Ashley Anderson wrote: > I think this should be fixed by implementing the %G directive (ISO year, > which is present in strftime) as well. Correct. -- ___ Python tracker

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Ashley Anderson
Ashley Anderson added the comment: When trying to add cases for %V and %u in the tests, I ran into an issue of year ambiguity. The problem comes when the ISO year does not match the Gregorian year for a given date. I think this should be fixed by implementing the %G directive (ISO year, which

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Éric Araujo wrote: > > Éric Araujo added the comment: > > Definitely. We can fix real bugs in distutils, but sometimes it’s best to > avoid disruptive changes and let distutils with its buggy behavior and let > the packaging module have the best behavi

[issue9561] distutils: set encoding to utf-8 for input and output files

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: Definitely. We can fix real bugs in distutils, but sometimes it’s best to avoid disruptive changes and let distutils with its buggy behavior and let the packaging module have the best behavior. -- versions: +Python 3.3 _

[issue9654] merge PC/getpathp.c into Modules/getpath.c

2011-05-26 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo, haypo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mai

[issue12178] csv writer doesn't escape escapechar

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. It would be best if you could attach files as plain text instead of archives. -- components: +Extension Modules -None nosy: +eric.araujo, skip.montanaro versions: +Python 3.1, Python 3.2, Python 3.3 -Python 2.6 ___

[issue12161] StringIO AttributeError instead of ValueError after close..

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 720804a91c01 by Benjamin Peterson in branch '2.7': raise an ValueError in getvalue() on closed StringIO (closes #12161) http://hg.python.org/cpython/rev/720804a91c01 -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected s

[issue9435] test_distutils fails without zlib

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: Can’t reproduce in 3.x, fixed in 2.7. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed versions: +Python 2.7 -Python 3.2 ___ Python tracker ___

[issue9435] test_distutils fails without zlib

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5572fd3b768 by Éric Araujo in branch '2.7': Make test_distutils pass without zlib (fixes #9435) http://hg.python.org/cpython/rev/d5572fd3b768 -- nosy: +python-dev ___ Python tracker

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread Charles-François Natali
Charles-François Natali added the comment: OpenBSD's struct kevent definition looks fishy: http://www.openbsd.org/cgi-bin/cvsweb/src/sys/sys/event.h?rev=1.15;content-type=text%2Fplain struct kevent { u_int ident; /* identifier for this event */ short

[issue11591] "python -S" should be robust against e.g. "from site import addsitedir"

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ee5443773cb by Éric Araujo in branch 'default': Also add versionchanged directive to the function doc (#11591) http://hg.python.org/cpython/rev/6ee5443773cb -- ___ Python tracker

[issue11798] Test cases not garbage collected after run

2011-05-26 Thread Michael Foord
Michael Foord added the comment: Sure, let's do it. Fabio, care to provide patch with tests and doc changes? (For 3.3.) -- ___ Python tracker ___ __

[issue12154] PyDoc Partial Functions

2011-05-26 Thread Éric Araujo
Éric Araujo added the comment: This section should help: http://docs.python.org/dev/library/inspect#classes-and-functions -- ___ Python tracker ___

[issue12169] Factor out common code for d2 commands register, upload and upload_docs

2011-05-26 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: tarek -> eric.araujo keywords: +easy stage: patch review -> needs patch ___ Python tracker ___ _

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, May 26, 2011 at 9:44 AM, R. David Murray wrote: .. > Documentation is in the Doc subdirectory of a checkout, and is in the form of > *.rst files.  Modify the appropriate .rst file, More specifically, strftime/strptime directives are listed in a

[issue12085] subprocess.Popen.__del__ raises AttributeError if __init__ was called with an invalid argument list

2011-05-26 Thread Oleg Oshmyan
Oleg Oshmyan added the comment: Looking at my own patch, I've noticed that the comment I added to Popen.__del__ doesn't sound quite right to me in terms of language and doesn't end in a full stop while all other comments in the same method do. Am I being too picky? I can't really think of a w

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell added the comment: next question. when starting compilation i am getting In file included from Include/Python.h:50, from ./Modules/python.c:3: Include/pyport.h:257:13: error: #error "This platform's pyconfig.h needs to define PY_FORMAT_LONG_LONG" make: *** [Modules/pyt

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell added the comment: as well, by default one experiences checking for /dev/ptmx... not set configure: error: set ac_cv_file__dev_ptmx to yes/no in your CONFIG_SITE file when cross compiling the workaround: 1. create config.site file with the following lines ac_cv_file__dev_ptmx=

[issue11798] Test cases not garbage collected after run

2011-05-26 Thread Fabio Zadrozny
Fabio Zadrozny added the comment: So Michal, it seems no objections were raised? -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread R. David Murray
R. David Murray added the comment: Since this is a new feature it can only go into 3.3. Documentation is in the Doc subdirectory of a checkout, and is in the form of *.rst files. Modify the appropriate .rst file, and the doc update will be included in the patch you generate. If you wish to

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: On Linux, the clone() syscall allows the change the signal send by the child to the parent when it terminates. It's also possible to choose to not send a signal when at child exit... But I don't think that subprocess uses such options ;-) -- ___

[issue12187] subprocess.wait() with a timeout uses polling on POSIX

2011-05-26 Thread STINNER Victor
New submission from STINNER Victor : Polling should be avoided when it's possible. For subprocess.wait(), we can do something with signals (SIGCHLD and/or SIGCLD). sigtimedwait() can be used to wait a the "a child process terminated" with a timeout, but not wait a specific process (so we may u

[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

2011-05-26 Thread Charles-François Natali
Charles-François Natali added the comment: Some precisions: 1) Of course, if a handler changes its process group through setsid/setpgrp, it won't be waited on. 2) If a handler running on behalf of a process which is the current process group leader calls setsid, it will get an EPERM error. I d

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand added the comment: Documentation (I have no idea how to create a patch for this): %V ISO week number of the year (Monday as the first day of the week) as a decimal number (01-53). The week containing January 4 is week 1; the previous week is the last week of the previous year.

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand added the comment: Patch by aganders3 doesn't compile. Added comments in review of his patch. Adding a patch against python2.7 with my changes, which pass all unit tests posted previously. -- Added file: http://bugs.python.org/file22126/_strptime.py.patch ___

[issue12006] strptime should implement %V or %u directive from libc

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand added the comment: Uploaded patch adding unit tests for %V and %u. Patch is against python2.7 -- Added file: http://bugs.python.org/file22125/test_strptime.py.patch ___ Python tracker

[issue12184] socketserver.ForkingMixin collect_children routine needs to collect only it's children

2011-05-26 Thread Charles-François Natali
Charles-François Natali added the comment: In the common case, I don't think that the os.waitpid(0, 0) is the hot spot, but rather this: for child in self.active_children: os.waitpid(child, os.WNOHANG) It's called every time, and it's O(number of active children). os.waitpid(0, 0) is onl

  1   2   >