[issue12182] pydoc.py integer division problem

2011-05-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12182 ___ ___

[issue12174] Multiprocessing logging levels unclear

2011-05-26 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- nosy: +jnoller, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12174 ___ ___

[issue12164] str.translate docstring doesn't mention that 'table' can be None

2011-05-26 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- keywords: +patch nosy: +petri.lehtinen Added file: http://bugs.python.org/file22122/str_translate_docstring.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12164

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

2011-05-26 Thread Justin Warkentin
Justin Warkentin justin.warken...@gmail.com 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

[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 pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12157 ___ ___ Python-bugs-list

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

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

2011-05-26 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com added the comment: Why is this still marked as test needed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11969 ___

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

2011-05-26 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue11969

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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,

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 victor.stin...@haypocalc.com 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()

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

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

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 pe...@digip.org 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__

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

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

[issue12182] pydoc.py integer division problem

2011-05-26 Thread Roundup Robot
Roundup Robot devnull@devnull 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: -

[issue12182] pydoc.py integer division problem

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch applied, thanks for your patch! -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12182 ___

[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 wal...@livinglogic.de added the comment: +1 on the documentation changes. -- nosy: +doerwalter ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12171 ___

[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 e...@trueblade.com: 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.

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

2011-05-26 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv 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__,

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

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 rep...@bugs.python.org

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

2011-05-26 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org 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 rep...@bugs.python.org

[issue12186] readline.replace_history_item still leaks memory

2011-05-26 Thread stefanholek
New submission from stefanholek ste...@epy.co.at: 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

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

2011-05-26 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv 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 neolo...@free.fr 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).

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

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk 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 rep...@bugs.python.org

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

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk 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:

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

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk 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

[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 neolo...@free.fr 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

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

2011-05-26 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: 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

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

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2011-05-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue11798] Test cases not garbage collected after run

2011-05-26 Thread Fabio Zadrozny
Fabio Zadrozny fab...@users.sourceforge.net added the comment: So Michal, it seems no objections were raised? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798 ___

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org 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

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org 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

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

2011-05-26 Thread Oleg Oshmyan
Oleg Oshmyan chor...@inbox.lv 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

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

2011-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, May 26, 2011 at 9:44 AM, R. David Murray rep...@bugs.python.org wrote: .. Documentation is in the Doc subdirectory of a checkout, and is in the form of *.rst files.  Modify the appropriate .rst file, More

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

2011-05-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: tarek - eric.araujo keywords: +easy stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12169 ___

[issue12154] PyDoc Partial Functions

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

[issue11798] Test cases not garbage collected after run

2011-05-26 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Sure, let's do it. Fabio, care to provide patch with tests and doc changes? (For 3.3.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11798

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

2011-05-26 Thread Roundup Robot
Roundup Robot devnull@devnull 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 neolo...@free.fr 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 */

[issue9435] test_distutils fails without zlib

2011-05-26 Thread Roundup Robot
Roundup Robot devnull@devnull 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 mer...@netwok.org 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 rep...@bugs.python.org

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

2011-05-26 Thread Roundup Robot
Roundup Robot devnull@devnull 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: -

[issue12178] csv writer doesn't escape escapechar

2011-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 mer...@netwok.org: -- nosy: +eric.araujo, haypo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9654 ___

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

2011-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 m...@egenix.com added the comment: Éric Araujo wrote: Éric Araujo mer...@netwok.org 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

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

2011-05-26 Thread Ashley Anderson
Ashley Anderson agande...@gmail.com 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

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

2011-05-26 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Thu, May 26, 2011 at 12:07 PM, Ashley Anderson rep...@bugs.python.org wrote: I think this should be fixed by implementing the %G directive (ISO year, which is present in strftime) as well. Correct. --

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

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Le jeudi 26 mai 2011 à 14:54 +, Charles-François Natali a écrit : Charles-François Natali neolo...@free.fr added the comment: OpenBSD's struct kevent definition looks fishy:

[issue10766] optparse uses %s in gettext calls

2011-05-26 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- status: open - versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10766 ___

[issue11664] Add patch method to unittest.TestCase

2011-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: There’s also test.support.swap_attr... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___

[issue8777] Add threading.Barrier

2011-05-26 Thread Daniel Stutzbach
Changes by Daniel Stutzbach stutzb...@google.com: -- stage: - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8777 ___ ___

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10645] Remove egg-info files in stdlib

2011-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue11342] ResourceWarning: unclosed file _io.TextIOWrapper

2011-05-26 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

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

2011-05-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Changes by Jordan Stadler jordan.stad...@gmail.com: Added file: http://bugs.python.org/file22127/issue12042_31.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Changes by Jordan Stadler jordan.stad...@gmail.com: Added file: http://bugs.python.org/file22128/issue12042_32.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12042 ___

[issue12042] What's New multiprocessing example error

2011-05-26 Thread Jordan Stadler
Jordan Stadler jordan.stad...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue12042

[issue10424] better error message from argparse when positionals missing

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com added the comment: Done. -- Added file: http://bugs.python.org/file22129/issue10424_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10424 ___

[issue3754] cross-compilation support for python build

2011-05-26 Thread wrobell
wrobell wrob...@pld-linux.org 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

[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-05-26 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr 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

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

2011-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com 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

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

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk 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

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

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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++

[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 f...@tuttu.info: 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(),

[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 amaur...@gmail.com 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

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

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com 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

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

2011-05-26 Thread Ashley Anderson
Ashley Anderson agande...@gmail.com 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

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

2011-05-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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)

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
New submission from Mike Solomon ms...@gmail.com: 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

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

2011-05-26 Thread Michele Orrù
Michele Orrù maker...@gmail.com 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 rep...@bugs.python.org

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

2011-05-26 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12188 ___ ___ Python-bugs-list

[issue12190] intern filenames in bytecode

2011-05-26 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12190 ___ ___

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

2011-05-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: R. David Murray wrote: R. David Murray rdmur...@bitdance.com 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,

[issue12190] intern filenames in bytecode

2011-05-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: How exactly does it bring down your disk space? -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12190 ___

[issue3754] cross-compilation support for python build

2011-05-26 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info 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

[issue12190] intern filenames in bytecode

2011-05-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo type: performance - resource usage versions: +Python 3.3 -Python 2.6, Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12190

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

2011-05-26 Thread Erik Cederstrand
Erik Cederstrand e...@1calendar.dk 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 f...@tuttu.info 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

[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 sandro.t...@gmail.com: 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

[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 sandro.t...@gmail.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12191 ___ ___

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

2011-05-26 Thread Brian Curtin
Brian Curtin br...@python.org 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

[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 rdmur...@bitdance.com 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

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

2011-05-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[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 e...@trueblade.com added the comment: As a new feature, it can't be added to 2.7. -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12191 ___

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

2011-05-26 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: 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

[issue12190] intern filenames in bytecode

2011-05-26 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12190 ___ ___ Python-bugs-list mailing list

[issue11995] test_pydoc loads all Python modules

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

[issue11995] test_pydoc loads all Python modules

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

[issue11995] test_pydoc loads all Python modules

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

[issue11995] test_pydoc loads all Python modules

2011-05-26 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11995 ___

[issue12190] intern filenames in bytecode

2011-05-26 Thread Mike Solomon
Mike Solomon ms...@gmail.com 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

[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 neolo...@free.fr 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

[issue12190] intern filenames in bytecode

2011-05-26 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22136/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12190 ___

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

2011-05-26 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12192 ___ ___ Python-bugs-list

  1   2   >