[issue13466] new timezones

2011-11-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: A fairly correct way is to query the time zone database at time module import time by using the DST and GMT offset of that time. But that does

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread flying sheep
flying sheep flying-sh...@web.de added the comment: this is annoying: i’m creating a reindentation script that reindents any valid python script. the user can specify if, and how many spaces he/she wants to use per indentation level. `0` or leaving the option out means “one tab per level”.

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: Does the patch I attached fix your issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

[issue13465] A Jython section in the dev guide would be great

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hosting docs.python.org/devguide/jython doesn't seem like an unreasonable idea at all to me, and what's the benefit to CPython in making the Jython team go to the effort of building out independent deployment and source control infrastructure

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Just a thought: Would this change be worthy for the What's new in 3.3 list? I think so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170

[issue13466] new timezones

2011-11-24 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But that does not give the *other* timezone :-( Which other timezone ? I meant the other timezone *name*. I think we don't understand each other: - time.timezone is the offset of the local (non-DST) timezone. - time.altzone is the

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread flying sheep
flying sheep flying-sh...@web.de added the comment: i don’t know, since i get python from the ubuntu repositories, sorry. in which python release will this patch first be integrated? -- ___ Python tracker rep...@bugs.python.org

[issue13466] new timezones

2011-11-24 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com added the comment: But that does not give the *other* timezone :-( Which other timezone ? I meant the other timezone *name*. I think we don't understand each

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: It would definitely help if you could apply the patch for Python 2.7 manually on your local installation (after making a backup of course). You can just download the patch for Python 2.7 then (only the first part of the patch can be applied,

[issue13415] del os.environ[key] ignores errors

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Using broken_unsetenv.diff + autoconf, Python compiles correctly on Mac OS X Tiger. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13415

[issue13470] A user may need ... when she has ...

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: they is right and she is actually right too. See http://en.wikipedia.org/wiki/Singular_they -- nosy: +pitrou resolution: - works for me status: open - pending ___ Python tracker

[issue13469] TimedRotatingFileHandler fails to handle intervals of several weeks correctly

2011-11-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +vinay.sajip type: - behavior versions: +Python 2.7, Python 3.2, Python 3.3 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13469

[issue6407] multiprocessing Pool should allow custom task queue

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As the name implies, _setup_queues is a private method. It feels a bit weird to recommend overriding it in a subclass. -- nosy: +pitrou stage: test needed - needs patch versions: +Python 3.3 -Python 3.2

[issue13415] del os.environ[key] ignores errors

2011-11-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 1b83fd683e28 by Victor Stinner in branch 'default': Close #13415: Test in configure if unsetenv() has a return value or not. http://hg.python.org/cpython/rev/1b83fd683e28 -- resolution: - fixed stage: patch

[issue6407] multiprocessing Pool should allow custom task queue

2011-11-24 Thread Ask Solem
Ask Solem a...@celeryproject.org added the comment: @swindmill, if you provide a doc/test patch then this can probably be merged. @pitrou, We could change it to `setup_queues`, though I don't think even changing the name of private methods is a good idea. It could simply be an alias to

[issue10359] ISO C cleanup

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do the changes to Python/Python-ast.c and Modules/_ctypes/libffi/src/x86/ffi.c still apply? (libffi is an external project, but our copy is already edited so we might as well do one more change). --

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread Thorsten Simons
New submission from Thorsten Simons t...@snomis.de: Using Python '3.2.2 (default, Sep 4 2011, 09:07:29) [MSC v.1500 64 bit (AMD64)]' on Windows 7 Professional SP1: If you set an access time for a file beyond Jan. 2038 on a file stored in a local NTFS filesystem, all's well:

[issue13472] Quick Start in devguide doesn’t mention build dependencies

2011-11-24 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: The Quick Start section in the devguide does not tell people what they need to install in order to compile Python. A short mention or a link to a section with all info should be added. I can contribute info for Debian and derivative systems:

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Mucking with your installed Python is probably a bad idea, and it may also be an old version (compared to the current development version which has seen hundreds of changes) where testing the patch would not give useful results. Please see the

[issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64 bits). A function to convert directly a PyObject to FILE_TIME should be written. -- nosy: +haypo ___ Python

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW Antoine, will you update the doc to mention __qualname__ or would you like help? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Doc patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___ ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: And of course, right after I post this I look at my terminal and see the “Add docs” commit. Ignore me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148253 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- Removed message: http://bugs.python.org/msg148252 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue12934] pysetup doesn’t work for the docutils project

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This is a problem on my side, not in distutils2. My pysetupX.Y scripts are just shell one-liners of this form: PYTHONPATH=~/path/to/d2 pythonX.Y -m distutils2.run $@ Because of sys.path initialization, d2 tried to import docutils from the

[issue13472] Quick Start in devguide doesn’t mention build dependencies

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, it's a quick start. The link to build Python actually tells you about dependencies. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13472

[issue13461] Error on test_issue_1395_5 with Python 2.7 and VS2010

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What if you replace: PyObject *decoded = PyObject_CallMethod( self-decoder, decode, s#, input, 1); with: PyObject *decoded = PyObject_CallMethod( self-decoder, decode, s#, input, (Py_ssize_t) 1); -- nosy:

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

2011-11-24 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: I recently changed packaging.util.byte_compile, the function used by the build_py and install_lib commands, so that it can create .pyc and/or .pyo files independently of the calling’s Python -O or -B flags (dad02a080bbc), but I think I

[issue13470] A user may need ... when she has ...

2011-11-24 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: This explanation is enough. Thanks. -- resolution: works for me - invalid stage: needs patch - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org

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

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (For the reference, the bug I added is this: http://hg.python.org/cpython/rev/c10946a17420#l6.45 p7g.util.byte_compile calls py_compile.compile with a filename ending in .pyc or .pyo as appropriate, but the optimization level in the

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Issue #13313 has been marked as a duplicate of this issue. Interesting message from flox: Maybe it is related. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=93810 Ambiguous timezone names (AEST vs EST) -- nosy: +flox

[issue13313] test_time fails: tzset() do not change timezone

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Duplicate of #11886. -- nosy: +haypo resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13313

[issue2377] Replace __import__ w/ importlib.__import__

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___ Python-bugs-list

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is there a way to force configure run on the bot? ./configure is run for each build of each buildbot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11886

[issue12759] (?P=) input for Tools/scripts/redemo.py raises unnhandled exception

2011-11-24 Thread Masha Katsman
Masha Katsman mkats...@yahoo.com added the comment: Updating the patch with the test. The test checks that the re exception is thrown in case of the (?P=) and (?P) expressions. It used to raise an Index exception. My only question is, the exception we raise now says, there invalid characters

[issue11886] test_time.test_tzset() fails on x86 FreeBSD 7.2 3.x: AEST timezone called EST

2011-11-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't see this issue as a bug in Python, but just that the timezone database is different on some OSes. Can't we just accept both names, AEST and EST? Attached patch changes test_time to tolerate EST name for

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: You are right, I misinterpreted “use”. I cloned the the PEP 3155 repo and ran my test script (I’ll attach it for reference) and reprs/strs are indeed class '__main__.A.B' and function makestrip.locals.strip at ..., so this request is not

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file23772/test-str-repr.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23468/change-class-__str__.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only __qualname__ for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Removed file: http://bugs.python.org/file23591/change-some-__str__.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224 ___

[issue13224] Change str(x) to return only the (qual)name for some types

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Change str(x) to return only __qualname__ for some types - Change str(x) to return only the (qual)name for some types ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13224

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the fixed links amk. I think they can be fixed in the repo right now. [Eli] I still think it's a bigger problem that the page discusses a module which is not available on Python 3.x - this means that a user following the page

[issue13472] devguide doesn’t list all build dependencies

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Okay. I just hope that people following the quick start and having build issues will follow the link. I followed it and the section only mentions zlib, I think it could be exhaustive. -- title: Quick Start in devguide doesn’t mention

[issue10507] Check well-formedness of reST markup within make patchcheck

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Alternatively, make patchcheck could print “Did you build the docs?”, just as it currently prints “Did you run the test suite?” if C or Python files were modified. Building the docs would not check Misc/NEWS, the original motivation for this

[issue7611] shlex not posix compliant when parsing foo#bar

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The manual just says When operating in POSIX mode, shlex will try to be as close as possible to the POSIX shell parsing rules. but gives no reference to which authority it is following or what the rules are in either case. I think it

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Before doing that, would you have the time to contact its author and inquire about porting plans? I hope to find the time. I was also thinking about an alternative - since the HOWTO probably uses just a handful of functions from that module

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the comments. There are really two cases in one bug. The first part is that the shell will split tokens at characters that shlex doesn't. The handling of , |, ;, , and could be done by adjusting the definition of

[issue13455] Reorganize tracker docs in the devguide

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: [...] The devguide is *already* too big. [...] The devguide was supposed to be something that you read quickly and easily, not an exhaustive reference of how development works. Or at least there should be a clear separation between the two

[issue13422] Subprocess: children hang due to open pipes

2011-11-24 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The problem I have with the solution that is currently implemented is that subprocess is waiting for the spawned child although the child is not running anymore. In my case this issue occured when invoking samba or the small

[issue13443] wrong links and examples in the functional HOWTO

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Good idea. The functions used are: compose, partial (which we have in functools), flip, foldl. I will disagree with “unhealthy”: I’m sure adding this link was a deliberate exposure of an external module, to put a well-written solution to the

[issue5302] Allow package_data specs/globs to match directories

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I need to fix this for distutils2’s next release (with #13463 and #5302), to include distutils2/tests/fake_dists. -- assignee: tarek - eric.araujo priority: high - release blocker title: Allow package_data globs match directories - Allow

[issue13463] Fix parsing of package_data

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Allow package_data specs/globs to match directories, package_data only allows one glob per-package ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13463

[issue11805] package_data only allows one glob per-package

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I need this to package test files for distutils2’s own next release, so pragmatism/compatibility will win for the short term :) I’ll fix it together with #13463 and #5302. -- priority: normal - release blocker

[issue9510] sqlite3.Warning isnt a subclass of exceptions.Warning

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Reading PEP 0249 I can see Gerhard is correct, this patch would violate the PEP. Me too. I think that the PEP is slightly flawed in that users are encouraged to raise exceptions called Warning. IMHO a Warning is never an exceptional

[issue8473] doctest fails if you have inconsistent lineendings

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The string in the test does not have mixed line endings, and the accompanying comment talks about testing files with CRLF on Unix. Terry, do you want to (update and) commit this? -- ___ Python

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. The examples in your message need to be converted to a patch that applies to 3.2 or 2.7, so that we can reproduce the bug before fixing it. -- stage: - test needed versions: +Python 2.7, Python 3.3

[issue9458] xml.etree.ElementTree.ElementTree.write(): encoding handling problems

2011-11-24 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9458 ___ ___

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch looks good to me, but I’d like another review. -- nosy: +ncoghlan type: feature request - behavior versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue13469] TimedRotatingFileHandler fails to handle intervals of several weeks correctly

2011-11-24 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: TimedRotatingFileHandler does not, by design, support multiple-week rollovers: the W mode is for a specific day of the week, and is documented as Weekday rather than Weeks (the other modes are documented as Seconds, Minutes, Hours, Days).

[issue12485] textwrap.wrap: new argument for more pleasing output

2011-11-24 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: patch review - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12485 ___ ___

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Looks ok to me as well. I think this is a new feature, so 3.3-only IMHO. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9957

Re: [issue13471] setting access time beyond Jan. 2038 on remote share failes on Win7 x64

2011-11-24 Thread Amaury Forgeot d'Arc
The timestamp is converted to time_t (32 bits) and then to FILE_TIME (64 bits). A function to convert directly a PyObject to FILE_TIME should be written. I thought that time_t was 64 bits on Windows ___ Python-bugs-list mailing list Unsubscribe:

[issue13472] devguide doesn’t list all build dependencies

2011-11-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I agree with Antoine, there's no need to mention them in the quickstart. Moreover these dependencies are optional, so there's no need to install them unless they are specifically needed (on a related note I would also add an optional in

[issue10507] Check well-formedness of reST markup within make patchcheck

2011-11-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10507 ___

[issue13465] A Jython section in the dev guide would be great

2011-11-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'd search the Jython devguide at http://www.jython.org/devguide/, having it at http://docs.python.org/devguide/jython/ doesn't make much sense IMHO (especially if it is a full guide with several pages). --

[issue12170] index() and count() methods of bytes and bytearray should accept byte ints

2011-11-24 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 736b0aec412b by Petri Lehtinen in branch 'default': Add a What's New entry for #12170 http://hg.python.org/cpython/rev/736b0aec412b -- ___ Python tracker

[issue13474] Mention of -m Flag Missing From Doc on Execution Model

2011-11-24 Thread Eric Snow
New submission from Eric Snow ericsnowcurren...@gmail.com: The doc on code execution[1] leaves out mention of the -m flag. Seems like it belongs there too. [1] Doc/reference/executionmodel.rst -- assignee: docs@python components: Documentation messages: 148288 nosy: docs@python,

[issue13474] Mention of -m Flag Missing From Doc on Execution Model

2011-11-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13474 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread sbt
sbt shibt...@gmail.com added the comment: Is it intended that pickle will use __qualname__? -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448 ___

[issue9957] SpooledTemporayFile.truncate should take size parameter

2011-11-24 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- versions: -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9957 ___ ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-11-24 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Added file: http://bugs.python.org/file23773/9512712044a6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-11-24 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Added file: http://bugs.python.org/file23774/0d1d76f68750.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue13448] PEP 3155 implementation

2011-11-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Yes, but that can be a separate patch - step 1 is to make the attribute available, then relevant modules can subsequently be updated to use it as appropriate. -- ___ Python tracker

[issue10131] deepcopying an xml.dom.minidom.Document generates an invalid XML document

2011-11-24 Thread Marian Ganisin
Marian Ganisin marian.gani...@gmail.com added the comment: Code from msg146175 with attached patch applied: import sys print(sys.version_info) sys.version_info(major=2, minor=7, micro=2, releaselevel='final', serial=0) import copy, pickle from xml.dom.minidom import NodeList obj =

[issue7652] Merge C version of decimal into py3k.

2011-11-24 Thread Cédric Krier
Changes by Cédric Krier cedric.kr...@b2ck.com: -- nosy: +ced ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7652 ___ ___ Python-bugs-list mailing

[issue7611] shlex not posix compliant when parsing foo#bar

2011-11-24 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The doc section has no reference, as in a live web link, to any version of the POSIX specification. This is unlike other doc sections that implement various RFCs (which also get updated). The docs also link to specific references for the

[issue11849] glibc allocator doesn't release all free()ed memory

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, this seems to make large allocations slower: - with patch: $ ./python -m timeit b'x'*20 1 loops, best of 3: 27.2 usec per loop - without patch: $ ./python -m timeit b'x'*20 10 loops, best of 3: 7.4 usec per loop

[issue13448] PEP 3155 implementation

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Is it intended that pickle will use __qualname__? That's part of the plan for PEP 3154, yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13448

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-24 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: PEP 395 spends a lot of time discussing ways that the current automatic initialisation of sys.path[0] can go wrong, and even the proposed improvements in that PEP don't claim to fix the default behaviour for every possible scenario (just

[issue10318] make altinstall installs many files with incorrect shebangs

2011-11-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: I created #13475 to discuss the idea of a command line option to override sys.path[0] initialisation. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318

[issue11849] glibc allocator doesn't release all free()ed memory

2011-11-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: More surprising is that, even ignoring the allocation cost, other operations on the memory area seem more expensive: $ ./python -m timeit -s b=bytearray(50) b[:] = b - python 3.3: 1000 loops, best of 3: 367 usec per loop - python 3.2: 1

[issue1521950] shlex.split() does not tokenize like the shell

2011-11-24 Thread Dan Christian
Dan Christian robo...@users.sourceforge.net added the comment: Of course, that's how it's used. That's all it can do right now. I was was splitting and combining commands (using ;, , and ||) and then running the resulting (mega) one liners over ssh. It still gets run by a shell, but I was

[issue13476] Simple exclusion filter for unittest autodiscovery

2011-11-24 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: unittest autodiscovery is very nice, but a '-x' option to specify directory patterns *not* to search could be a nice enhancement. (In my specific case, I want to run most of my tests, but one batch are Django tests and it would be nice to

[issue13476] Simple exclusion filter for unittest autodiscovery

2011-11-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13476 ___ ___

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-24 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13475 ___ ___ Python-bugs-list

[issue13477] tarfile module should have a command line

2011-11-24 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes bran...@rhodesmill.org: The tarfile module should have a simple command line that allows it to be executed with -m — even if its only ability was to take a filename and extract it to the current directory, it could be a lifesaver on Windows machines

[issue13477] tarfile module should have a command line

2011-11-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The feature request seems reasonable to me, but this can only go in 3.3. If you want to propose a patch, you might want to check the devguide and what other modules like zipfile do. -- nosy: +ezio.melotti, lars.gustaebel stage: -

[issue11365] Integrate Buildroot patches (cross-compilation)

2011-11-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11365 ___ ___

[issue4966] Improving Lib Doc Sequence Types Section

2011-11-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4966 ___ ___

[issue10811] sqlite segfault with generators

2011-11-24 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Can this be closed? -- nosy: +ezio.melotti status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10811 ___

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: I have had a look at the issue more closely and my initial patch was not completely right as it didn't work properly with argparse_test.py despite all tests passing. Therefore, I have amended my patch to not check whether action.default was

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Changes by Arnaud Fontaine ar...@debian.org: Added file: http://bugs.python.org/file23775/py2.7-argparse-call-type-function-once-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Changes by Arnaud Fontaine ar...@debian.org: Added file: http://bugs.python.org/file23776/py3k-argparse-call-type-function-once-v3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

[issue12776] argparse: type conversion function should be called only once

2011-11-24 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: BTW, about argparse_test, the default should be either '0' or 0 but not '\t' AFAIK because even the default value is converted using the given type function. It fails even with the last 2.7 version but it works well with my patch...

[issue13475] Add '-p'/'--path0' command line option to override sys.path[0] initialisation

2011-11-24 Thread Eric Snow
Eric Snow ericsnowcurren...@gmail.com added the comment: +1 Both the -p and --nopath0 would be great additions and a good match for PEP 395. So -p . would be equivalent to the current implicit sys.path[0] initialization, right? Would any other effects happen with -p than sys.path[0]

[issue1459867] Message.as_string should use mangle_from_=unixfrom?

2011-11-24 Thread kxroberto
kxroberto kxrobe...@users.sourceforge.net added the comment: I'd still say this is a plain bug, which simply should be fixed. People who have working code must have already a smart work around: either - or! : By doing the 5 low level code lines of .as_string() on their own. (there is no other