[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : os.chmod() should check symlinks if followsymlinks option is True on Windows. This is a cause of failure of test case test.test_shutil.TestShutil.test_copymode_follow_symlinks (#13837) -- components: Library (Lib), Windows files: chmod_symlink

[issue13837] test_shutil fails with symlinks enabled under Windows

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Error in test_copymode_follow_symlinks is adderessed in #15411. -- nosy: +ishimoto ___ Python tracker ___ _

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03cda5360dc6 by Florent Xicluna in branch '3.2': Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. http://hg.python.org/cpython/rev/03cda5360dc6 New changeset 4d0dcfbdf45b by Florent Xicluna in branch 'defa

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03cda5360dc6 by Florent Xicluna in branch '3.2': Issues #10017 and #14998: Fix TypeError using pprint on dictionaries with unorderable key. http://hg.python.org/cpython/rev/03cda5360dc6 New changeset 4d0dcfbdf45b by Florent Xicluna in branch 'defa

[issue10017] pprint.pprint raises TypeError on dictionaries with user-defined types as keys

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Thanks for this patch. I've reviewed the issue and merged the patch of issue #14998 which fixes both cases. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed superseder: -> pprint._safe_key is not always safe en

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Thank you for this patch. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Richard Oudkerk
New submission from Richard Oudkerk : In the documentation on weakrefs there is the following quote Note: Weak references to an object are cleared before the object’s __del__() is called, to ensure that the weak reference callback (if any) finds the object still alive. But I think

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto added the comment: Patch updated. Check symlinks only if supported by platform. -- Added file: http://bugs.python.org/file26463/issue1492704_new_2.patch ___ Python tracker __

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Removed file: http://bugs.python.org/file26463/issue1492704_new_2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue15411] os.chmod() does not follow symlinks on Windows

2012-07-21 Thread Atsuo Ishimoto
Changes by Atsuo Ishimoto : Added file: http://bugs.python.org/file26464/chmod_symlink_win32_2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue2919] Merge profile/cProfile in 3.n+1

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: I just broke tests :( -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailin

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Hmm. Without the ability to reproduce this effect, it will be difficult for > me to > get rid of him. It's under 64-bit Linux, Intel Core i5 CPU. Are you sure you're testing in non-debug mode? That said, the numbers under Windows suggest me that Eli's orig

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > In the documentation on weakrefs there is the following quote > > Note: Weak references to an object are cleared before the object’s > __del__() is called, to ensure that the weak reference callback > (if any) finds the object still alive. > > B

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, here is Matt Mackall's take on realloc(): http://www.selenic.com/pipermail/mercurial-devel/2011-October/034988.html -- ___ Python tracker

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: StringIO: $ ./python -m timeit -s "import io; n=2000; d=['a'*n,'bb'*n,'ccc'*n]*1000" "s=io.StringIO(); w=s.write" "for x in d: w(x)" "global y; y = s.getvalue()" -> Linux: 1000 loops, best of 3: 985 usec per loop -> Windows: 100 loops, best of 3: 4.26 msec

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Richard Oudkerk
Richard Oudkerk added the comment: > The weakref is "dead" but it's still a weakref, and it can be used to > e.g. index a container of existing weakrefs (cf. WeakSet, > WeakKeyDictionary, WeakValueDictionary). Ah. I had assumed that since dead weakrefs were unhashable you couldn't safely use

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I had assumed that since dead weakrefs were unhashable you couldn't > safely use them as keys in a dict. (Presumably removal of a no longer > hashable key from a dict is O(n)?) They are unhashable if you didn't hash them alive. Otherwise they retain their ol

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Test test_pprint fixed with changesets 29642f82bbcc and 79d44f4920d9. -- status: open -> closed ___ Python tracker ___ ___

[issue12834] PyBuffer_ToContiguous() incorrect for non-contiguous arrays

2012-07-21 Thread Stefan Krah
Stefan Krah added the comment: There is an additional problem with PyBuffer_ToContiguous(): Suppose 'view' is multi-dimensional, C-contiguous and initialized according to PyBUF_ND, i.e. view->shape != NULL but view->strides == NULL. Now if PyBuffer_ToContiguous() is called with 'F', PyBuffer_I

[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : Removed file: http://bugs.python.org/file18445/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: does it require action in 3.3, where the C implementation is active by default? -- ___ Python tracker ___ _

[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +eli.bendersky versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker ___ ___ Python-bu

[issue9610] buildbot: uncaptured python exception (smtpd), but no failure in regrtest

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: probably related to issue #5154 mentioned in previous comment: http://bugs.python.org/issue9610#msg114000 -- resolution: -> wont fix status: open -> closed ___ Python tracker __

[issue3609] does parse_header really belong in CGI module?

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: This refactoring between cgi and email modules is languishing for few years. Any thought? -- status: open -> languishing versions: +Python 3.4 -Python 3.2 ___ Python tracker _

[issue8273] move generally useful test.support functions into the unittest package

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d76b83803e7e by Ned Deily in branch 'default': Issue #15184: Ensure consistent results of OS X configuration http://hg.python.org/cpython/rev/d76b83803e7e -- nosy: +python-dev ___ Python tracker

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily added the comment: I've committed an updated version of the refactoring patch which attempts to handle some additional edge cases and which includes a number of additional tests. I still have not been able to reproduce the original failure so I'm setting the status to pending await

[issue9566] Compilation warnings under x64 Windows

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Attached file is a copy of the remaining warnings on the AMD64 Windows7 SP1 3.x builder. -- keywords: +buildbot nosy: +flox Added file: http://bugs.python.org/file26465/warnings64.log ___ Python tracker

[issue9783] _elementtree.c warnings under 64-bit Windows

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: This warning is not specific to the _elementtree module. See related issue #9566. -- nosy: +eli.bendersky resolution: -> duplicate status: open -> closed superseder: -> Compilation warnings under x64 Windows ___ P

[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: > That appears to be a bug in the NFS server. So, it's not a Python bug. -- resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue1610654] cgi.py multipart/form-data

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: It needs tests to demonstrate the issue in 3.x, and an updated patch. -- nosy: +hynek, pitrou stage: patch review -> test needed versions: +Python 3.3 ___ Python tracker __

[issue15195] test_distutils fails when ARCHFLAGS is set on a Mac

2012-07-21 Thread Ned Deily
Ned Deily added the comment: This problem has been fixed in changeset d76b83803e7e for Issue15184 which, among other things, tries to make the handling of ARCHFLAGS more consistent. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed superseder: -> Test failu

[issue9771] add an optional "default" argument to tokenize.detect_encoding

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: I propose to close this as won't fix. The upgrade to ElementTree 1.3 brought some consistency when dealing with Unicode and encodings. The reported behavior was only seen in Python 2.7, when using bytes improperly. -- nosy: +eli.bendersky resolution

[issue3783] dbm.sqlite proof of concept

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1610654] cgi.py multipart/form-data

2012-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5166] ElementTree and minidom don't prevent creation of not well-formed XML

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- assignee: effbot -> components: +XML versions: +Python 3.4 -Python 2.7, Python 3.2 ___ Python tracker ___

[issue7990] xml.etree.cElementTree lacks full dir() on Element

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- assignee: effbot -> nosy: +eli.bendersky stage: needs patch -> patch review ___ Python tracker ___ ___

[issue6625] UnicodeEncodeError on pydoc's CLI

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: See also issue 13378 which proposes custom namespace maps for serializing. -- components: +XML nosy: +eli.bendersky versions: +Python 3.4 -Python 3.2 ___ Python tracker __

[issue12323] ElementPath 1.3 expressions

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +eli.bendersky versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue12322] ElementPath 1.3 expressions documentation

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- keywords: +easy nosy: +eli.bendersky versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list

[issue12321] documentation of ElementTree.find

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +orsenthil versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ ___ Python-bugs-list maili

[issue12411] cgi.parse_multipart is broken on 3.x

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue15147] Remove packaging from the stdlib

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Eric, ping? When can this be closed? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue14578] importlib doesn't check Windows registry for paths

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Ping. Brian? I'd rather have some testing period for this, so I'm reluctant to release b2 without it. -- ___ Python tracker ___ ___

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Documentation issue, can be resolved after b2. -- priority: release blocker -> deferred blocker ___ Python tracker ___ __

[issue15295] Document PEP 420 namespace packages

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Ping. Barry? (It's not strictly necessary to have the docs for b2, but could you give me a rough estimate when you'll do this?) -- nosy: +georg.brandl ___ Python tracker __

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily added the comment: Buildbot test failure: http://buildbot.python.org/all/builders/AMD64%20Snow%20Leopard%203.x/builds/66 -- resolution: fixed -> status: pending -> open ___ Python tracker __

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Damn, I don't have clang on this machine. Will install and test. -- ___ Python tracker ___ ___ Pytho

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: The bug certainly is a valid annoyance, but I won't hold up beta2 for it. -- priority: release blocker -> deferred blocker ___ Python tracker ___

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: IIUC only docs are missing now? That's not a b2 blocker then. -- priority: release blocker -> deferred blocker ___ Python tracker ___ __

[issue15151] Documentation for Signature, Parameter and signature in inspect module

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: Docs issues won't block b2. -- priority: release blocker -> deferred blocker ___ Python tracker ___ _

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Buildbot test failure: > http://buildbot.python.org/all/builders/AMD64%20Snow%20Leopard%203.x/builds/66 These failures are not new, and the buildbot is an unstable one. As for clang, the Lion buildbot uses it and is green. Its configure line is "./configure

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily added the comment: The problem isn't with clang. The problem was that the test appeared to be taking an OS X only code path apparently because a clang was installed on a Gentoo machine. -- ___ Python tracker

[issue9773] test_tarfile fails because of inaccurate mtime on AMD64 debian parallel buildbot

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Yet another issue with the filesystem on the same buildbot: see issue 9772. -- resolution: -> works for me stage: needs patch -> status: open -> closed superseder: -> test_pep277 failure on AMD64 debian parallel buildbot ___

[issue7710] Inconsistent Exception for int() conversion

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: The behavior seems acceptable in 2.7 too. >>> int('\0') Traceback (most recent call last): File "", line 1, in ValueError: invalid literal for int() with base 10: '' >>> int('\01') Traceback (most recent call last): File "", line 1, in ValueError: invali

[issue4221] inconsistent exception from int is confusing

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Proposed as won't fix for the 2.x series. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker _

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: OK, test passes here now with clang installed. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread koobs
koobs added the comment: FYI, Added two FreeBSD based buildslaves to the cluster not long ago, one is dedicated to python+CLANG http://buildbot.python.org/all/buildslaves/koobs-freebsd-clang -- nosy: +koobs ___ Python tracker

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily added the comment: The new buildbot failure is due to that buildbot using env variables for some of the config variables during execution. The new tests need to isolate themselves from that. Should have a fix shortly. -- ___ Python trac

[issue9708] cElementTree iterparse does not support "parser" argument

2012-07-21 Thread Florent Xicluna
Florent Xicluna added the comment: Either the documentation or the implementation should be fixed in 3.3, because they do not match. -- nosy: +eli.bendersky versions: +Python 3.3 ___ Python tracker ___

[issue13612] xml.etree.ElementTree says unknown encoding of a regular encoding

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15381] Optimize BytesIO to so less reallocations when written, similarly to StringIO

2012-07-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > It's under 64-bit Linux, Intel Core i5 CPU. Are you sure you're testing > in non-debug mode? I use 32-bit Linux. > That said, the numbers under Windows suggest me that Eli's original idea > (append and then join at the end) would be more robust. I agree,

[issue14578] importlib doesn't check Windows registry for paths

2012-07-21 Thread Brian Curtin
Brian Curtin added the comment: Sorry, I've been too busy to get caught up with this. I'm away most of today but I can try to take a look tonight. -- ___ Python tracker ___ ___

[issue15413] os.times() disappeared under Windows

2012-07-21 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is from issue #15118. Python 3.3.0b1 (v3.3.0b1:e15c554cd43e+, Jun 26 2012, 20:41:17) [MSC v.1600 64 bi t (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import os >>> os.times() Traceback (most recent call las

[issue8893] file.{read,readlines} behaviour on Solaris

2012-07-21 Thread koobs
koobs added the comment: uname -rs: FreeBSD 9.0-RELEASE-p3 (AMD64) python -V: Python 2.7.3 `python readline.py: read : ['oink', 'oink'] readlines: ['oink\n', 'oink\n'] readline : Without the patch: read : [] readlines: [] readline : Is there a test for this we could add? FreeBSD

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 295b715b6875 by Ned Deily in branch 'default': Issue #15184: Ensure configuration-related environment variables http://hg.python.org/cpython/rev/295b715b6875 -- ___ Python tracker

[issue7214] TreeBuilder.end(tag) differs between cElementTree and ElementTree

2012-07-21 Thread Eli Bendersky
Eli Bendersky added the comment: Even if this is a problem at all, it's certainly not something that must be fixed by 3.3 -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___

[issue15188] test_ldshared_value failure on OS X using python.org Pythons

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset cd883160ad97 by Ned Deily in branch 'default': Issue #15188: Modify the OS X build_installer script to remove temporary http://hg.python.org/cpython/rev/cd883160ad97 -- nosy: +python-dev ___ Python track

[issue15188] test_ldshared_value failure on OS X using python.org Pythons

2012-07-21 Thread Ned Deily
Ned Deily added the comment: Pending the final resolution of Issue15298, this changes ensures that the temporary build paths do not leak into the installed interpreter. At the moment, the test is still failing because the CFLAGS values returned by the two sysconfigs differ in whitespace. --

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily added the comment: I believe I've fixed the buildbot failure but the buildbot is not very stable and test runs aren't always completing. I'll check back on it later. -- resolution: -> fixed status: open -> pending ___ Python tracker

[issue15342] os.path.join behavior

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 61d0e3526a51 by R David Murray in branch '3.2': #15342: Add clarifying sentence to posixpath.join docstring. http://hg.python.org/cpython/rev/61d0e3526a51 New changeset 30d4d1528b58 by R David Murray in branch 'default': Merge #15342: Add clarifyin

[issue15342] os.path.join behavior

2012-07-21 Thread R. David Murray
R. David Murray added the comment: I've added the sentence to the docstring, as you suggested. Thanks for the suggestion. -- versions: +Python 3.2, Python 3.3 ___ Python tracker _

[issue13922] argparse handling multiple "--" in args improperly

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: This patch looks like the right fix to me. The tests look good too. -- ___ Python tracker ___ ___ P

[issue10091] ast.literal_eval does not handled new set literals

2012-07-21 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: I totally agree with Eric's statement that "Set literals, a new feature indeed, have been backported to 2.7 and 3.1. The lack of support in ast.literal_eval is arguably a bug." I came here from "set literal syntax support in Python 2.7" question at Stackove

[issue15295] Document PEP 420 namespace packages

2012-07-21 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Jul 21, 2012, at 02:23 PM, Georg Brandl wrote: >Ping. Barry? (It's not strictly necessary to have the docs for b2, but could >you give me a rough estimate when you'll do this?) Unfortunately, I lost a bunch of work with a disk crash, but I might have salva

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like to see my patch (cut and paste from message above) or something like it in the next beta. It fixes the problem (since forever?) of tcl/tk/ttk tests not running properly (at least on windows) as part of the test suite. (I presume the buildbots hav

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread Georg Brandl
Georg Brandl added the comment: It would be much better to have an actual patch to review. Then, we need someone who can test it on Windows. -- ___ Python tracker ___

[issue14365] argparse: subparsers, argument abbreviations and ambiguous option

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: I think the real fix needs to search recursively though all subparsers. Here's a first draft of a patch that does this. I believe your sample code works after this patch. I don't have the time to turn your bug report into proper test (and add a test for the

[issue14489] repr() function link on the built-in function documentation is incorrect

2012-07-21 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: As of today the link is still not fixed although I guess it should have been due to the patch mentioned in http://bugs.python.org/issue14489#msg157543 -- nosy: +piotr.dobrogost ___ Python tracker

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: The patch supplied was in reverse, but the bug report was correct. You can't pass "type=string" since there's no string callable, only a str callable. The docstring is confusing because the quotes make it looks like we mean the string 'str', when we actually

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2012-07-21 Thread Piotr Dobrogost
Changes by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue14392] type=bool doesn't raise error in argparse.Action

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: I can't find anywhere in the documentation where type=bool, type=unicode or type=long are disallowed. They shouldn't be disallowed. If you want to pass type=bool, argparse should not stop you. And it currently doesn't: >>> parser = argparse.ArgumentParser() >

[issue14449] argparse optional arguments should follow getopt_long(3)

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: I don't think this is going to change. It's basically a consequence of having a unified handling of nargs='?', nargs='*', nargs='+', etc. These will all consume as many arguments as they can, and argparse doesn't distinguish between arguments that are concate

[issue14504] Suggestion to improve argparse's help messages for "store_const"

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: Special casing the formatting of 'store_const' makes me nervous because formatting is already complicated and it doesn't know anything about action types. But feel free to propose a patch! In the meantime: - propagate the default to all the options You can

[issue15414] os.path.join behavior on Windows (ntpath.join) is unexpected and not well documented

2012-07-21 Thread R. David Murray
New submission from R. David Murray : In looking at another os.path.join documentation issue I tried the Windows join to see if it matched the docs, and found that it was very unclear. I searched the tracker and found Issue 1669539, which contains much relevant discussion but also much discu

[issue1669539] Improve Windows os.path.join (ntpath.join) "smart" joining

2012-07-21 Thread R. David Murray
R. David Murray added the comment: I've opened a issue 15414 for fixing the documentation for os.path.join on Windows, and possibly existing bugs. So I'm reclassifying this as a feature request, since that is most of what the discussion is about. -- dependencies: +os.path.join behavi

[issue8893] file.{read,readlines} behaviour on Solaris

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is there a test for this we could add? You could certainly add a test to Lib/test/test_file2k.py. -- versions: -Python 2.6 ___ Python tracker __

[issue13824] argparse.FileType opens a file and never closes it

2012-07-21 Thread Steven Bethard
Steven Bethard added the comment: So I generally agree that FileType is not what you want for anything but quick scripts that can afford to either leave a file open or to close stdin and/or stdout. However, quick scripts are an important use case for argparse, so I don't think we should get r

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7f205ce080e by R David Murray in branch '3.2': #14391: clarify docstring discussion of Action's 'type' argument's value. http://hg.python.org/cpython/rev/e7f205ce080e New changeset 3d1ea33611c1 by R David Murray in branch 'default': Merge #14391:

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread R. David Murray
R. David Murray added the comment: I reworded it so that it is clear we are talking about types and not strings. -- nosy: +r.david.murray resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed type: enhancement -> behavior versions: +Python 3.2, Python 3.

[issue15415] Add temp_dir() and change_cwd() to test.support

2012-07-21 Thread Chris Jerdonek
New submission from Chris Jerdonek : This issue is partly in service to issue 15376, which is to refactor test_runpy's walk_package support code into a common location. Currently, the temp_cwd() context manager in test.support does two things: it creates a temp directory, and it changes the cu

[issue15392] Create a unittest framework for IDLE

2012-07-21 Thread R. David Murray
R. David Murray added the comment: The screen flickers a bunch, so something involving my display is certainly happening. As for runtktests...test suites that live in the package as opposed to the test directory require support files to gather the tests to be run. This can be done by the te

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread R. David Murray
R. David Murray added the comment: I wonder if it would be sensible to have test___all__ restore the state of sys.modules after it runs. -- ___ Python tracker ___ _

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I wonder if it would be sensible to have test___all__ restore the > state of sys.modules after it runs. Probably not. I don't think we want to debug the consequences of having duplicate modules lying around by way of old references registered here and there.

[issue10652] test___all_ + test_tcl fails (Windows installed binary)

2012-07-21 Thread R. David Murray
R. David Murray added the comment: Yeah, we probably do not want to go there, even though technically I think those would be bugs. But bugs that it would only be "nice" to fix, not necessary to fix. -- ___ Python tracker

  1   2   >