[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Christian Ziemski
Christian Ziemski cz...@gmx.de added the comment: Just for my understanding: Even the current development/testing version: Python 3.2.2 rc 1 (August 14, 2011) isn't new enough here? So I'll have to find out how to install Python 3.3 in parallel to my 2.7.1 (on Fedora 15). Starting with hg

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Where's the Doc changes? sys.platform is currently clearly documented as being linux2 or linux3. Adding an entry to Misc/NEWS is not enough. -- status: closed - open ___ Python tracker

[issue12792] Document the type field of the tracker in the devguide

2011-08-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: You mean pluralize I guess. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12792 ___

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326 ___ ___

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Adam Simpkins
New submission from Adam Simpkins a...@adamsimpkins.net: The SSLContext.load_cert_chain() method should accept a password argument to use if the private key is encrypted. Currently it always uses OpenSSL's default password callback, which prompts the user interactively for a password. I've

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +giampaolo.rodola, janssen, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12803 ___

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: - patch review versions: +Python 3.3 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12803 ___

[issue9878] Avoid parsing pyconfig.h and Makefile by autogenerating extension module

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I wouldn’t call this a performance issue. From #4359, you can see that the two main reasons are first to avoid breakage on platforms that put pyconfig.h and Makefile in another package than the interpreter, and most importantly than the code

[issue12792] Document the type field of the tracker in the devguide

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I did! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12792 ___ ___ Python-bugs-list mailing

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Even the current development/testing version: Python 3.2.2 rc 1 (August 14, 2011) isn't new enough here? No. (Where does the quote come from?) The current development version is 3.3; its version number is currently 3.3.0a0, to mean it was not

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Christian Ziemski
Christian Ziemski cz...@gmx.de added the comment: Even the current development/testing version: Python 3.2.2 rc 1 (August 14, 2011) isn't new enough here? No. (Where does the quote come from?) http://python.org/download/releases/ Cloning http://hg.python.org/cpython#default will get you

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: http://python.org/download/releases/ Ah, I understand: the release candidate for 3.2.2 is a testing release, but not a development one :) -- ___ Python tracker rep...@bugs.python.org

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I’m confused about what the proposed change would actually do. Could you explain what behavior you want to change and how? -- ___ Python tracker rep...@bugs.python.org

[issue12703] Improve error reporting for packaging.util.resolve_name

2011-08-21 Thread Rémy HUBSCHER
Rémy HUBSCHER remy.hubsc...@ionyse.com added the comment: It is exactly what explained Alexis. The __import__ can failed in two case : - The module doesn't exist - There is a error in the module With the previous behaviour, even if the module exist, the message was that it doesn't exists.

[issue12461] it's not clear how the shutil.copystat() should work on symlinks

2011-08-21 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: This is a sub-issue of #12715. ATM the consent is to add just one symlinks parameter and use the l* functions iff src _and_ dst are symlinks. -- nosy: +hynek ___ Python tracker rep...@bugs.python.org

[issue9993] shutil.move fails on symlink source

2011-08-21 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: I work on the superficially related #12715 (symlinks for shutil). As we try to mimic the POSIX tools and `mv` indeed doesn't follow links, I agree with the approach of this patch. -- nosy: +hynek ___

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset bf89ff3d1ec9 by Victor Stinner in branch 'default': Issue #12326: update sys.platform doc for Linux http://hg.python.org/cpython/rev/bf89ff3d1ec9 -- ___ Python tracker

[issue12461] it's not clear how the shutil.copystat() should work on symlinks

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This report is older but the other one has more discussion and patches, so I’m closing this one. You’re welcome to follow the other. If you think the documentation for current versions should mention how symlinks are handled, please open a

[issue12783] test_posix failure on FreeBSD 6.4: test_get_and_set_scheduler_and_param

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a04e70d7d76c by Charles-François Natali in branch 'default': Issue #12783: Fix test_posix failures on FreeBSD buildbots, due to http://hg.python.org/cpython/rev/a04e70d7d76c -- nosy: +python-dev

[issue12715] Add symlink support to shutil functions

2011-08-21 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: We have an edge case when the caller calls copymode with symlinks=True on an OS that doesn't have lchmod (ie any other than FreeBSD). Should it be a nop (as in copystat), use chmod or raise an Exception? I Personally (and some people on

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I made two comments on rietveld but the email was rejected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Paul Moore
Changes by Paul Moore p.f.mo...@gmail.com: -- nosy: +pmoore ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12678 ___ ___ Python-bugs-list mailing

[issue9993] shutil.move fails on symlink source

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you update the documentation? -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9993

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list mailing list

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Petri Lehtinen
Changes by Petri Lehtinen pe...@digip.org: -- nosy: +petri.lehtinen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489 ___ ___ Python-bugs-list

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I've attached a patch that adds an extra password argument, which can be either a string, bytes, bytearray, or a function to call to get the password. It seems a bit strange to me to accept string types or callable in the same argument. If it

[issue10504] Trivial mingw compile fixes

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10504 ___

[issue12780] Clean up tests for pyc/pyo in __file__

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Barry, could you review the second part of the patch? (the first was committed) -- nosy: +barry versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12780

[issue12781] Mention SO_REUSEADDR near socket doc examples

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: +1 to Sandro’s patch. Documenting all SO_* constants should be another bug; right now, there is only an index entry for “SO_*”, I suppose for the benefit of C programmers wanting to know where the constants are defined. I think the reason for

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: So what about doing the same for FreeBSD, SunOS, and Windows? The conversation about this point sort of trailed off. But, dammit, a foolish consistency is the hobgoblin of my small mind. If we're changing linux2 / linux3 to just linux, we

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Larry: the scope of this bug was narrowed to the linux breakage only; see #12795 for other platforms. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326

[issue12790] doctest.testmod does not run tests in functools.partial functions

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

[issue12793] allow filters in os.walk

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report. 2.7 is a stable version, so this would have to go in 3.3. Even where, breaking the function signature wouldn’t be possible, so we would have to add arguments without removing any. Have you looked at shutil.rmtree’s

[issue12798] Update mimetypes documentation

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Some changes I would like to do +1 on those. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12798 ___

[issue11362] image/webp missing from mimetypes.py

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: On a related note, the Google-originated video codec WebM is used out there and supported by various software. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue1298813] sysmodule.c: realpath() is unsafe

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1298813 ___ ___

[issue12797] io.FileIO and io.open should support openat

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

[issue12801] C realpath not used by os.path.realpath

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: + Return a string representing the canonicalized pathname of *path*. This sounds a bit strange to me; “Return a string representing the canonical version of *path*”. Would it be a good idea to use the full docstring of posixpath.realpath to

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

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the patch. I commented on the code review site, you should have received an email. -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: When I run make test on 3.3 now, I get failures because the tests try to make HTTP requests. -- messages: 142621 nosy: eric.araujo, nadeem.vawda priority: normal severity: normal status: open title: make test should not enable the

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Are the failures because the machine you're running the test on doesn't have internet access? Or are there problems with some of the tests? The attached patch should solve the problem. -- keywords: +patch Added file:

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Yes, the machine did not have Internet access. Before the run_tests.py patch, the urlfetch resource was not enabled by default. I don’t want to disconnect to test the patch, but it looks good: /home/wok/python/3.3/python -W default -bb -E -m

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Before the run_tests.py patch, the urlfetch resource was not enabled by default. I’m referring to the addition of run_tests.py, not this patch. -- ___ Python tracker rep...@bugs.python.org

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 228fd2bd83a5 by Nadeem Vawda in branch 'default': Issue #12804: Prevent make test from using network resources. http://hg.python.org/cpython/rev/228fd2bd83a5 -- nosy: +python-dev

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12804 ___

[issue11651] Improve test targets in Makefile

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6c4fa9559b7e by Nadeem Vawda in branch 'default': Update README section on testing following issue #11651. http://hg.python.org/cpython/rev/6c4fa9559b7e -- ___ Python

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I looked at multiprocessing code, but didn't understand how to trigger a call to these functions. Makes it hard to come up with a unit test... Here's a sample test: import _multiprocessing import os import socket for i in range(4,

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: In case of plat-* directories, please see issue #12619, which proposes some changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12326

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Looks like the patch is not enough: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/477/steps/test/logs/stdio/text Please see #12785 for a patch to packaging.database that should fix test_packaging failures and needs

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Christian Ziemski
Christian Ziemski cz...@gmx.de added the comment: Attached a patch against Python 3.3 All the existing tests are still running successfully. But I wasn't able to add additional tests for the new functionality. Writing proper tests is a bit over my head for now - still learning. --

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Following on to Georg's comment about expressions, as a workaround, note that: with ( open('abc')) as foo: works. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I have to log off for today; another committer can use the attached patch so that we get more info. -- Added file: http://bugs.python.org/file22974/tmp-debug.diff ___ Python tracker

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: test_argparse has a proper test infrastructure so that people don’t have to write the same boilerplate and assertion code over and over again. If you want, you can probably learn by copy-pasting things. What you want to test is basically that

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roumen Petrov
Roumen Petrov bugtr...@roumenpetrov.info added the comment: diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 440af98..520289c 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -381,6 +381,15 @@ class

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: So what about doing the same for FreeBSD, SunOS, and Windows? I agree that's definitely out of scope of this issue. If we're changing linux2 / linux3 to just linux, we should be consistent and do it for everybody. I propose sys.platform

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Roumen: I thought too about checking the zipfile on Windows, but with Jeremy’s patch the test force tar.gz generation, so it should amount to the same with less code. -- ___ Python tracker

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Adam Simpkins
Adam Simpkins a...@adamsimpkins.net added the comment: It seems a bit strange to me to accept string types or callable in the same argument. If it just supported strings, people could still write password=somefunction(), right? The function is only called if the private key is encrypted

[issue12792] Document the type field of the tracker in the devguide

2011-08-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 'Behaviors' is quite legal. However, behavior Wrong or unexpected behaviors/results/exceptions. ... could well be behavior Wrong or unexpected behavior, result, or exception. ... -- ___

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-21 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: While writing my tests I realized, it would be really useful to make write_file() return the path it wrote to. I need the concatenated filenames most of the time, so I'm getting blocks of: fn = os.path.join(x,y) write_file(fn, 'contents') I'd

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Adam Simpkins
Adam Simpkins a...@adamsimpkins.net added the comment: Here's a new patch that accepts any callable. The old patch only accepted actual function objects. -- Added file: http://bugs.python.org/file22975/ssl-password.2.patch ___ Python tracker

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Looks like the patch is not enough: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/477/steps/test/logs/stdio/text That's a 3.2 builder. You only committed Jeremy's fix to default. I've tested the fix on 3.2 on my

[issue12785] list_distinfo_file is wrong

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: With the patch applied, I still get failures in test_old_record_extensions and test_record_basic, so it doesn't seem to work. -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-21 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Yes, Charles - the test is not only welcome, but needed - it just can't rely on reading /etc/fstab ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11657

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-21 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Charles; you have +commit, it seems. I would welcome the patch and test (just as long as the aforementioned reliance on /etc/fstab was removed). -- ___ Python tracker rep...@bugs.python.org

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c8e73a89150e by Nadeem Vawda in branch '3.2': Issue #12678: Fix distutils sdist test on Windows. http://hg.python.org/cpython/rev/c8e73a89150e -- ___ Python tracker

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset d40856e424fd by Nadeem Vawda in branch '2.7': Issue #12678: Fix distutils sdist test on Windows. http://hg.python.org/cpython/rev/d40856e424fd -- ___ Python tracker

[issue12783] test_posix failure on FreeBSD 6.4: test_get_and_set_scheduler_and_param

2011-08-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: The test now passes on FreeBSD buildbots. Closing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue11657] multiprocessing_{send,recv}fd fail with fds 256

2011-08-21 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Charles; you have +commit, it seems. Yeah, I could of course do this myself, but since Petri already submitted a patch and seemed to be willing to update it with a test, I thought he might be interested in this (I've also seen he's

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: The sdist failure is now fixed on the 3.2 XP builders. test_record_extensions still needs attention, though. I also tried backporting Jeremy's fix to 2.7, but that doesn't seem to have worked; the sdist tests is still failing there. Someone

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Brian May
Changes by Brian May br...@microcomaustralia.com.au: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6560 ___ ___

[issue12788] test_email fails with -R

2011-08-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12788 ___ ___

[issue12805] Optimzations for bytes.join() et. al

2011-08-21 Thread John O'Connor
New submission from John O'Connor tehj...@gmail.com: I noticed there are a few more common cases that can be sped up in bytes.join(). When: - The sequence length and separator length are both 0 - The separator length is 0 or 1 - The separator string contains only 1 distinct byte These could

[issue12806] argparse: Hybrid help text formatter

2011-08-21 Thread Graylin Kim
New submission from Graylin Kim graylin@gmail.com: When using argparse I frequently run into situations where my helper text is a mix of prose and bullets or options. I need the RawTextFormatter for the bullets, and I need the default formatter for the prose (so the line wraps

[issue12806] argparse: Hybrid help text formatter

2011-08-21 Thread Graylin Kim
Graylin Kim graylin@gmail.com added the comment: I just noticed that the example output above repeats with a different indent. The attached formatter isn't broken, I just messed up the editing on my post. The repeated text isn't part of the output (and shouldn't be there). While I'm

[issue12805] Optimizations for bytes.join() et. al

2011-08-21 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: -- title: Optimzations for bytes.join() et. al - Optimizations for bytes.join() et. al ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12805 ___

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

2011-08-21 Thread Arnaud Fontaine
Arnaud Fontaine ar...@debian.org added the comment: Thanks for the review. Sorry to send that here instead of the review page, but I get an error when replying: Invalid XSRF token.. This looks good, especially if all existing tests still pass as you report, but I wonder about one thing:

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

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine ar...@debian.org: Removed file: http://bugs.python.org/file22927/py2.7-argparse-call-type-function-once.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

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

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine ar...@debian.org: Removed file: http://bugs.python.org/file22928/py3k-argparse-call-type-function-once.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12776 ___

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

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

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

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

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool m...@sourcefrog.net added the comment: this fixes the pickle warnings, and cleans up some (I'm pretty sure) dead code in there. the pickle tests all pass. -- keywords: +patch nosy: +poolie Added file: http://bugs.python.org/file22980/20110822-1150-python-warnings.diff

[issue9893] Usefulness of the Misc/Vim/ files?

2011-08-21 Thread Graeme Cross
Graeme Cross gjcr...@gmail.com added the comment: Here is a first pass at the README.vim file. Suggestions welcome from VIM power-users! -- nosy: +gjcross Added file: http://bugs.python.org/file22981/README.vim ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset c64216addd7f by Nick Coghlan in branch 'default': Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. (Closes #6560) http://hg.python.org/cpython/rev/c64216addd7f

[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-08-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Added Ned to the nosy list. For Python core, we should also keep in mind that we do have the option of adding a -X coverage option to avoid the need for the encodings module hack. -- nosy: +nedbat

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-21 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As Georg noted, only individual expressions get parentheses based continuations automatically. For statement level use of comma separation, it's decided on a case-by-cases basis as to whether we think it is a legitimate usage based on our

[issue11561] coverage of Python regrtest cannot see initial import of libs

2011-08-21 Thread Ned Batchelder
Ned Batchelder n...@nedbatchelder.com added the comment: The tip of the coverage.py repo (https://bitbucket.org/ned/coveragepy) has a new implementation of the encodings hack which seems to work well. Of course, an option to run a module before anything else in the interpreter would make the

[issue12715] Add symlink support to shutil functions

2011-08-21 Thread Марк Коренберг
Changes by Марк Коренберг socketp...@gmail.com: -- nosy: +mmarkk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12715 ___ ___ Python-bugs-list

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-21 Thread John O'Connor
New submission from John O'Connor tehj...@gmail.com: bytearray() is using a less efficient implementation of split() than its similar friends bytes and unicode. I added a couple extra checks to return early in {bytes,unicode} split(). - if length is 0 - if left strip removed all bytes

[issue12808] Coverage of codecs.py

2011-08-21 Thread Tennessee Leeuwenburg
New submission from Tennessee Leeuwenburg tleeuwenb...@gmail.com: Increases the coverage of codecs.py by about 3 lines... -- files: mywork.patch keywords: patch messages: 142661 nosy: ncoghlan, tleeuwenburg priority: normal severity: normal status: open title: Coverage of codecs.py

[issue12808] Coverage of codecs.py

2011-08-21 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg tleeuwenb...@gmail.com added the comment: Also some pep8 compliance outside of the scope of the added lines of code. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12808

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-08-21 Thread Michael Farrell
New submission from Michael Farrell micolous...@gmail.com: Recently, iptables has added support for transparent proxies using a new TPROXY target on Linux2. This requires a new option in setsockopts, IP_TRANSPARENT. There's some background on the feature here:

[issue1298813] sysmodule.c: realpath() is unsafe

2011-08-21 Thread Mihai Ibanescu
Mihai Ibanescu mihai.ibane...@gmail.com added the comment: It's a real shame the original patch was not applied before py3k was branched, the code is now different. Antoine, my autoconf knowledge is limited, I don't know how you'd test for realpath accepting a NULL argument (and doing the

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool m...@sourcefrog.net added the comment: This fixes every compiler warning so that Python build with -Werror on Ubuntu Oneiric alpha (gcc 4.6.1-7ubuntu1). * PyMem_Resize is a macro that mutates its first argument; the return value shouldn't be used. * Some variables in sre are

[issue11159] Sax parser crashes if given unicode file name

2011-08-21 Thread John Chandler
John Chandler therealmetal...@gmail.com added the comment: Confirmed about not being an issue in Python 3. Just checked with Python 3.3.0a0 and the example works fine - no exception raised. -- nosy: +John.Chandler ___ Python tracker

[issue6484] No unit test for mailcap module

2011-08-21 Thread Anthony Briggs
Changes by Anthony Briggs anthony.bri...@gmail.com: -- nosy: +anthonyb, ncoghlan versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6484 ___

[issue6484] No unit test for mailcap module

2011-08-21 Thread Anthony Briggs
Anthony Briggs anthony.bri...@gmail.com added the comment: Added ncoghlan to the nosy list - we're reviewing/fixing unit test coverage as part of the sprints at PyconAU. Thanks Gnofi! -- ___ Python tracker rep...@bugs.python.org

[issue12768] docstrings for the threading module

2011-08-21 Thread Graeme Cross
Graeme Cross gjcr...@gmail.com added the comment: Threading module docstrings added for all classes and public methods; mainly used a summarised version of information from the documentation. -- keywords: +patch nosy: +gjcross Added file:

[issue12767] document threading.Condition.notify

2011-08-21 Thread Graeme Cross
Graeme Cross gjcr...@gmail.com added the comment: I have added documentation for the 'n' parameter of threading.Condition.notify as part of the overhaul of the threading module's docstrings. Reference: #12768 -- nosy: +gjcross ___ Python tracker

[issue1215] Python hang when catching a segfault

2011-08-21 Thread Martin Pool
Martin Pool m...@sourcefrog.net added the comment: The documentation for this can now point to the faulthandler module (in Python 3). -- nosy: +poolie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1215

[issue12768] docstrings for the threading module

2011-08-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: On Mon, Aug 22, 2011 at 07:39, Graeme Cross rep...@bugs.python.org wrote: Graeme Cross gjcr...@gmail.com added the comment: Threading module docstrings added for all classes and public methods; mainly used a summarised version of

  1   2   >