[issue27135] nested list produced with multiplication is linked to the same list

2016-05-26 Thread Matthew Tanous
Matthew Tanous added the comment: I'm aware that it's how Python works at present. My point was that this is awkward and counter-intuitive, with no purpose I can see worth serving. "That's just how it works" seems to me a rather insufficient answer, especially for such a seemingly trivial chan

[issue7951] Should str.format allow negative indexes when used for __getitem__ access?

2016-05-26 Thread Marco Buttu
Marco Buttu added the comment: The error message is misleading: >>> s = '{names[-1]} loves {0[1]}' >>> s.format(('C', 'Python'), names=('Dennis', 'Guido')) Traceback (most recent call last): ... TypeError: tuple indices must be integers or slices, not str -- nosy: +marco.buttu

[issue25926] problems with "times" keyword in itertools.repeat

2016-05-26 Thread Nofar Schnider
Nofar Schnider added the comment: Attached a diff All occurrences of "equivalent to" are switched to "roughly equivalent to" -- hgrepos: +345 keywords: +patch Added file: http://bugs.python.org/file43026/issue25926.diff ___ Python tracker

[issue25926] problems with "times" keyword in itertools.repeat

2016-05-26 Thread Nofar Schnider
Changes by Nofar Schnider : Removed file: http://bugs.python.org/file43025/itertools.rst ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue27120] xmllib unable to parse in UTF8 format

2016-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mai

[issue27120] xmllib unable to parse in UTF8 format

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue222587. Seems this was the reason why the xmllib module was deprecated. Use the xml package for parsing XML (xml.etree.ElementTree, xml.dom.minidom, xml.sax, etc). -- resolution: -> wont fix ___ Py

[issue25926] problems with "times" keyword in itertools.repeat

2016-05-26 Thread Nofar Schnider
Nofar Schnider added the comment: Issue #25926 Changed all "equivalent to" occurrences to "roughly equivalent to" -- hgrepos: +344 nosy: +Nofar Schnider Added file: http://bugs.python.org/file43025/itertools.rst ___ Python tracker

[issue27135] nested list produced with multiplication is linked to the same list

2016-05-26 Thread Benjamin Peterson
Benjamin Peterson added the comment: That's just how Python works. https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list -- nosy: +benjamin.peterson resolution: -> not a bug status: open -> closed ___ Python tracker

[issue27133] python 3.5.1 will not compile because libffi module uses wrong CFLAGS

2016-05-26 Thread Dennis Clarke
Dennis Clarke added the comment: On 05/26/2016 06:01 PM, Zachary Ware wrote: > > Zachary Ware added the comment: > > Would you be interested in submitting a patch? Right now I am trying to get a clean build of libffi outside of the python tree and then will use the --use-system-libffi option to

[issue27135] nested list produced with multiplication is linked to the same list

2016-05-26 Thread Matthew Tanous
New submission from Matthew Tanous: If I produce a list in this fashion: l = [[x] * n] * n I would expect that I would obtain a matrix-like structure. Instead, I get a list of the *same* list, such that the statement: l[x][y] = z would change, in essence, every value in "column" y. This is

[issue27134] allow str(bytes) raises an exception to be controlled programmatically

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't this a duplicate of issue18373? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Xiang Zhang
Xiang Zhang added the comment: Quick and careless scanning at night lead me to a wrong result, Sorry. > You would need to compress just under 4 GiB of data that requires 5 MB or > more when compressed (i.e. not all the same bytes, or maybe try level=0). With enough memory, compressing with lev

[issue27132] New assert method that checks an error message for a list of strings

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue looks similar to issue24922, and I think it should be closed for same reasons. -- nosy: +berker.peksag, ezio.melotti, michael.foord, rbcollins ___ Python tracker

[issue26834] Add truncated SHA512/224 and SHA512/256

2016-05-26 Thread Martin Panter
Martin Panter added the comment: Would it be appropriate to mention these hashes higher up in the documentation, e.g. where it lists the names of the always-present constructors? I haven’t had a close look at the C code. It looks like you are also adding better multithreading support for SHA-5

[issue27133] python 3.5.1 will not compile because libffi module uses wrong CFLAGS

2016-05-26 Thread Dennis Clarke
Dennis Clarke added the comment: On 05/26/2016 06:01 PM, Zachary Ware wrote: > > Zachary Ware added the comment: > > Would you be interested in submitting a patch? Sure, of course. There are a number of problems in the Makefile(s) for a system not using gcc and where CFLAGS and LD_foo is pretty

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2016-05-26 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg135065 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10276] zlib crc32/adler32 buffer length truncation (64-bit)

2016-05-26 Thread Martin Panter
Changes by Martin Panter : -- Removed message: http://bugs.python.org/msg135066 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2016-05-26 Thread Martin Panter
Martin Panter added the comment: Apparently crc32() was fixed in Python 3 via Issue 10276. See also Issue 27130 about 64-bit support more generally in zlib. -- nosy: +martin.panter ___ Python tracker _

[issue18373] implement sys.get/setbyteswarningflag()

2016-05-26 Thread Daniel Holth
Daniel Holth added the comment: Superceded by http://bugs.python.org/issue27134 , a simpler solution providing a with StrBytesRaises(): context manager. -- ___ Python tracker __

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Martin Panter
Martin Panter added the comment: Sorry Issue 10276 regarding crc32() and adler32() was only fixed for Python 3. Issue 23306 is open about crc32() in Python 2. -- ___ Python tracker

[issue27134] allow str(bytes) raises an exception to be controlled programmatically

2016-05-26 Thread Daniel Holth
New submission from Daniel Holth: When I discovered str(b'bytes') in my Python 3 program was causing errors to be serialized to disk, I was unhappy. It turns out there is a command line option to turn it off, but the vulnerable serialization code is not going to be able to set that argument; o

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Martin Panter
Martin Panter added the comment: This is similar, but different to the other bug. The other bug was only about output limits for incrementally decompressed data. Klamann’s bug is about the actual size of input (and possibly also output) buffers. The gzip.compress() implementation uses zlib.com

[issue27043] Describe what ‘inspect.cleandoc’ does to synopsis line.

2016-05-26 Thread Ben Finney
Ben Finney added the comment: On Fri, May 27, 2016, at 02:58, Nathan Harold wrote: > Here's my shot at a revision (corresponding patch attached): Thanks for that. The only improvement I'd ask for is to more clearly separate the description into two paragraphs: overall description of the effect o

[issue27043] Describe what ‘inspect.cleandoc’ does to synopsis line.

2016-05-26 Thread Martin Panter
Martin Panter added the comment: Patch looks good to me, thanks Nathan -- nosy: +martin.panter stage: -> patch review versions: +Python 3.5 ___ Python tracker ___ __

[issue27132] New assert method that checks an error message for a list of strings

2016-05-26 Thread Martin Panter
Martin Panter added the comment: Maybe a generic superset test would be good enough: def assertSuperset(self, superset, subset): # Expand for friendlier failure handling self.assertTrue(all(e in superset for e in subset)) self.assertSuperset("Error message", ("mess", "or me")) Or is th

[issue25591] refactor imaplib tests

2016-05-26 Thread Maciej Szulik
Maciej Szulik added the comment: David I'm uploading the patch with all the review comments addressed. The changes from just the review can be seen here: https://bitbucket.org/soltysh/cpython/commits/91708e0c6e7c5230bd69b1135b82ef47b6dc4d43?at=default (please ignore the changes to test_loginca

[issue27133] python 3.5.1 will not compile because libffi module uses wrong CFLAGS

2016-05-26 Thread Zachary Ware
Zachary Ware added the comment: Would you be interested in submitting a patch? The whole ctypes package and the bundled libffi in particular are fairly unloved. As a workaround, if you have libffi installed on your system, you can use the '--with-system-ffi' flag to Python's configure script

[issue27133] python 3.5.1 will not compile because libffi module uses wrong CFLAGS

2016-05-26 Thread Dennis Clarke
New submission from Dennis Clarke: While compiling from sources I see in the process : . . . creating build/temp.solaris-2.10-sun4v.64bit-3.5/libffi checking build system type... sparc-sun-solaris2.10 checking host system type... sparc-sun-solaris2.10 checking target system type... sparc-sun-sol

[issue27132] New assert method that checks an error message for a list of strings

2016-05-26 Thread Maciej Szulik
Maciej Szulik added the comment: You could, but then you end up writing nasty regex-es to do that. The idea here is to create a native function that will verify a number of words in whatever order. -- ___ Python tracker

[issue26553] Write HTTP in uppercase

2016-05-26 Thread Nathan Harold
Changes by Nathan Harold : Added file: http://bugs.python.org/file43022/3_fix_2.7.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue27132] New assert method that checks an error message for a list of strings

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can use assertRaisesRegex() for this. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Py

[issue26553] Write HTTP in uppercase

2016-05-26 Thread Nathan Harold
Changes by Nathan Harold : Added file: http://bugs.python.org/file43021/3_fix_3.5.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue26553] Write HTTP in uppercase

2016-05-26 Thread Nathan Harold
Nathan Harold added the comment: The 2_fix* patches were unfortunately slightly broken because an unrelated revision to xmlrpc.client.rst changed one of the lines the patch files were using as an anchor (by adding a period to the end). I've uploaded the 3_fix* series, which addresses this. Th

[issue27132] New assert method that checks an error message for a list of strings

2016-05-26 Thread Maciej Szulik
New submission from Maciej Szulik: To quote David from http://bugs.python.org/review/25591/diff/16398/Lib/test/test_imaplib.py: "I've been thinking I'd like a new assert method that checks an error message for a list of strings in any order, but I haven't opened an issue for it :)" --

[issue27127] Never have GET_ITER not followed by FOR_ITER

2016-05-26 Thread Dino Viehland
Dino Viehland added the comment: I like how this makes the loop opcodes more regular - it should make things like Pyjion (http://www.github.com/Microsoft/Pyjion) which translate bytecode into native code. We already have some code (currently commented out) checking that GET_ITER is followed b

[issue27012] Rename the posix module to _os

2016-05-26 Thread ppperry
Changes by ppperry : -- versions: +Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27131] Unit test random shuffle

2016-05-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Okay, this looks fine. I'll apply it within a few days. -- assignee: -> rhettinger ___ Python tracker ___ _

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Klamann
Klamann added the comment: > But you can only get that feature with Python3.5+. Well, I have Python 3.5.1 installed and the problem still persists. I'm not sure that 25626 ist the same problem - in the comments they say this was not an issue in Python 3.4 or 2.x, but this is clearly the case h

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-26 Thread Steve Dower
Changes by Steve Dower : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-26 Thread Steve Dower
Steve Dower added the comment: One slight change to the patch for 2.7 - has to catch OSError. Just realised that I forgot to mention the reason we shouldn't just let the exception propagate out is that we then never load certificates specified by the SSL_CERT_FILE variable. Handling the except

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 29f163db229e by Steve Dower in branch '3.5': Issue #27114: Fix SSLContext._load_windows_store_certs fails with PermissionError https://hg.python.org/cpython/rev/29f163db229e New changeset eaee5aed6fbc by Steve Dower in branch 'default': Issue #2711

[issue27114] SSLContext._load_windows_store_certs fails with PermissionError

2016-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40f3f2b27112 by Steve Dower in branch '2.7': Issue #27114: Fix SSLContext._load_windows_store_certs fails with PermissionError https://hg.python.org/cpython/rev/40f3f2b27112 -- nosy: +python-dev ___ Pyth

[issue27129] Wordcode, part 2

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch contains the change of Lib/asyncio/coroutines.py. This is the only change in Python code besides the dis module. I can keep f_lasti to be twice the number of instructions, but this will complicate the patch. The simplest way perhaps is to convert t

[issue27129] Wordcode, part 2

2016-05-26 Thread Brett Cannon
Brett Cannon added the comment: So is avoiding changing f_lasti just to minimize breakage of tools? Aren't they going to have to update to support the wordcode changes anyway? -- ___ Python tracker ___

[issue27129] Wordcode, part 2

2016-05-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-26 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27131] Unit test random shuffle

2016-05-26 Thread jonathan.kross
jonathan.kross added the comment: Changed the test to assertCountEqual which will check that all the inputs are present and equal in the output. -- Added file: http://bugs.python.org/file43019/test_random_shuffle.patch ___ Python tracker

[issue1222585] C++ compilation support for distutils

2016-05-26 Thread B. Clausius
Changes by B. Clausius : -- nosy: +barcc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue27043] Describe what ‘inspect.cleandoc’ does to synopsis line.

2016-05-26 Thread Nathan Harold
Nathan Harold added the comment: Here's my shot at a revision (corresponding patch attached): Clean up indentation from docstrings that are indented to line up with blocks of code. All leading whitespace is removed from the first line. Any leading whitespace that can be uniformly remo

[issue21084] IDLE can't deal with characters above the range (U+0000-U+FFFF)

2016-05-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Tk Text (and other widgets, but Text is the main issue) has two display problems: astral chars and long lines (over a thousand chars, say). These problems can manifest in various places: file names, shell input (keyboard or clipboard), shell output, editor in

[issue27131] Unit test random shuffle

2016-05-26 Thread Raymond Hettinger
New submission from Raymond Hettinger: This tests that a specific shuffle result is obtained (which is an implementation specific detail subject to change). An alternate possible test would just check to see that all the inputs are present in the output. -- nosy: +rhettinger

[issue26526] In parsermodule.c, replace over 2KLOC of hand-crafted validation code, with a DFA

2016-05-26 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: I see your message to python-dev, and apologize for taking so long to get to this. I do intend to read through your changes, and hope to be able to make time while I'm at PyCon this coming week. -- ___ Python t

[issue5996] abstract class instantiable when subclassing dict

2016-05-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-26 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. I'll take a look at this during the PyCon sprints. -- stage: needs patch -> patch review ___ Python tracker ___

[issue27131] Unit test random shuffle

2016-05-26 Thread jonathan.kross
Changes by jonathan.kross : -- components: Tests files: test_random_shuffle.patch keywords: patch nosy: jonathan.kross priority: normal severity: normal status: open title: Unit test random shuffle versions: Python 3.6 Added file: http://bugs.python.org/file43017/test_random_shuffle.patc

[issue27126] Apple-supplied libsqlite3 on OS X is not fork safe; can cause crashes

2016-05-26 Thread Evan Jones
Evan Jones added the comment: To be clear: My reproduction scripts crash both Python 2.7.10 and Python 3.5.1 when you: 1. Download the source bundle from python.org. 2. Run ./configure; make 3. Use the built binary (because ./configure picks up the system version of libsqlite.dylib) I did som

[issue27010] email library could "recover" from bad mime boundary like (some?) email clients do

2016-05-26 Thread Andrea De Pasquale
Andrea De Pasquale added the comment: How about the following patch? If it's different from what you had in mind, please let me know. -- keywords: +patch Added file: http://bugs.python.org/file43016/issue27010-notuniqueboundary.patch ___ Python track

[issue26816] Make concurrent.futures.Executor an abc

2016-05-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5996] abstract class instantiable when subclassing dict

2016-05-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +martin.panter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Xiang Zhang
Xiang Zhang added the comment: This behaviour seems to have been fixed in issue25626. But you can only get that feature with Python3.5+. -- nosy: +xiang.zhang ___ Python tracker ___

[issue27130] zlib: OverflowError while trying to compress 2^32 bytes or more

2016-05-26 Thread Klamann
New submission from Klamann: zlib fails to compress files larger than 4gb due to some 32bit issues. I've tested this in Python 3.4.3 and 3.5.1: > python3 -c "import zlib; zlib.compress(b'a' * (2**32 - 1))" > python3 -c "import zlib; zlib.compress(b'a' * (2**32))" Traceback (most recent call las

[issue27129] Wordcode, part 2

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: > Changes f_lasti, tb_lasti etc to count code units instead of bytes. I asked Demur to not break f_lasti. I don't understand if this change breaks applications using f_lasti or not. For example, asyncio/coroutines.py uses: if caller.f_code.co_code[

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: Please focus this issue on documenting changes, and open new issues for further optimizations. -- ___ Python tracker ___ ___

[issue27128] Add _PyObject_FastCall()

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: Updated bench_fast-2.py result with Python compiled with PGO+LTO, with benchmark.py fixed to compute average + standard deviation. Only getattr() really seems slower: --+---+-- Tests

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: Note: My issue #26742 has been marked as a duplicate of this one. I confirm that "./python -Wd -m test -j0 test_warnings" doesn't complain "1 test altered the execution environment: test_warnings" anymore. Thanks for the fix. -- _

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue27129. -- components: -Interpreter Core dependencies: +Wordcode, part 2 stage: patch review -> needs patch ___ Python tracker ___ __

[issue27129] Wordcode, part 2

2016-05-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is the second stage of converting to wordcode (issue26647). Proposed patch makes bytecodecode consisting of code units (16-bit words) instead of bytes. It includes following changes: * Changes meaning of jump offsets. They counts not bytes, but code u

[issue27128] Add _PyObject_FastCall()

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: default-May26-13-36-33.log: CPython benchmark suite run using stable config. Faster (15): - regex_effbot: 1.26x faster - telco: 1.08x faster - unpack_sequence: 1.07x faster - mako_v2: 1.05x faster - meteor_contest: 1.05x faster - chaos: 1.04x faster - nbody: 1.0

[issue27097] ceval: Wordcode follow up, explicit unsigned short read

2016-05-26 Thread Demur Rumed
Demur Rumed added the comment: PREDICT could be optimized by having a HAS_ARG check on the constant op to decide whether we assign oparg = OPARG(word) -- ___ Python tracker ___

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-26 Thread Martin Panter
Martin Panter added the comment: I eliminated initial_len from my final version. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker _

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: Serhiy: please open a new issue for your change. While it's related, it's different enough to deserve its own issue. By the way , please don't include generated importlib .h file in your patches. -- ___ Python tracke

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file43013/wordcode.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file43012/wordcode.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is large patch (not including generated Python/importlib.h and Python/importlib_external.h). -- stage: needs patch -> patch review Added file: http://bugs.python.org/file43012/wordcode.patch ___ Python tracker

[issue27128] Add _PyObject_FastCall()

2016-05-26 Thread STINNER Victor
STINNER Victor added the comment: Quick & dirty microbenchmark: I ran bench_fast-2.py of the issue #26814. It looks like everything is slower :-p In fact, I already noticed this issue and I think that it is fixed with better compilation option: use "./configure --with-lto" and "make profile-op

[issue18383] test_warnings modifies warnings.filters when running with "-W default"

2016-05-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset f57f4e33ba5e by Martin Panter in branch '3.5': Issue #18383: Avoid adding duplicate filters when warnings is reloaded https://hg.python.org/cpython/rev/f57f4e33ba5e New changeset 90bb91be6f3b by Martin Panter in branch 'default': Issue #18383: Merge

[issue27128] Add _PyObject_FastCall()

2016-05-26 Thread STINNER Victor
New submission from STINNER Victor: Since the issue #26814 proved that avoiding the creation of temporary tuples to call Python and C functions makes Python faster (between 2% and 29% depending on the benchmark), I extracted a first "minimal" patch to start merging this work. The first patch

[issue25782] CPython hangs on error __context__ set to the error itself

2016-05-26 Thread Rotem Yaari
Changes by Rotem Yaari : -- nosy: +Rotem Yaari ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue27106] configparser.__all__ is incomplete

2016-05-26 Thread Martin Panter
Martin Panter added the comment: My personal opinion is to include all public APIs. Names that are omitted from __all__ may not come up in pydoc, and it is surprising when I use “import * ” in the interactive interpreter to play with a module and there is something missing. To mitigate the ri

[issue26647] ceval: use Wordcode, 16-bit bytecode

2016-05-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think we should make yet few related changes: * Change meaning of jump offsets. They should count not bytes, but code units (16-bit words). This will extend the range addressed by short commands (from 256 bytes to 256 words) and simplify ceval.c. * Change

[issue27124] binascii.a2b_hex raises binascii.Error and ValueError, not TypeError

2016-05-26 Thread Martin Panter
Martin Panter added the comment: The TypeError → binascii.Error changeover was made in revision eb45f85c4c79, to this function, along with various decoding functions in the base64 module. The base64 documenation was only slowly updated in a series of bug fixes, and it looks like unhexlify() is

[issue27076] Doc and comment spelling fixes

2016-05-26 Thread Martin Panter
Martin Panter added the comment: I pushed all the changes, including the MSI files, except for “heterogeneous”. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___