[issue14579] CVE-2012-2135: Vulnerability in the utf-16 decoder after error handling

2012-07-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: There are spurious print() calls in the 2.7 patch. Oh, my inattentiveness. Thank you for pushing, Antoine. And thank Martin for review. -- ___ Python tracker rep...@bugs.python.org

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

2012-07-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com added the comment: Hmm. Without the ability to reproduce this effect, it will be difficult for me to get rid of him. What times for StringIO, append/join, unpatched BytesIO? Do this happen with a little different numbers (n=1500, 1600,...,3000)?

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

2012-07-21 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto ishim...@gembook.org: 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

[issue13837] test_shutil fails with symlinks enabled under Windows

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org added the comment: Error in test_copymode_follow_symlinks is adderessed in #15411. -- nosy: +ishimoto ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13837

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Thank you for this patch. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14998

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Richard Oudkerk
New submission from Richard Oudkerk shibt...@gmail.com: 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

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

2012-07-21 Thread Atsuo Ishimoto
Atsuo Ishimoto ishim...@gembook.org 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 rep...@bugs.python.org

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

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

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

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

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2919 ___ ___ Python-bugs-list

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: I just broke tests :( -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14998 ___

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

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Richard Oudkerk
Richard Oudkerk shibt...@gmail.com 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

[issue15412] Note in documentation for weakrefs

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue14998] pprint._safe_key is not always safe enough

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Test test_pprint fixed with changesets 29642f82bbcc and 79d44f4920d9. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14998

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

2012-07-21 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org 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

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: Removed file: http://bugs.python.org/file18445/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7214 ___

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

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: does it require action in 3.3, where the C implementation is active by default? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7214

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +eli.bendersky versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7214 ___

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

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 florent.xicl...@gmail.com 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 florent.xicl...@gmail.com: -- versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8273 ___

[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 florent.xicl...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5504 ___ ___

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue9566] Compilation warnings under x64 Windows

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 ___

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

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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

[issue9772] test_pep277 failure on AMD64 debian parallel buildbot

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 rep...@bugs.python.org

[issue1610654] cgi.py multipart/form-data

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 n...@acm.org 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: -

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9771 ___

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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:

[issue3783] dbm.sqlite proof of concept

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

[issue1610654] cgi.py multipart/form-data

2012-07-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1610654 ___ ___ Python-bugs-list

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: effbot - components: +XML versions: +Python 3.4 -Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5166

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- assignee: effbot - nosy: +eli.bendersky stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7990 ___

[issue6625] UnicodeEncodeError on pydoc's CLI

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6625 ___

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 florent.xicl...@gmail.com: -- nosy: +eli.bendersky versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12323 ___

[issue12322] ElementPath 1.3 expressions documentation

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- keywords: +easy nosy: +eli.bendersky versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12322 ___

[issue12321] documentation of ElementTree.find

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12321 ___ ___

[issue1573931] WSGI, cgi.FieldStorage incompatibility

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +orsenthil versions: +Python 3.3 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1573931 ___

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12411 ___ ___

[issue15147] Remove packaging from the stdlib

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Eric, ping? When can this be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15147 ___

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

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue14578

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

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Documentation issue, can be resolved after b2. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15037

[issue15295] Document PEP 420 namespace packages

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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 rep...@bugs.python.org

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Damn, I don't have clang on this machine. Will install and test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15184 ___

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue15298

[issue14814] Implement PEP 3144 (the ipaddress module)

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: IIUC only docs are missing now? That's not a b2 blocker then. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14814

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

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Docs issues won't block b2. -- priority: release blocker - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15151 ___

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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 florent.xicl...@gmail.com 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 florent.xicl...@gmail.com added the comment: The behavior seems acceptable in 2.7 too. int('\0') Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for int() with base 10: '' int('\01') Traceback (most recent call last): File

[issue4221] inconsistent exception from int is confusing

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Proposed as won't fix for the 2.x series. -- resolution: - wont fix stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, test passes here now with clang installed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15184 ___

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread koobs
koobs koobs.free...@gmail.com 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

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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. --

[issue9708] cElementTree iterparse does not support parser argument

2012-07-21 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com 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 rep...@bugs.python.org

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

2012-07-21 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13612 ___ ___

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

2012-07-21 Thread Serhiy Storchaka
Serhiy Storchaka storch...@gmail.com 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

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

2012-07-21 Thread Brian Curtin
Brian Curtin br...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue14578

[issue15413] os.times() disappeared under Windows

2012-07-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

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

2012-07-21 Thread koobs
koobs koobs.free...@gmail.com 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

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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 -- ___

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

2012-07-21 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com 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 rep...@bugs.python.org

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

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

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

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue15184] Test failure in test_sysconfig_module

2012-07-21 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue15342] os.path.join behavior

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue15342] os.path.join behavior

2012-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

[issue13922] argparse handling multiple -- in args improperly

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: This patch looks like the right fix to me. The tests look good too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13922 ___

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

2012-07-21 Thread Piotr Dobrogost
Piotr Dobrogost p...@bugs.python.dobrogost.net 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

[issue15295] Document PEP 420 namespace packages

2012-07-21 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org 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

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

2012-07-21 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

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

2012-07-21 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue10652

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

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2012-07-21 Thread Piotr Dobrogost
Piotr Dobrogost p...@bugs.python.dobrogost.net 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 ___

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2012-07-21 Thread Piotr Dobrogost
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +piotr.dobrogost ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10854 ___ ___

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

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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 =

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

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

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

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

2012-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

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

2012-07-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org http://bugs.python.org/issue8893

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

2012-07-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com 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

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za 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

[issue14391] misc TYPO in argparse.Action docstring

2012-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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:

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

2012-07-21 Thread Chris Jerdonek
New submission from Chris Jerdonek chris.jerdo...@gmail.com: 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

[issue15392] Create a unittest framework for IDLE

2012-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2012-07-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org http://bugs.python.org/issue10652

  1   2   >