[issue27744] Add AF_ALG (Linux Kernel crypto) to socket module

2017-02-02 Thread Christian H
Changes by Christian H : -- nosy: +Christian H ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29412] IndexError thrown on email.message.Message.get

2017-02-02 Thread Xiang Zhang
Xiang Zhang added the comment: This seems not related to #27931. The problem is that the receiver's content is only CFWS. It's just like it's empty and for the default policy, it checks `value[0] == '"'` in `get_word`. -- nosy: +xiang.zhang ___ Pyth

[issue29428] Doctest documentation unclear about multi-line fixtures

2017-02-02 Thread Jim DeLaHunt
New submission from Jim DeLaHunt: I just had a problem with doctests. It manifested as an error that occurred when I did >>> import StringIO in my doctest. After some investigation, I realised that my actual problem was that the doctest library documentation https://docs.python.org/3/library/

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-02 Thread spencera
spencera added the comment: Interesting. So, out of curiosity, what has changed from 3.5.2 to 3.6.0 that causes this new behavior? Was an instance associated with an instance method that was passed to submit not implicitly pickled before 3.6.0? Is it from the changes to the pickle module in 3.

[issue18842] Add float.is_finite is_nan is_infinite to match Decimal methods

2017-02-02 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Martin, I reviewed the patch (rm-finite.patch) and ran the tests. The patch no longer applies cleanly to the default branch, but otherwise looks good. Assigning this back to you as per Raymond's suggestion. Thanks :) -- assignee: Mariatta -> martin

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-02 Thread Josh Rosenberg
Josh Rosenberg added the comment: Looks like the problem here is that pickling self._consume implicitly pickles self, and after the first submission, self._futures contains Future objects. Those are probably what have the RLock in them (to synchronize between reading and populating threads), a

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7dc69b8956ad223ff6c239299896dd5195ce430 by Vinay Sajip in branch 'master': Fixes #29213: regularised EOLs of venv scripts. https://github.com/python/cpython/commit/a7dc69b8956ad223ff6c239299896dd5195ce430 New changeset 1b105fac40b341980b290729a7e

[issue28972] Document all "python -m" utilities

2017-02-02 Thread Eric Lafontaine
Eric Lafontaine added the comment: Hi, I've just watched the old David Beazley video about the packaging system in python and got me thinking about this issue. I'm throwing the idea, please critize it! If we were to make a "hook" for the .rst files of the modules to go and scan the __main__.

[issue29426] Using pywin32 on Python3 on linux

2017-02-02 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this as a third-party issue that's unrelated to the development of CPython. PyWin32 is a package of extension modules for accessing Windows C and COM APIs in Windows Python. You can't install it in Linux Python. You should be able to access SQL Server o

[issue29427] Option to skip padding for base64 urlsafe encoding/decoding

2017-02-02 Thread Brian Thorne
New submission from Brian Thorne: Suggest changing base64 module to better handle encoding schemes that don't use padding. Because RFC4648 [1] allows other RFCs that implement RFC4648-compliant base64url encoding to explicitly stipulate that there is no padding. Dropping the padding is lossle

[issue29426] Using pywin32 on Python3 on linux

2017-02-02 Thread Mark Tischler
New submission from Mark Tischler: I downloaded pywin32 build 220 from https://sourceforge.net/projects/pywin32/files/pywin32/, and tried to install it using 'python3 setup.py install' as well as 'python3 pywin32_postinstall.py -install' ("python3" = python 3.6.0), and the former gave me a syn

[issue29425] File-altering aspects of pathlib should return new pathlib objects

2017-02-02 Thread Walter Szeliga
New submission from Walter Szeliga: Methods on pathlib.PosixPath() and other objects that alter files on the file system should return new object instances with new information. For example, if there exists a file on the system called 'bar', then bar_var = pathlib.PosixPath('bar') bar_var.rena

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: cache_struct-2.patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-02-02 Thread INADA Naoki
Changes by INADA Naoki : -- dependencies: -Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48bde5d2cc5b9e98f55cd23ee57f3996d81caeb5 by INADA Naoki in branch 'master': Issue #29263: LOAD_METHOD support for C methods https://github.com/python/cpython/commit/48bde5d2cc5b9e98f55cd23ee57f3996d81caeb5 --

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 135a9a0c09f9 by INADA Naoki in branch 'default': Issue #29263: LOAD_METHOD support for C methods https://hg.python.org/cpython/rev/135a9a0c09f9 -- ___ Python tracker _

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-02 Thread R. David Murray
R. David Murray added the comment: Oops, didn't mean to assign this to terry :( -- assignee: terry.reedy -> ___ Python tracker ___ __

[issue22385] Define a binary output formatting mini-language for *.hex()

2017-02-02 Thread Christian H
Changes by Christian H : -- nosy: +Christian H ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue29107] traceback module incorrectly formats args-less syntax errors

2017-02-02 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue2771] Test issue

2017-02-02 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: -> resolved status: -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue2771] Test issue

2017-02-02 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: fixed -> stage: resolved -> status: closed -> ___ Python tracker ___ ___ Python-bugs-list

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-02 Thread R. David Murray
R. David Murray added the comment: The fact that RLock's *appeared* to be picklable was a bug in previous versions of python (see issue 22995). If you had code that worked before actually using the locks then perhaps there is a deeper error, though, so I'm nosying Serhiy to take a look at this

[issue29424] Multiple vulnerabilities in BaseHTTPRequestHandler enable HTTP response splitting attacks

2017-02-02 Thread Meitar Moscovitz
Meitar Moscovitz added the comment: A separate patch for Python 2.7+ that handles the issue described in the same way as the 3.4+ patch. -- Added file: http://bugs.python.org/file46498/python-2.7.13.patch ___ Python tracker

[issue29424] Multiple vulnerabilities in BaseHTTPRequestHandler enable HTTP response splitting attacks

2017-02-02 Thread Meitar Moscovitz
New submission from Meitar Moscovitz: SUMMARY: In the Python standard library, the BaseHTTPRequestHandler class’s send_header() method[0] does not correctly construct HTTP/1.1 message headers as described by Section 4.2 of RFC 2616[1] when it is given maliciously-crafted input, leaving applic

[issue2771] Test issue

2017-02-02 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue29339] Interactive: Move to same indentation level as previousline

2017-02-02 Thread 12345 67890
12345 67890 added the comment: The user is going to have to outdent anyway if we return them to the previous indentation level. Essentially it would be this: [ENTER] set_cursor_to_previous_indentation_level() if first_char_in_is_space: erase_first_char_in() reset_cursor_to_zero_inden

[issue29423] using concurrent.futures.ProcessPoolExecutor in class giving 'TypeError: can't pickle _thread.RLock objects' in 3.6, but not 3.5

2017-02-02 Thread spencera
New submission from spencera: I'm unable to use concurrent.futures.ProcessPoolExecutor within a class in 3.6 the way I can in 3.5.x. I get the following in 3.6 (python3.6 test.py): Traceback (most recent call last): File "/usr/local/lib/python3.6/multiprocessing/queues.py", line 241, in _feed

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fca720360f87f6dd2cd2030f7f98f689809c45d9 by Vinay Sajip in branch '3.5': Fixes #24875: pip can now be installed in a venv with --system-site-packages. https://github.com/python/cpython/commit/fca720360f87f6dd2cd2030f7f98f689809c45d9 -- _

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7dc69b8956ad223ff6c239299896dd5195ce430 by Vinay Sajip in branch '3.6': Fixes #29213: regularised EOLs of venv scripts. https://github.com/python/cpython/commit/a7dc69b8956ad223ff6c239299896dd5195ce430 New changeset 1b105fac40b341980b290729a7ed40

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a7dc69b8956ad223ff6c239299896dd5195ce430 by Vinay Sajip in branch '3.5': Fixes #29213: regularised EOLs of venv scripts. https://github.com/python/cpython/commit/a7dc69b8956ad223ff6c239299896dd5195ce430 -- ___

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fca720360f87f6dd2cd2030f7f98f689809c45d9 by Vinay Sajip in branch '3.6': Fixes #24875: pip can now be installed in a venv with --system-site-packages. https://github.com/python/cpython/commit/fca720360f87f6dd2cd2030f7f98f689809c45d9 New changeset

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 12b49507177368204085bd6e2b464f45e3b569e2 by Mark Dickinson in branch '2.7': Issue #14376: sys.exit now accepts longs as well as ints. Thanks Gareth Rees. https://github.com/python/cpython/commit/12b49507177368204085bd6e2b464f45e3b569e2 --

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset fca720360f87f6dd2cd2030f7f98f689809c45d9 by Vinay Sajip in branch 'master': Fixes #24875: pip can now be installed in a venv with --system-site-packages. https://github.com/python/cpython/commit/fca720360f87f6dd2cd2030f7f98f689809c45d9 New changes

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset ef0264af4d1a1844c2feb32714870d636e583b3a by Vinay Sajip in branch 'master': Closes #29213: Merged fix from 3.6. https://github.com/python/cpython/commit/ef0264af4d1a1844c2feb32714870d636e583b3a -- ___

[issue20185] Derby #17: Convert 49 sites to Argument Clinic across 13 files

2017-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch for the gc module is synchronized with current sources and addresses Martin's comments. The only problem with this patch is that it exposes the default value for gc.collect() argument as constant 2 in Python instead of actual NUM_GENERATIONS-1

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Gareth Rees
Gareth Rees added the comment: Thank you, Mark (and everyone else who helped). -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset c23224ebc9e5 by Vinay Sajip in branch 'default': Closes #29213: Merged fix from 3.6. https://hg.python.org/cpython/rev/c23224ebc9e5 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson resolution: -> fixed stage: test needed -> resolved status: open -> closed ___ Python tracker ___ ___

[issue14376] sys.exit documents argument as "integer" but actually requires "subtype of int"

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 14682d00b09a by Mark Dickinson in branch '2.7': Issue #14376: sys.exit now accepts longs as well as ints. Thanks Gareth Rees. https://hg.python.org/cpython/rev/14682d00b09a -- nosy: +python-dev ___ Python

[issue29213] python -m venv activate.bat has weird mix of line endings

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b9e5cbdb0b1 by Vinay Sajip in branch '3.5': Fixes #29213: regularised EOLs of venv scripts. https://hg.python.org/cpython/rev/2b9e5cbdb0b1 New changeset 0f3ebeb389fe by Vinay Sajip in branch '3.6': Fixes #29213: merged fix from 3.5. https://hg.pyth

[issue24875] pyvenv doesn´t install PIP inside a new venv with --system-site-package

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1bf1d36463b4 by Vinay Sajip in branch '3.5': Fixes #24875: pip can now be installed in a venv with --system-site-packages. https://hg.python.org/cpython/rev/1bf1d36463b4 New changeset 7d4701b4210f by Vinay Sajip in branch '3.6': Fixes #24875: Merged

[issue28749] Fixed the documentation of the mapping codec APIs

2017-02-02 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: docs@python -> serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue29347] Python 2.7.8 is crashing while creating weakref for a given object.

2017-02-02 Thread Saida Dhanavath
Changes by Saida Dhanavath : -- versions: +Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker ___ ___ Pytho

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-02-02 Thread jan matejek
jan matejek added the comment: the attached patch fixes the test for me -- keywords: +patch Added file: http://bugs.python.org/file46494/test_socket_aead_kernel49.patch ___ Python tracker __

[issue29404] "TypeError: 'int' does not have the buffer interface" on memoryview over bytearray

2017-02-02 Thread Brett Cannon
Brett Cannon added the comment: As Serhiy and Stefan pointed out, it's too late to change Python 2.7 semantics. Closing as "not a bug". -- resolution: -> not a bug status: open -> closed ___ Python tracker __

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: loadmethod-methoddescr-2.patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue29324] test_aead_aes_gcm fails on Kernel 4.9

2017-02-02 Thread jan matejek
jan matejek added the comment: The "'0' * taglen" part is now considered part of plaintext. Which makes a lot of sense :) Removing the "empty taglen" fixes the encryption part of the tests for me. Similarly, for the decryption test, we must only read and check the message without the tag. --

[issue29422] add socket independent timeout to httplib/http.client read

2017-02-02 Thread Patrick Michaud
New submission from Patrick Michaud: Using python's httplib, there is no way to set a timeout for the full request cycle. A timeout can be given, which will apply to the connection attempt and each blocking socket operation. However, a malicious (or poorly performing) server can keep a conne

[issue29263] Implement LOAD_METHOD/CALL_METHOD for C functions

2017-02-02 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file46493/loadmethod-methoddescr-2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue29079] pathlib.resolve() causes infinite loop on Windows

2017-02-02 Thread Steve Dower
Steve Dower added the comment: At the point this code is running, it doesn't matter. The path doesn't exist, so trimming irrelevant segments from it will just cause a few extra iterations through resolve until we clear out enough of the absent segments to find something that does exist. abspa

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: 3 empty notifications from Roundup Robot :-/ -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29420] Python 3.6 change in dict iteration when inserting keys

2017-02-02 Thread Matthew Brett
Matthew Brett added the comment: To clarify from comments on issue 19332: """ * The normal rule (not just for Python) is that a data structures have undefined behavior for mutating while iterating, unless there is a specific guarantee """ The change in Python 3.6 is just a different undefined

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset f0c1bbce09dc21d82965f1706b30b69e285ca4d3 by Serhiy Storchaka in branch 'master': Issue #29421: Make int.to_bytes() and int.from_bytes() slightly faster https://github.com/python/cpython/commit/f0c1bbce09dc21d82965f1706b30b69e285ca4d3 --

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-02 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I tried this optimization few years ago. But with slow PyArg_ParseTupleAndKeywords() the effect was smaller and without _PyUnicode_EqualToASCIIId() the code was more cumbersome. -- resolution: -> fixed stage: patch review -> resolved status: open ->

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52c5a7c6 by Serhiy Storchaka in branch 'default': Issue #29421: Make int.to_bytes() and int.from_bytes() slightly faster https://hg.python.org/cpython/rev/52c5a7c6 -- nosy: +python-dev ___ Python

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka: "Dear Roundup Robot, please don't close issues." For what it's worth, I reported issues of this robot to python-dev: https://mail.python.org/pipermail/python-dev/2017-February/147317.html https://mail.python.org/pipermail/python-dev/2017-Febr

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Dear Roundup Robot, please don't close issues. -- resolution: fixed -> stage: resolved -> patch review status: closed -> open Added file: http://bugs.python.org/file46492/cache_struct-2.patch ___ Python tracker

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: Ah yes, I began with the exact same change when I experimented optimizing to_bytes(): http://bugs.python.org/issue29300#msg286781 I was going to suggest you the same, but the speedup was low compared to the cost of parsing arguments. Anyway, int-to_bytes-from

[issue29420] Python 3.6 change in dict iteration when inserting keys

2017-02-02 Thread R. David Murray
R. David Murray added the comment: This "bug" has always existed, its just that its manifestation has changed. See issue 19332 for background. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Guard against changing dict durin

[issue29421] Make int.to_bytes() and int.from_bytes() slightly faster

2017-02-02 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch makes int.to_bytes() and int.from_bytes() slightly faster. $ ./python -m perf timeit '1 .to_bytes(4, "little")' --compare-to "`pwd`/python0" Median +- std dev: [python0] 1.28 us +- 0.07 us -> [python] 1.17 us +- 0.07 us: 1.09x faster (-8%)

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread STINNER Victor
STINNER Victor added the comment: Stefan Krah: "PyBUF_SIMPLE implies C-contiguous for a conforming buffer provider." Oh ok, thanks for the confirmation. So my change didn't add new checks and my commit message is wrong :-) Only non-conforming objects are impacted, but in such case, it's more

[issue29420] Python 3.6 change in dict iteration when inserting keys

2017-02-02 Thread Matthew Brett
New submission from Matthew Brett: The behavior of dict iteration has changed in Python 3.6, in that inserting keys during iteration has a different and unpredictable affect. For this code: d = {'foo': 1} for key in d: print(key) d.pop(key) d[key] = 1 Python 3.5 prints a single 'foo'

[issue29404] "TypeError: 'int' does not have the buffer interface" on memoryview over bytearray

2017-02-02 Thread Stefan Krah
Stefan Krah added the comment: I agree it's too late to change 2.7, and 3.x cannot (and should not) be changed at this stage. -- ___ Python tracker ___ _

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Stefan Krah
Stefan Krah added the comment: PyBUF_SIMPLE implies C-contiguous for a conforming buffer provider. -- nosy: +skrah ___ Python tracker ___

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a88eb4fa9e7fdf1a1050786223044c6bb7949784 by Victor Stinner in branch '3.6': Issue #29300: test_struct tests unpack_from() with keywords https://github.com/python/cpython/commit/a88eb4fa9e7fdf1a1050786223044c6bb7949784 --

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/pytho

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : -- resolution: -> fixed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a88eb4fa9e7fdf1a1050786223044c6bb7949784 by Victor Stinner in branch '3.5': Issue #29300: test_struct tests unpack_from() with keywords https://github.com/python/cpython/commit/a88eb4fa9e7fdf1a1050786223044c6bb7949784 --

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset a88eb4fa9e7fdf1a1050786223044c6bb7949784 by Victor Stinner in branch 'master': Issue #29300: test_struct tests unpack_from() with keywords https://github.com/python/cpython/commit/a88eb4fa9e7fdf1a1050786223044c6bb7949784 New changeset dcd4b1af2c59

[issue29300] Modify the _struct module to use FASTCALL and Argument Clinic

2017-02-02 Thread Roundup Robot
Changes by Roundup Robot : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

  1   2   >