[issue16329] mimetypes does not support webm type

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: AFAICT, there is currently no entry for WebM in IANA's registry (http://www.iana.org/assignments/media-types/index.html ). A bug in WebM's tracker regarding its MIME type(s) was closed over a year ago as WONTFIX (http://code.google.com/p/webm/issues/detail?id=15

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Mariano Reingart
New submission from Mariano Reingart: I'm opening this ticket to organize patches for a proposal of a GETTEXT-based message translation for exception/tracebacks as described in: http://python.org.ar/pyar/TracebackInternationalizationProposal This requires the patch in issue #16343 Attached

[issue8040] documentation pages should link to other versions of the same page

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a17784f2fee by Georg Brandl in branch '2.6': #8040: port versionswitcher patch to 2.6. http://hg.python.org/cpython/rev/4a17784f2fee -- ___ Python tracker rep...@bugs.python.org

[issue8040] documentation pages should link to other versions of the same page

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset e02d49db3f5b by Georg Brandl in branch '3.2': #8040: fix jQuery incompatibility http://hg.python.org/cpython/rev/e02d49db3f5b -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040

[issue16262] srcdir != builddir builds fail, if hg is not installed

2012-10-28 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: The following syntax is broken: if $PYTHON = not-found; then ... checking for python3.4... python3.4 python3.4: can't open file '=': [Errno 2] No such file or directory checking for a BSD-compatible install... /usr/bin/install -c ... You

[issue8040] documentation pages should link to other versions of the same page

2012-10-28 Thread Georg Brandl
Georg Brandl added the comment: OK, with the latest patch it seems to work fine for me. I've run the autobuild for 2.7/3.3/3.4 and put custom built versions of 2.6/3.2 on dinsdale, so everything should look and work fine. I've also added todo items to PEP 101, in order to make sure the

[issue8040] documentation pages should link to other versions of the same page

2012-10-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks Yury for the work! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list mailing

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Georg Brandl
Georg Brandl added the comment: Has this been discussed on python-dev before? I see that your proposal is in PEP form; it would be a good idea to post it to python-dev since this is not a change that can be done without a PEP. -- nosy: +georg.brandl

[issue16340] Decoding error due to byte-compiling venv scripts at install time

2012-10-28 Thread Konstantin Zemlyak
Changes by Konstantin Zemlyak z...@zartsoft.ru: -- title: Decoding error at install time when byte-compiling venv scripts - Decoding error due to byte-compiling venv scripts at install time ___ Python tracker rep...@bugs.python.org

[issue16239] PEP8 arithmetic operator examples

2012-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! FTR, this is the changeset: http://hg.python.org/peps/rev/16dd63848921 -- stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16239

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: This has been discussed in python-ideas two years ago (I've resurrected the thread there) Sadly I didn't have time for this before, but as in 15 days we have a sprint on cpython at PyCon Argetina 2012, maybe it would be a good idea discuss this again.

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: BTW, I'd write a draft PEP for this (attached), the online version is at http://python.org.ar/pyar/TracebackInternationalizationProposal Just let me know if it has to be uploaded/discussed elsewere -- Added file:

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-28 Thread Armin Rigo
New submission from Armin Rigo: The implementation of dict.fromkeys() assumes that the new dictionary is empty. That's not the case if we tweak __new__. Attached example shows 'dictresize(mp, 0)' being called with 'mp' being dictionary of 10 items. This causes an infinite uninterruptible

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +benjamin.peterson, ezio.melotti stage: - needs patch type: - behavior versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16345

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Per Chris Jerdonek, here's a combined patch that also makes the docs changes comply with the antiquated line length limit. -- Added file: http://bugs.python.org/file27759/issue14570.diff ___ Python tracker

[issue16345] dict.fromkeys() assumes 'self' is empty

2012-10-28 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16345 ___ ___ Python-bugs-list mailing

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Here's a revised patch against the default branch (3.4 I presume?). -- Added file: http://bugs.python.org/file27760/subprocess.rst-default.diff ___ Python tracker rep...@bugs.python.org

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Chris Rebert
Changes by Chris Rebert pyb...@rebertia.com: Removed file: http://bugs.python.org/file27197/subprocess.rst-3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14616 ___

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Just to keep the ball rolling, in case it ends up being the solution ultimately chosen, here is a patch against 2.7 to document pipes.quote(). The text is yanked straight from shlex.quote(), the differences being: - qualify shlex.split() references - print

[issue16346] readline problem

2012-10-28 Thread Mathieu Dutour Sikiric
New submission from Mathieu Dutour Sikiric: Dear all, I tried to install Python 2.7.3 in a home directory for simplicity. On the Ubuntu platform that I had, the readline-dev was not installed. So, I I tried to install the readline package either by pip install readline or python setup.py

[issue16344] Traceback Internationalization Proposal

2012-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: I'm -1 on the idea for the following reasons: * any serious developer is expected to know English, and novice developers should be encouraged to learn it, rather than being confined to a localized environment; * even if the error messages are translated, all

[issue16346] readline problem

2012-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - eric.araujo components: +Distutils, Distutils2 nosy: +alexis, eric.araujo, tarek type: compile error - behavior ___ Python tracker rep...@bugs.python.org

[issue16340] Decoding error due to byte-compiling venv scripts at install time

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 06a5fe86d87c by Vinay Sajip in branch '3.3': Issue #16340: exclude venv/scripts from byte-compilation at installation time on Windows. http://hg.python.org/cpython/rev/06a5fe86d87c New changeset e8619f015ab9 by Vinay Sajip in branch 'default':

[issue16340] Decoding error due to byte-compiling venv scripts at install time

2012-10-28 Thread Vinay Sajip
Vinay Sajip added the comment: I've made the msi.py change. Perhaps I should also catch the exception in the venv script-copying code? Leaving issue open for now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16340

[issue13238] Add shell command helpers to subprocess module

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Even more libraries in this vein: http://plumbum.readthedocs.org/en/latest/ http://amoffat.github.com/sh/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13238

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9d11ca3ccd1 by Andrew Svetlov in branch '3.3': Issue #14616: Mention shlex.quote in subprocess docs. http://hg.python.org/cpython/rev/f9d11ca3ccd1 New changeset 72672cf5d850 by Andrew Svetlov in branch 'default': Merge issue #14616: Mention

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9ca966cd116 by Andrew Svetlov in branch '2.7': Issue #14616: Document pipes.quote and mention this one in subprocess docs. http://hg.python.org/cpython/rev/d9ca966cd116 -- ___ Python tracker

[issue14616] subprocess docs should mention pipes.quote/shlex.quote

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I have applied all patches. Thanks, Chris. -- resolution: - fixed stage: - committed/rejected status: open - closed type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14616

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21fb1767e185 by Mark Dickinson in branch '2.7': Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. http://hg.python.org/cpython/rev/21fb1767e185 --

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Shouldn't this patch be attached to the referenced issue 9769 instead of creating a new issue? Even the issue title is nearly the same: 9769: PyUnicode_FromFormatV() doesn't handle non-ascii text correctly 16343: PyUnicode_FromFormatV() doesn't support utf-8

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 102df748572d by Mark Dickinson in branch '3.2': Issue #14700: Fix buggy overflow checks for large precision and width in new-style and old-style formatting. http://hg.python.org/cpython/rev/102df748572d New changeset 79ea0c84152a by Mark Dickinson

[issue14700] Integer overflow in classic string formatting

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in 2.7 and 3.2; extra tests ported to 3.3 and default. Reclosing. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14700

[issue7098] g formatting for decimal types should always strip trailing zeros.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Closing as invalid. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7098 ___

[issue8613] Decimal module flags undetermined when a signal is trapped.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning. -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8613 ___ ___

[issue16096] Get rid of dangerous integer overflow tricks

2012-10-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16096 ___ ___

[issue2813] No float formatting in PyString_FromFormat

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, I've failed to take this forward. Reclosing as out of date. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2813

[issue16347] configure.ac patch

2012-10-28 Thread Antonio Cavallo
New submission from Antonio Cavallo: I've noticed that linux distros have a set of patch to fix a hardcoded lib in their makefiles: eg. Makefile.pre.in: INCLUDEDIR=¬@includedir@ CONFINCLUDEDIR=¬$(exec_prefix)/include SCRIPTDIR=¬…$(prefix)/lib== HARDCODED This is due to the fact

[issue16347] configure.ac patch

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

[issue16341] In examples, except: should use new syntax

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: +1. Patch for 2.7 is attached. -- keywords: +patch nosy: +asvetlov Added file: http://bugs.python.org/file27763/issue16341.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-28 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +antocuni ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16290 ___ ___ Python-bugs-list

[issue16341] In examples, except: should use new syntax

2012-10-28 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___ ___

[issue16290] PyComplex_AsCComplex should allow __complex__ to return float.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: I've been convinced by the python-dev discussion that Antonio was right: it's complex_new that's in error rather than the cmath functions. Even so, it would be unsafe to change the behaviour in the maintenance releases. Attaching a new patch that disallows

[issue9530] integer undefined behaviors

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: It looks as though all the issues found by John's tool have now been fixed, with the exception of the ctypes issue. There's a separate issue open for that, so I'm closing this issue as fixed. -- resolution: - fixed status: open - closed

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Unassigning, since I don't plan to work on this any time soon. -- assignee: mark.dickinson - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9742 ___

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: FWIW, Solaris 9 has EOL status: http://www.oracle.com/technetwork/server-storage/solaris10/overview/index-138972.html I suspect we might as well close this issue, since the motivation to work on it will be pretty low in general. --

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Trent Nelson
Changes by Trent Nelson tr...@snakebite.org: -- nosy: +trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9742 ___ ___ Python-bugs-list mailing

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40aedc7da30f by Andrew Svetlov in branch '3.2': Issue #14570: Document json sort_keys parameter properly. http://hg.python.org/cpython/rev/40aedc7da30f New changeset 090484ccba7d by Andrew Svetlov in branch '3.3': Merge issue #14570: Document json

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Thanks, Chris! I have pushed the patch for 3.2-3.4 It cannot be applied to 2.7, please make separate patch for this version. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks, Stefan. Closing. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9742 ___

[issue16298] httplib.HTTPResponse.read could potentially leave the socket opened forever

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Please publish patch for the issue. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16298 ___

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Trent Nelson
Trent Nelson added the comment: Snakebite's got a Solaris 9 SPARC instance up and running. It's available via the s9 alias. Regarding EOL, this indicates October 2014 for 9: http://en.wikipedia.org/wiki/Solaris_(operating_system)#Version_history If it's as simple as suggested, I don't mind

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-28 Thread Mark Dickinson
New submission from Mark Dickinson: The documentation for Decimal.remainder_near is incorrect. It states: If both are equally close, the one chosen will have the same sign as self. That's incorrect: instead, the chosen remainder has the property that it makes the corresponding quotient even

[issue16308] Undocumented (?) behaviour change in argparse from 3.2.3 to 3.3.0

2012-10-28 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16308 ___ ___

[issue16310] zipfile: allow surrogates in filenames

2012-10-28 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16310 ___ ___

[issue16340] Decoding error due to byte-compiling venv scripts at install time

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset adefc83c1128 by Vinay Sajip in branch '3.3': Closes #16340: Handle exception while copying script to venv. http://hg.python.org/cpython/rev/adefc83c1128 New changeset fb969187ecc2 by Vinay Sajip in branch 'default': Closes #16340: Merged fix from

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Chris Rebert
Chris Rebert added the comment: Patch for 2.7. This assumes that changing the parameter notation is permissible. -- Added file: http://bugs.python.org/file27765/issue14570-2.7.diff ___ Python tracker rep...@bugs.python.org

[issue16349] Document whether it's safe to use bytes for struct format string

2012-10-28 Thread Thomas Kluyver
New submission from Thomas Kluyver: At least in CPython, format strings can be given as bytes, as an alternative to str. E.g. struct.unpack(b'hhl', b'\x00\x01\x00\x02\x00\x00\x00\x03') (1, 2, 3) Looking at the source code [1], this appears to be consciously accounted for. But it doesn't

[issue16348] Decimal.remainder_near documentation incorrect.

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: Here's a doc patch. -- keywords: +patch Added file: http://bugs.python.org/file27766/issue16348.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16348

[issue9742] Python 2.7: math module fails to build on Solaris 9

2012-10-28 Thread Stefan Krah
Stefan Krah added the comment: Right, they distinguish between EOL and Extended Support Phase: http://www.oracle.com/technetwork/server-storage/solaris10/overview/general-137378.html -- ___ Python tracker rep...@bugs.python.org

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7784008e9ade by Andrew Svetlov in branch '2.7': Issue #14570: Document json sort_keys parameter properly. http://hg.python.org/cpython/rev/7784008e9ade -- ___ Python tracker rep...@bugs.python.org

[issue14570] Document json sort_keys parameter properly

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed, thanks again! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14570

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset e59e274551e0 by Hynek Schlawack in branch 'default': #1492704: Ensure and document backward compatibility of the change http://hg.python.org/cpython/rev/e59e274551e0 -- ___ Python tracker

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-28 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___

[issue16309] PYTHONPATH= different from no PYTHONPATH at all

2012-10-28 Thread Andrew Svetlov
Andrew Svetlov added the comment: I would to see some unittest if possible. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16309 ___ ___

[issue16316] Support xz compression in mimetypes module

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a3ba5fe9bfd3 by Nadeem Vawda in branch 'default': Issue #16316: mimetypes now recognizes the .xz and .txz (.tar.xz) extensions. http://hg.python.org/cpython/rev/a3ba5fe9bfd3 -- nosy: +python-dev ___

[issue16316] Support xz compression in mimetypes module

2012-10-28 Thread Nadeem Vawda
Changes by Nadeem Vawda nadeem.va...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16316 ___

[issue16326] distutils build_ext fails to set library_dirs in 2.7.2 on Linux

2012-10-28 Thread Andy Salnikov
Andy Salnikov added the comment: I never submitted any patch to Python, but unless somebody more experienced wants to contribute I can try. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16326

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: Just to double-check I didn't screw up, I ran ``make distclean; ./configure; make -j8`` and the problem persists. It is *only* files compiled through setup.py and not by the Makefile. I do not have OPT set, but I do have CFLAGS defined. But even if I explicitly

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: I managed to fix it, but I did such a large swath of fixes that I need a little time to narrow down what did it. Report back later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16342

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset a2b7a3e1ce66 by Brett Cannon in branch '3.3': Issue #16342: Lib/_sysconfigdata.py is no longer put into Lib, so http://hg.python.org/cpython/rev/a2b7a3e1ce66 -- nosy: +python-dev ___ Python tracker

[issue16342] setup.py not compiling with NDEBUG in non-debug builds

2012-10-28 Thread Brett Cannon
Brett Cannon added the comment: Well that was extremely frustrating to find out. Turns out a copy of Lib/_sysconfigdata.py was lingering in my checkout and .hgignore was hiding that fact from me. Fixed .hgignore, deleted the wayward file, and everything is now fine. -- resolution: -

[issue16329] mimetypes does not support webm type

2012-10-28 Thread R. David Murray
R. David Murray added the comment: Interesting. So we have two choices: leave it to the platform mime types file to define because it is not even on track to be an official IANA standard, or include it with a comment that it is a de-facto standard. The question, I guess, is how fluid the

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Nadeem Vawda
New submission from Nadeem Vawda: From issue 5210: amaury.forgeotdarc wrote: Hm, I tried a modified version of your first test, and I found another problem with the current zlib library; starting with the input: x = x1 + x2 + HAMLET_SCENE# both compressed and uncompressed data The

[issue5210] zlib does not indicate end of compressed stream properly

2012-10-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: This bug (zlib not providing a way to detect end-of-stream) has already been fixed - see issue 12646. I've opened issue 16350 for the unused_data problem. -- resolution: - out of date stage: test needed - committed/rejected status: open - closed

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, accumulating the data will be backward-compatible. But what if add a special flag for zlib.decompress, which makes bz2 and lzma compatible decoder? I.e.: 1) unconsumed_tail is always empty (the unconsumed data accumulated in internal buffer, no need

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Nadeem Vawda
Nadeem Vawda added the comment: Interesting idea, but I'm not sure it would be worth the effort. It would make the code and API more complicated, so it wouldn't really help users, and would be an added maintenance burden. -- ___ Python tracker

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
New submission from Antoine Pitrou: This patch adds a function named gc.get_stats() which returns a list of dictionaries containing per-generation statistics: import pprint, gc pprint.pprint(gc.get_stats()) [{'collected': 0, 'collections': 12, 'uncollectable': 0}, {'collected': 0,

[issue5476] datetime: timedelta(minutes = i) silently fails with numpy.int32 input

2012-10-28 Thread Mark Dickinson
Mark Dickinson added the comment: I created http://projects.scipy.org/numpy/ticket/2235 to track this. Closing this issue. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5476

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Christian Heimes
Christian Heimes added the comment: What are the possible performance implications of the statistics? -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16351 ___

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: You mean negative implications? None :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16351 ___ ___

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch for your suggestion. -- keywords: +patch Added file: http://bugs.python.org/file27769/zlib_accum_unused_data.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16350

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16350 ___ ___

[issue16350] zlib.Decompress.decompress() after EOF discards existing value of unused_data

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually the current code contains a bug. If memory allocation for unused_data fails then unused_data will become NULL and using this properties can crash. The patch fixes this. -- ___ Python tracker

[issue16323] Wrong C API documentation for locale encoding

2012-10-28 Thread Berker Peksag
Berker Peksag added the comment: Hum, this is not correct. There are three valid values: - NULL: strict - strict: strict - surrogateescape: use PEP 383 Thanks for the correction, Victor. Here's the updated patch. -- Added file:

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Why dictionaries and not struct sequences? -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16351 ___

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I understand. GC callbacks receive a dict. For avoid confusion with gc.DEBUG_STATS and to conform with callbacks argument name, may be better to name this function as gc.get_infos([generation])? -- ___ Python

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I.e. gc.get_info([generation]). Returns the info for specified generation or total if the parameter omitted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16351

[issue16351] Add a function to get GC statistics

2012-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why dictionaries and not struct sequences? Because it's much simpler like that. For avoid confusion with gc.DEBUG_STATS and to conform with callbacks argument name, may be better to name this function as gc.get_infos([generation])? Well, this is really

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-28 Thread Vinay Sajip
Vinay Sajip added the comment: Is there any common use case other than logging? For example, logging could be covered by an additional command-line argument for unittest.main(), e.g. --logconfig /path/to/logging-config.json which would cause unittest.main() to load the JSON in the specified

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: I thought #9769 was closed (in fact, that patch was already applied). Now, PyUnicode_FromFormatV() doesn't handle non-ascii text at all. Maybe I misread the part telling to open a new issue in the comments, sorry for that. --

[issue16343] PyUnicode_FromFormatV() doesn't support utf-8 text

2012-10-28 Thread Chris Jerdonek
Chris Jerdonek added the comment: Issue 9769 is still open. It looks like there was some disagreement in the comments between Alexander and Victor as to whether a new issue should be created (since Victor had a different idea when first opening the issue), but it looks like Victor deferred

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2012-10-28 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9769 ___

[issue1492704] distinct error type if shutil.copyfile() fails because of src and dst are the same file

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704 ___ ___ Python-bugs-list mailing list

[issue16341] In examples, except: should use new syntax

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: I’m of two minds about this. On one hand this syntax avoids silent bugs and is compatible with 3.x, on the other hand if people use the 2.7 docs and use Python 2.4 or 2.5 the examples won’t work. Raymond, what’s your opinion? -- nosy: +eric.araujo,

[issue16239] PEP8 arithmetic operator examples

2012-10-28 Thread Éric Araujo
Éric Araujo added the comment: One idiom is not covered by the examples: value = seq[something+1] IMO it feels weird to put spaces in an index/slice notation. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue16239] PEP8 arithmetic operator examples

2012-10-28 Thread Guido van Rossum
Guido van Rossum added the comment: That example doesn't feel strong enough to me to include in the style guide. I am fine with leaving that up to the individual contributor to decide. -- ___ Python tracker rep...@bugs.python.org

[issue16341] In examples, except: should use new syntax

2012-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: The patch LGTM, and there are only 21 changes. -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16341 ___

[issue8745] zipimport is a bit slow

2012-10-28 Thread Catalin Iacob
Changes by Catalin Iacob iacobcata...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8745 ___ ___

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-10-28 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: @Vinay I don't see other use cases but maybe guys behind py.test, where there is such a feature could come up with other use cases. The solution with passing config dict in a new command line parameter seems to be enough as long as logging is concerned.

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2012-10-28 Thread Mariano Reingart
Mariano Reingart added the comment: (moved from issue #16343) Working in an internationalization proposal http://python.org.ar/pyar/TracebackInternationalizationProposal (issue #16344) I've stopped at this problem (#9769) where multi byte encodings (like utf-8) is not supported by

  1   2   >