[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Michal Sladek
New submission from Michal Sladek mic...@sladkovi.eu: Hello! I think there is a problem when adding UTF-8 subject to email message. I wrote following function (its code is based on examples I found in offical docs) which should send an email with UTF-8 subject, UTF-8 plain text body and

[issue14047] UTF-8 Email Header

2012-02-20 Thread Michal Sladek
Michal Sladek mic...@sladkovi.eu added the comment: Hello Martin! Thanks for your kind words and for giving me hints how to fill the bug report properly. I hope this time it will be accepted (ID 14062). Best regards Michal Dne 19. února 2012 19:59 Martin v. Löwis rep...@bugs.python.org

[issue14034] first example in argparse doc is too complicated

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: I chose to go the way of a howto. I find argparse complex enough to deserve one. note: I have checked each example on the 3 releases that possess the module (2.7, 3.2, and 3.3), and the differences in output are very small. --

[issue14050] Tutorial, list.sort() and items comparability

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: An an aside, shouldn't that be in-place instead of in place (http://en.wikipedia.org/wiki/In-place)? -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org

[issue13605] document argparse's nargs=REMAINDER

2012-02-20 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Blocks not introduced by :: are *NOT* code blocks. If they happen to begin with , they are recognized as doctest blocks and colorized as doctests. Doctest blocks shouldn't be indented. (The indent is a blockquote in this case.) --

[issue9253] argparse: optional subparsers

2012-02-20 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: The implementation looks along the right track. Now it just needs some tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9253

[issue14027] Add pysetup script for Windows

2012-02-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I don’t understand the notions of standard vs. custom. Does standard mean setuptools? #12394 is not quite ready yet, so nothing is set in stone, but if possible I’d prefer to generate pysetup.exe. Let’s move the sub-discussion there.

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10112 ___ ___ Python-bugs-list mailing

[issue13605] document argparse's nargs=REMAINDER

2012-02-20 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe tshep...@gmail.com added the comment: (this is only concerning the latest commit) Not sure if I should open a new issue, but why is there a print function at all, given that: print(parser.parse_args('--foo B cmd --arg1 XX ZZ'.split())) Namespace(args=['--arg1', 'XX',

[issue13846] Add time.monotonic() function

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Boost has a monotonic time implementation (steady_clock) for OS X: http://svn.boost.org/svn/boost/trunk/boost/chrono/detail/inlined/mac/chrono.hpp -- nosy: +ned.deily, pitrou ___ Python tracker

[issue14058] test_sys has started failing

2012-02-20 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Yep, works now. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14058 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: == FAIL: test_insensitive (importlib.test.source.test_case_sensitivity.CaseSensitivityTest) --

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Also fails on 10.7 standard unix (non-framework) build on case-insensitive HFS+ fils system. -- assignee: ronaldoussoren - brett.cannon nosy: +ned.deily ___ Python tracker rep...@bugs.python.org

[issue12428] functools test coverage

2012-02-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Just noticed one minor nit with the patch: the pure Python version of functools.partial should support func as a keyword argument that is passed to the underlying object. The trick is to declare a positional only argument like this: def

[issue12428] functools test coverage

2012-02-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Also, the closure based implementation should be decorated with @staticmethod (see http://bugs.python.org/issue11704) and the tests updated accordingly. -- ___ Python tracker rep...@bugs.python.org

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
New submission from Bithin A bithin2...@gmail.com: In urllib/parse.py the collections module is imported twice which is against the PEP8-- Style Guide for Python Code. -- components: Library (Lib) files: multiple_imports.patch keywords: patch messages: 153780 nosy: Bithin.A priority:

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A bithin2...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14064 ___ ___ Python-bugs-list

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: (2.7.2 doesn’t include neither Antoine’s changeset nor mine, right?) Correct; it dates back to June last year, before issue 13193 was filed. Can you reproduce the “include buildout.cfg” bug too? Yes, that problem is present in 2.7.2,

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There was the following sporadic buildbot failure: == FAIL: test_package___file__ (test.test_imp.PEP3147Tests)

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: This is perfectly fine the way it is. PEP 8 has nothing to say about it. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14064] collections module imported twice in urllib/parse.py

2012-02-20 Thread Bithin A
Changes by Bithin A bithin2...@gmail.com: Removed file: http://bugs.python.org/file24577/multiple_imports.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14064 ___

[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14062 ___ ___ Python-bugs-list

[issue14065] Element should support cyclic GC

2012-02-20 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: The C implementation of xml.etree.ElementTree.Element needs to support cyclic GC. The attached script demonstrates the lack to support that: in 3.2, the script passes; in 3.3 (7697223df6df) it fails with an AssertionError as the cycle

[issue14065] Element should support cyclic GC

2012-02-20 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/issue14065 ___ ___ Python-bugs-list mailing list

[issue14065] Element should support cyclic GC

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Library (Lib) nosy: +flox stage: - needs patch type: - behavior versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14065

[issue14059] Implement multiprocessing.Barrier

2012-02-20 Thread sbt
sbt shibt...@gmail.com added the comment: Here is an initial implementation. Differences from threading.Barrier: - I have not implemented reset(). - wait() returns 0 or -1. One thread returns 0, the remainder return -1. This is different to threading.Barrier where each of the N threads

[issue14059] Implement multiprocessing.Barrier

2012-02-20 Thread sbt
sbt shibt...@gmail.com added the comment: barrier_tests.py contains minor modifications of the unit tests for threading.Barrier. (The two tests using reset() are commented out.) The implementation passes for me on Linux and Windows. -- Added file:

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

2012-02-20 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +francismb type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13447 ___

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Nice feedback ! One question : An alternative approach that solves all three of these problems is to check whether we have any patches applied (using hg qapplied), and if this is the case, then add --rev qbase to the hg

[issue14057] Speedup sysconfig startup

2012-02-20 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14057 ___ ___ Python-bugs-list

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: [...] And I can't reproduce, even when using --randseed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14052 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Antoine, do you think this may have been triggered by your latest patch? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The test suite does use importlib for some imports as finders from importlib for some packages stick around. I brought this up a way back but people thought it was actually a good idea to let importlib handle imports to stress test it. Anyway,

[issue14052] importlib mixes up '.' and os.getcwd()

2012-02-20 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14052 ___

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Antoine, do you think this may have been triggered by your latest patch? I don't know, perhaps Vinay can bisect to find the offending commit? (I don't have a Mac) -- ___ Python tracker

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I have a Mac, but I'm heading out the door; I will see if I can diagnose it and fix it tonight or tomorrow (unless someone beats me to it). -- ___ Python tracker rep...@bugs.python.org

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c760bd844222 by Antoine Pitrou in branch 'default': Issue #13641: Decoding functions in the base64 module now accept ASCII-only unicode strings. http://hg.python.org/cpython/rev/c760bd844222 -- nosy:

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed issue13641-alternative-v1.patch. I really think practicality beats purity here and, furthermore, there's no associated danger (non-ASCII data is rejected both as bytes and str). -- ___

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641 ___

[issue14040] Deprecate some of the module file formats

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 42f61304f77d by Antoine Pitrou in branch 'default': Issue #14040: Remove rarely used file name suffixes for C extensions (under POSIX mainly). http://hg.python.org/cpython/rev/42f61304f77d -- nosy:

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Shouldn't be --rev qparent ? Yes, that's right. I seem to confuse qbase and qparent often... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053

[issue14040] Deprecate some of the module file formats

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've now committed the suffix removal patch with a what's new entry. Thanks! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f4b7ecf8a5f8 by Georg Brandl in branch '3.1': Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) http://hg.python.org/cpython/rev/f4b7ecf8a5f8 -- nosy: +python-dev

[issue14066] Crash in imputil.imp.find_module when a *directory* exists with the given name due to double-close of FILE*

2012-02-20 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: $ mkdir some_directory_ending_with_a.py $ python -c import imputil; imputil.imp.find_module('some_directory_ending_with_a') *** glibc detected *** python: double free or corruption (!prev): 0x01589bf0 *** Aborted What's happening

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: The first bad revision is: changeset: 75048:bbaab666e6c7 parent: 75045:5b4b70bd2b6f user:Antoine Pitrou solip...@pitrou.net date:Mon Feb 20 01:48:16 2012 +0100 summary: Issue #14043: Speed up importlib's _FileFinder by at least

[issue14066] Crash in imputil.imp.find_module when a *directory* exists with the given name due to double-close of FILE*

2012-02-20 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Duplicate of issue 7732 -- resolution: - duplicate status: open - closed superseder: - imp.find_module crashes Python if there exists a directory named __init__.py ___ Python tracker

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 4a31f6b11e7a by Georg Brandl in branch '3.2': Merge from 3.1: Issue #13703: add a way to randomize the hash values of basic types (str, bytes, datetime) http://hg.python.org/cpython/rev/4a31f6b11e7a --

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you please try this patch? -- assignee: brett.cannon - keywords: +patch Added file: http://bugs.python.org/file24581/impcasing.patch ___ Python tracker rep...@bugs.python.org

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Ned Deily
Ned Deily n...@acm.org added the comment: With impcasing.patch applied, test_importlib passes on OS X (10.7 with case-insensitive fs). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3297dcdad196 by Antoine Pitrou in branch 'default': Issue #14063: fix test_importlib failure under OS X case-insensitive filesystems http://hg.python.org/cpython/rev/3297dcdad196 -- nosy: +python-dev

[issue14063] test_importlib failure on Mac OS X

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, thanks for testing! -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14063

[issue14060] Implement a CSP-style channel

2012-02-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think zero-sized queues are exactly the right answer here. -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14060 ___

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: The patch is updated. Notice about: [...]Ideally, it should distinguish between this and other errors by checking the subprocess's stderr, so that if a different error occurs, we can still print out the error message. […] that

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This is an experimental patch that limits the frequency of stat() calls in _FileFinder.find_module(). It speeds up finding modules by 2x here, but unfortunately breaks some tests (which expect modules to appear immediately when created).

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The patch is fairly incomplete: it assumes that the compiler supports __attribute__((visibility())), but it really needs to check for that. Also, there is no chance that this can go into Python 2.7; retargetting for 3.3. --

[issue10112] Use -Wl, --dynamic-list=x.list, not -Xlinker -export-dynamic

2012-02-20 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10112 ___

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

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: +1 while working on #issue14053 I missed the test for the scripts (in this case some kind of mocking is needed). -- ___ Python tracker rep...@bugs.python.org

[issue13405] Add DTrace probes

2012-02-20 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: jcea: BTW, will you be at PyCon US this year? if so, can we sprint on getting the DTrace and SystemTap hooks into CPython in some form acceptable to the rest of the CPython maintainers? -- ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file24584/imptime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file24583/imptime.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14067 ___ ___ Python-bugs-list

[issue14053] Make Tools/scripts/patchcheck.py compatible with mercurial mqueues.

2012-02-20 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Hmm... it looks like mq_changed_files() duplicates a chunk of logic from the existing changed_files() code. You can get rid of this redundancy by replacing mq_changed_files() with a function that checks for applied MQ patches; let's call it

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module, and an extension at that. At best you could switch to a modified _FileFinder after importlib is initially running and able to

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module, and an extension at that. At best you could switch to a modified _FileFinder after importlib is initially running and able to

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Mon, Feb 20, 2012 at 18:06, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: The patch uses the time module which is not a built-in, so it breaks bootstrapping by directly importing a module,

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ed76dc34b39d by Georg Brandl in branch 'default': Merge 3.2: Issue #13703 plus some related test suite fixes. http://hg.python.org/cpython/rev/ed76dc34b39d -- ___ Python

[issue14053] Make patchcheck work with MQ

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Make Tools/scripts/patchcheck.py compatible with mercurial mqueues. - Make patchcheck work with MQ ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14053

[issue14062] UTF-8 Email Subject problem

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14062 ___ ___ Python-bugs-list

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

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m pushing this higher on my todo list then. I’ll certainly upload a patch for review here with the basic machinery, then commit it, and then we’ll be able to add tests for the tools we like. -- assignee: - eric.araujo

[issue14034] Add argparse howto

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nice. I’ll find time to review later; Steven, do you have objections on the idea of adding an argparse howto? Do you want to review it yourself? -- nosy: +bethard title: first example in argparse doc is too complicated - Add argparse

[issue14047] UTF-8 Email Header

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I had written a message which read much like Martin’s and wanted to reopen this report, but apparently my flaky connection did not let it go through and now it’s lost. My apologies for not understanding your report for what it was, and thanks

[issue14050] Tutorial, list.sort() and items comparability

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Nope, the expression would be hyphenated only when used as an adjective: - “This sorts the sequence in place” vs. ‑ “Performs an in-place rearrangement by birthdate” -- ___ Python tracker

[issue14053] Make patchcheck work with MQ

2012-02-20 Thread Francisco Martín Brugué
Francisco Martín Brugué franci...@email.de added the comment: Updated. Interesting: I saw that repetition but due “[…] Ideally, it should distinguish between this and other errors by checking the subprocess's stderr, so that if a different error occurs, we can still print out the error message.

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

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This time you should have received an email from Rietveld, I made sure that your ID was expanded to an email address. I like all the suggestions you made in reply to my comments. -- ___ Python

[issue13605] document argparse's nargs=REMAINDER

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Blocks not introduced by :: are *NOT* code blocks. If they happen to begin with , they are recognized as doctest blocks and colorized as doctests. Ah, that’s it! Thanks. So we have two valid ways of marking up doctest-like blocks, “::” °

[issue13964] os.utimensat() and os.futimes() should accept Decimal, drop os.futimens()

2012-02-20 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: Here is a first step: add _PyTime_ObjectToTimespec() to pytime.h and use it for signal.sigtimedwait(). signal.sigtimedwait(sigwait, (timeout_sec, timeout_nsec)) becomes signal.sigtimedwait(sigwait, timeout). I chose pytime.h instead

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Jason Yeo jasonye...@gmail.com added the comment: For the two failures, I suggest modifying _check_script() to return the rc, out, err from the underlying assert_python_ok() call I've decided to simple pass in *example_args into the assert_python_ok() in those two offending tests. There are

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo jasonye...@gmail.com: Removed file: http://bugs.python.org/file24587/mypatch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo jasonye...@gmail.com: Removed file: http://bugs.python.org/file24556/14026patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

[issue14026] test_cmd_line_script should include more sys.argv checks

2012-02-20 Thread Jason Yeo
Changes by Jason Yeo jasonye...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file24588/14026v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14026 ___

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Non-ascii binary data should not be being rejected unless validate is true. So what are you going to do with non-ascii-range unicode in that case? Ignore it as well? That can't be right. I believe this should be discussed on

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I disagree with this commit. Reopening pending discussion on python-dev. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13641

[issue13637] binascii.a2b_* functions could accept unicode strings

2012-02-20 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I disagree with this feature. Reopening pending discussion on python-dev. -- nosy: +r.david.murray status: closed - open ___ Python tracker rep...@bugs.python.org

[issue13641] decoding functions in the base64 module could accept unicode strings

2012-02-20 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Non-ascii binary data should not be being rejected unless validate is true. So what are you going to do with non-ascii-range unicode in that case? Ignore it as well? That can't be right. It's not ignored, it raises ValueError. Since the

[issue5411] Add xz support to shutil

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: s/cleanup in did in the code/cleanup I did in the code/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5411 ___

[issue5411] Add xz support to shutil

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have a working updated shutil module, tests pass and the documentation is improved. I will make sure to make different commits for improving the tests, cleaning up some things, adding tarfile.compression_formats and removing duplication in

[issue13703] Hash collision security issue

2012-02-20 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6b7704fe1be1 by Barry Warsaw in branch '2.6': - Issue #13703: oCERT-2011-003: add -R command-line option and PYTHONHASHSEED http://hg.python.org/cpython/rev/6b7704fe1be1 --

[issue5411] Add xz support to shutil

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note that there is a way to get fully automated support for tar formats: tarfile could expose, in addition to the list compression_formats, another structure with the descriptions (e.g. “gzip’ed tar file”) and file extensions (e.g. ['.gz',

[issue3354] Improve error reporting for the argument parsing C API

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- title: Improve error reporting for the argument parsing API - Improve error reporting for the argument parsing C API versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue2661] Mapping tests cannot be passed by user implementations

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think it would be great to test the stdlib’s mapping classes against common tests; there is a patch to add more MutableMapping methods to dbm classes for example, and it was not trivial to get good test coverage. Not sure about the status of

[issue14068] problem with re split

2012-02-20 Thread 启朗 杨
New submission from 启朗 杨 yangqil...@gmail.com: i use python to handle some string. here is my code: # -*- coding: utf-8 -*- from lxml import etree import collectcorpus import re doc = etree.parse(/home/harveyang/workspace/corpus/newsscrapy/news1.xml) root = doc.getroot() children =

[issue14068] problem with re

2012-02-20 Thread 启朗 杨
Changes by 启朗 杨 yangqil...@gmail.com: -- nosy: 启朗.杨 priority: normal severity: normal status: open title: problem with re ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14068 ___

[issue14069] In extensions (?...) the lookbehind assertion cannot choose between the beginning of string and a letter

2012-02-20 Thread py.user
New submission from py.user port...@yandex.ru: import re re.search(r'(?=(a|b))(\w+)', 'abc').groups() ('a', 'bc') re.search(r'(?=(^))(\w+)', 'abc').groups() ('', 'abc') re.search(r'(?=(^|$))(\w+)', 'abc').groups() ('', 'abc') re.search(r'(?=($|^))(\w+)', 'abc').groups() ('', 'abc')

[issue14068] problem with re split

2012-02-20 Thread 启朗 杨
启朗 杨 yangqil...@gmail.com added the comment: i use python to handle some string. here is my code: # -*- coding: utf-8 -*- from lxml import etree import collectcorpus import re doc = etree.parse(news1.xml) root = doc.getroot() children = root.getchildren() flag = 1 for child in children:

[issue14070] reload(module, ignore_pyc=True) flag

2012-02-20 Thread Tim McNamara
New submission from Tim McNamara paperl...@timmcnamara.co.nz: When developing Python code, I often find myself needing to run rm *.pyc so that the interpreter will ignore any new changes that I have made to source files. It's really frustrating when forgotten. Adding a flag to the reload

[issue14067] Avoid more stat() calls in importlib

2012-02-20 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: FWIW, I doubt you'd get many objections if you ended up wanting to make time a builtin module and inject it into the bootstrapping namespace. While I don't think the delay in noticing filesystem changes is reasonable as the default behaviour,

[issue7813] Bug in command-line module launcher

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry, 2.6 only gets security fixes now, closing. Thanks for the report anyway! -- nosy: +eric.araujo resolution: - out of date stage: test needed - committed/rejected status: open - closed ___

[issue7562] Custom order for the subcommands of build

2012-02-20 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7562 ___ ___ Python-bugs-list

[issue7438] Allow to use a part of subprocess module during building Python

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It is sometimes useful to call subprocess.Popen() in setup.py of Python. What use cases do you have in mind? Maybe you want to remove the half-dozen calls to os.system? -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7, Python

[issue2661] Mapping tests cannot be passed by user implementations

2012-02-20 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think it would be great to test the stdlib’s mapping classes against common tests grep told me that most of them already do. Sorry for the noise, it’s late/soon here. -- ___ Python tracker

  1   2   >