[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-05-26 Thread Justin Warkentin
Justin Warkentin added the comment: Sorry, I haven't had a chance to look at this in a couple days. I've been very busy with work. I'm not sure exactly how to write the test for this, so I don't know that I'd be much help there. One last thing, I was just looking through the commits and I not

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

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

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: I tested the patch on current 2.7 tip. It works and looks good to me. -- nosy: +benjamin.peterson, petri.lehtinen, pitrou, stutzbach ___ Python tracker ___

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-26 Thread Ram Rachum
Ram Rachum added the comment: Why is this still marked as "test needed"? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue11969] Can't launch multiproccessing.Process on methods

2011-05-26 Thread Ezio Melotti
Ezio Melotti added the comment: The test should be a diff against Lib/test/test_multiprocessing.py that adds a unit test. -- nosy: +ezio.melotti ___ Python tracker ___

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen added the comment: Should the .pyc/.pyo file writing be disabled altogether if stat() and/or fstat() is not available. In this case, there's no way to check mtimes, right? -- nosy: +brett.cannon, ncoghlan, petri.lehtinen versions: +Python 3.1, Python 3.2, Python 3.3 ___

[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: IMO it should be explained in a comment why getattr is used instead of just self._child_created. Otherwise the patch looks good and useful. -- nosy: +petri.lehtinen ___ Python tracker

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

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: We can use a class attribute to set the attribute before calling __init__: diff --git a/Lib/subprocess.py b/Lib/subprocess.py --- a/Lib/subprocess.py +++ b/Lib/subprocess.py @@ -664,6 +664,8 @@ _PLATFORM_DEFAULT_CLOSE_FDS = object() class Popen(object): +

[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: STINNER Victor wrote: > We can use a class attribute to set the attribute before calling __init__: True, this is clever. Will you commit? -- ___ Python tracker __

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

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: > True, this is clever. Will you commit? I'm not sure that it's the pythonic way to solve such problem. Can you work on a patch including a test? -- ___ 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'm not sure that it's the pythonic way to solve such problem. Can you work > on a patch including a test? Yeah, getattr() might be more Pythonic indeed. How can this be tested? According to the initial report, exceptions raised in __del__ seem to be ignor

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: Does your filesystem store the modification time? Why don't you have/want fstat()? Do you have stat() or a similar function? -- ___ Python tracker ___

[issue12182] pydoc.py integer division problem

2011-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7724b53510c4 by Victor Stinner in branch '2.7': Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true) http://hg.python.org/cpython/rev/7724b53510c4 -- nosy: +python-dev resolution: -> fixed stage: -> committed/reject

[issue12182] pydoc.py integer division problem

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: Patch applied, thanks for your patch! -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list m

[issue12171] Reset method of the incremental encoders of CJK codecs calls the decoder reset function

2011-05-26 Thread Walter Dörwald
Walter Dörwald added the comment: +1 on the documentation changes. -- nosy: +doerwalter ___ Python tracker ___ ___ Python-bugs-list m

[issue12185] Decimal documentation lists "first" and "second" arguments, should be "self" and "other"

2011-05-26 Thread Eric V. Smith
New submission from Eric V. Smith : http://docs.python.org/library/decimal.html In 9.4.2, "Decimal objects", some of the methods mention the first and second parameters, when really it should be "self" and the argument, usually named "other" and sometimes something more specific. These include

[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: > We can use a class attribute to set the attribute before calling __init__ Ah, yes, I thought about adding a class attribute as well, but the class currently does not have any and initializes instance attributes to default values in __init__, so I chose getatt

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

2011-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Should I attempt to modify my patch to include a comment and a test? Yes please, you can use support.captured_stderr() tool. -- ___ 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: Oleg Oshmyan wrote: > Should I attempt to modify my patch to include a comment and a test? Absolutely, go ahead if it's not too much trouble. -- ___ Python tracker __

[issue12186] readline.replace_history_item still leaks memory

2011-05-26 Thread stefanholek
New submission from stefanholek : This is a continuation of issue #9450. The 'data' element of a history entry may point to an undo list for the entry. When freeing the entry the associated undo list must be freed as well, and 'free(data)' alone does not cut it. I have not found any other use

[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: Here is a new patch; please take a look. Do I understand correctly that I should now remove the old one? -- Added file: http://bugs.python.org/file22123/_child_created_2.diff ___ 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

[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

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

[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

[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

[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 ;-) -- ___

[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

[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

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

[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

[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

[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

[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 ___ _

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

[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 ___ __

[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

[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

[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

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

[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

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

[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

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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

[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

[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
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 ___ _

[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

[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

[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 */

[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

[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

[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

[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

[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, '\

[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

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

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

[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

[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

[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 Benjamin Peterson
Benjamin Peterson added the comment: How exactly does it bring down your disk space? -- nosy: +benjamin.peterson ___ 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 Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo type: performance -> resource usage versions: +Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker ___ _

[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(). --

[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

[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()

[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

[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

[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

[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

[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

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

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

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

[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 : 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 : -- versions: +Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mail

[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

[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 Charles-François Natali
Changes by Charles-François Natali : Removed file: http://bugs.python.org/file22136/unnamed ___ Python tracker ___ ___ Python-bugs-list mailin

[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

[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

[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

[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

  1   2   >