[issue27704] bytes(x) is slow when x is bytearray

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 789a42401009 by Serhiy Storchaka in branch 'default': Issue #27704: Optimized creating bytes and bytearray from byte-like objects https://hg.python.org/cpython/rev/789a42401009 -- nosy: +python-dev ___

[issue1602] windows console doesn't print or input Unicode

2016-08-15 Thread Martin Panter
Martin Panter added the comment: I think this CGI thing is a separate bug, just exacerbated by the stdin.encoding problem. :) The urllib.parse.parse_qs() function takes an encoding parameter to figure out what to do with percent-encoded values: "%A9" → b"\xA9".decode(...). This is different

[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Nick Coghlan
Nick Coghlan added the comment: As Emanuel noted, this is a new feature, and hence won't be backported to any earlier versions. For What's New, it turns out that didn't quite render the way I expected, since the "StackSummary" class reference is missing in addition to the "traceback" module

[issue19837] Wire protocol encoding for the JSON module

2016-08-15 Thread Nick Coghlan
Nick Coghlan added the comment: After hitting this problem again in another nominally single-source compatible Python 2/3 project, I created #27765 to specifically cover accepting UTF-8 encoded bytes in json.loads() -- ___ Python tracker

[issue25455] Some repr implementations don't check for self-referential structures

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Antoine, are you fine with io_recursive_repr2.patch? -- ___ Python tracker ___

[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Xiang Zhang
Xiang Zhang added the comment: Oops! I am on the way regenerating the CA output to catch up with hg tip, but after a meeting you have done it. Thanks for your work, Serhiy. And excellent job as for issue27574. -- ___ Python tracker

[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić
Vedran Čačić added the comment: It's true, but it seems that with Enums, we're trying to retrain people to use identity testing (see https://docs.python.org/3/library/enum.html#comparisons). It would be unfortunate if we had to reuntrain them. :-/ Ethan's proposal (of caching weakrefs) is

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев
New submission from Филипп Пономарев: I've created Win32 app (MFC+ATL) Added includes, added \python35_d.lib runed main.cpp: int main() { int nRetCode = 0; HMODULE hModule = ::GetModuleHandle(nullptr); if (hModule != nullptr) { // initialize MFC and print and error on

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2f857ac9c7af by Ned Deily in branch '3.5': Issue #10910: Avoid C++ compilation errors on FreeBSD and OS X. https://hg.python.org/cpython/rev/2f857ac9c7af New changeset 27a99a722828 by Ned Deily in branch '3.5': Issue #10910: Update FreedBSD version

[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Berker Peksag
Berker Peksag added the comment: > So I'll tweak that [...] Hi Nick, could you also tweak the usage of versionchanged directive? :) +.. versionchanged:: 3.6 + +Long sequences of repeated frames are now abbreviated. Description line needs to be indented: .. versionchanged:: 3.6

[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file44115/py_setref_extra.patch ___ Python tracker ___

[issue27704] bytes(x) is slow when x is bytearray

2016-08-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: serhiy.storchaka -> ___ Python tracker ___

[issue27704] bytes(x) is slow when x is bytearray

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Naoki. -- ___ Python tracker ___ ___

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
New submission from Christian Heimes: The ssl module has two cipher suite configurations, one for server-side and the other for client-side. Issue #26470 will add OpenSSL 1.1.0 support, which will introduce new cipher suites with ChaCha 20 stream cipher and Poly1305 authenticator. CHAHA20

[issue23591] Add Flags and IntFlags

2016-08-15 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, IntFlags sidesteps a lot of these issues (though not all: inconsistency with a lot of principles of IntEnum is still jarring). But I thought we were talking about Flags too (it is not in the patch, as far as I see). But now I see that Flags was kinda

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Christian Heimes added the comment: On X86 and X86_64 AES-NI and PCLMULQDQ can be detected with OPENSSL_ia32cap_loc(). https://www.openssl.org/docs/man1.0.2/crypto/OPENSSL_ia32cap_loc.html -- ___ Python tracker

[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. With issue27574 the overhead is even smaller. -- assignee: -> serhiy.storchaka stage: patch review -> commit review ___ Python tracker

[issue16764] Make zlib accept keyword-arguments

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4101218364e by Serhiy Storchaka in branch 'default': Issue #16764: Support keyword arguments to zlib.decompress(). Patch by https://hg.python.org/cpython/rev/a4101218364e -- nosy: +python-dev ___

[issue27765] Accept UTF-8 encoded bytes as input to json.loads()

2016-08-15 Thread Nick Coghlan
New submission from Nick Coghlan: In two recent Python 3 porting projects, a key incompatibility I encountered was that "json.loads(data)" on UTF-8 encoded bytes required an explicit decoding step under Python 3, rather than implicitly decoding the data as UTF-8. Unlike many other wire

[issue27765] Accept UTF-8 encoded bytes as input to json.loads()

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue10976. See also issue17909 (which covers not just UTF-8, but UTF-16 and UTF-32, in conforming with RFC 4627). -- nosy: +serhiy.storchaka ___ Python tracker

[issue10910] pyport.h FreeBSD/Mac OS X "fix" causes errors in C++ compilation

2016-08-15 Thread Ned Deily
Ned Deily added the comment: I have no special insight into this one but, since there seems to be general agreement here that this makes things better for those using C++ on OS X and FreeBSD, I guess it's time to try it. Pushed for release in 2.7.13, 3.5.3, and 3.6.0. Thanks for the version

[issue27750] Idle editor crashes when input size more than 250 lines given

2016-08-15 Thread chinmay hegde
chinmay hegde added the comment: Attaching the exact snippet of code that caused idle crash.issue.py file contains the code and input.txt contains input used. Also tried with python interpreter. In python interpreter issue is not seen. It's displaying the output. Pasting of input was done by

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев
Филипп Пономарев added the comment: I've exported it in source.def - tstf @1 * thank you* Sorry for my english =) -- ___ Python tracker ___

[issue26600] MagickMock __str__ sometimes returns MagickMock instead of str

2016-08-15 Thread Yoichi Nakayama
Yoichi Nakayama added the comment: It is not a bug of MagicMock. It is a problem of the sample program. Calling str to mock object cause not only read access, it also write to related objects. So there is a race condition. -- nosy: +Yoichi Nakayama

[issue23591] Add Flags and IntFlags

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You still can use identity testing for named instances of IntFlags. But since the purpose of IntFlags is replacing int flags, tested values can be int (e.g. when read from files as ints). For unknown values you should use either equality testing or wrap

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Stefan Krah
Stefan Krah added the comment: It is a known problem that PEP 3121 and later similar PEPs address. Most C extensions leak a (usually very small) amount of memory with each call to Initialize()/Finalize(). IMO this issue can be closed. -- nosy: +skrah

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- type: behavior -> security ___ Python tracker ___ ___

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield
Changes by Cory Benfield : -- nosy: +Lukasa ___ Python tracker ___ ___ Python-bugs-list

[issue27749] python 3.5.2 maybe crash

2016-08-15 Thread wevsty
wevsty added the comment: I try to change the multiprocessing lib codes,upload the file is debugger display.I try to used while loop make sure connection hanle value is not none,but connection hanle value will still becomes none. I think there may be other threads to modify the handle,But it

[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Guido, what is your thought? I sometimes use Py_SETREF() in new code for simplicity (and not only me). I agree that in case of long complex expression putting it inside a macro looks ugly. -- nosy: +gvanrossum

[issue1602] windows console doesn't print or input Unicode

2016-08-15 Thread Mark Lawrence
Changes by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___

[issue1602] windows console doesn't print or input Unicode

2016-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: -christian.heimes ___ Python tracker ___ ___

[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-08-15 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- assignee: -> haypo ___ Python tracker ___ ___

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- keywords: +patch Added file: http://bugs.python.org/file44117/Add-ChaCha20-Poly1305-to-SSL-ciphers.patch ___ Python tracker

[issue26200] SETREF adds unnecessary work in some cases

2016-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think most of these should be done. In most of these cases, the code is very old, stable, readable, and shouldn't be churned unnecessarily. Also, putting a function call inside a macro is a worrisome practice in C. Ordinarily, we have long

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

2016-08-15 Thread Christian Heimes
Christian Heimes added the comment: Working patch with tests and documentation. socket.algset() isn't strictly necessary but makes the feature much more pleasant to use. I accept ideas for a better name, though. -- keywords: +patch Added file:

[issue27492] Enhance bytearray_repr with bytes_repr's logic

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The two function's advantage is in the ability to reuse this code for other purposes. For example in _codecs.escape_encode(). But since this is the only place where the same algorithm is used and this functions is not documented and I presume it is not much

[issue27763] Add complex case to test_builtin abs()

2016-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: > in looking through test_cmath, it appears that only the two numeric > argument form of complex(i, j) is tested for any of the functions, not the > complex('i+nj') string form. We're testing the cmath functions on complex number inputs; I don't think it

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor
Alex Gaynor added the comment: So, for servers really what we care about is if the _client_ has PCLMULQDQ/AESNI, not whether the server itself does. Unfortunately, there's no sane way to do this. Haven't reviewed this patch in terribly much detail, but conceptually fine. Cory, we should make

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield
Cory Benfield added the comment: Yup. So for Requests at least, the fix is easy: because OpenSSL kindly just quietly ignores cipher suites it doesn't know about we can unconditionally add it to the requests/urllib3 cipher string. In the first instance we'll just do it statically, and then we

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor
Alex Gaynor added the comment: Simply doing AES-GCM before ChaCha20 is probably the simplest thing to start with, can always get fancier later. -- ___ Python tracker

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Ron Carr
New submission from Ron Carr: Hi, I am unable to install Python 3.6.0, 3.5.2 and 2.7.12, on my Windows 10 64 bit system, receive error message "A required privilege is not held by the client". I have turned UAC, and changed registry setting to zero. Also have ensured my Administrator has

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Christian Heimes added the comment: On 2016-08-15 13:09, Alex Gaynor wrote: > > Alex Gaynor added the comment: > > So, for servers really what we care about is if the _client_ has > PCLMULQDQ/AESNI, not whether the server itself does. Unfortunately, there's > no sane way to do this. For

[issue27768] ssl: add public API for IA-32 processor capabilities vector

2016-08-15 Thread Christian Heimes
New submission from Christian Heimes: OpenSSL has a function called OPENSSL_ia32cap_loc() to get the processor's capability vector in X86 and X86_64 systems. The information is useful to decide which cipher suite to prefer. For example on machines without AES-NI and CLMUL CPU instructions,

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Changes by Christian Heimes : -- dependencies: +Make OpenSSL module compatible with OpenSSL 1.1.0, ssl: add public API for IA-32 processor capabilities vector ___ Python tracker

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Decorater
Decorater added the comment: Why are you trying to install 3.6? when you can make it the embeded version as it is still in alpha and then use it. Not only that but you can use \Tools\msi\make_zip.py to learn more. -- nosy: +Decorater ___ Python

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2016-08-15 Thread Pas
Changes by Pas : -- nosy: +pas ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Decorater
Decorater added the comment: tbh I personally perfer aiohttp over requests. -- nosy: +Decorater ___ Python tracker ___

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread R. David Murray
R. David Murray added the comment: Филипп: As Stefan said, we know there are problems with initialize/finalize, but the problems are deep and the project to correct them is ongoing. So, this is an example of an already identified leak that we are working on, and consequently I'll close this

[issue18844] allow weights in random.choice

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond, any chance to get weighted random choices generator in 3.6? Less than month is left to feature code freeze. -- ___ Python tracker

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

2016-08-15 Thread A. Skrobov
A. Skrobov added the comment: Thanks Xavier! Yes, this is the same DFA that's used by the main Python parser. For some reason, parsermodule didn't previously reuse it, but instead did its own thing. Any volunteers to review the other patch for Python parser, at

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Alex Gaynor
Alex Gaynor added the comment: Exposing it in some way would be good, but we can make that a seperate issue. -- ___ Python tracker ___

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield
Cory Benfield added the comment: Update for Requests+urllib3 is here: https://github.com/shazow/urllib3/pull/947 Update for Twisted is here: https://twistedmatrix.com/trac/ticket/8760 -- ___ Python tracker

[issue25628] Make namedtuple "verbose" and "rename" parameters into keyword only arguments

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping again. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27769] "Replace All" with up direction and no wrapping replaces only the bottommost of all matching upward entries

2016-08-15 Thread Qwert225
New submission from Qwert225: IDLE's "Replace All" option with up direction and disabled "Wrap around" replaces only the bottommost of all matching upward entries instead of replacing all matching upward entries. -- assignee: terry.reedy components: IDLE messages: 272768 nosy:

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Christian Heimes
Christian Heimes added the comment: Cory, Alex: Do you like to have a public API for CPU feature discovery? I don't mind to make OPENSSL_ia32cap_loc() a public API or even expose the bit set as structure with nice field names. Decorater: This ticket is not a vote on favorite packages.

[issue17394] Add slicing support to collections.deque

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond, do you still have an interest in this issue? If no, you can just close it. -- ___ Python tracker ___

[issue27450] bz2: BZ2File should expose compression level as an attribute

2016-08-15 Thread Xiang Zhang
Xiang Zhang added the comment: If you don't want to manually parse it, the lib has to. Currently, bz2 delegates all the raw data parsing (compression/decompression) to the underlying C library. Unfortunately the bzip2 library doesn't expose the header info which means to get compression

[issue27755] Retire DynOptionMenu with a ttk Combobox

2016-08-15 Thread Justin Foo
Justin Foo added the comment: I wasn't sure if the ongoing work in #24781 essentially rendered my patch obsolete, so I keenly await Mark's response. Upon reflection, I think my patch is a cheap win even if it's later overhauled by other improvements. -- status: closed -> open

[issue27766] Add ChaCha20 Poly1305 to SSL ciphers

2016-08-15 Thread Cory Benfield
Cory Benfield added the comment: Christian: Certainly I'd like to be able to use that API from within urllib3 and Twisted. Having something public would be really convenient. Of course, it'd be good if OpenSSL exposed something useful here, but in the absence of that Python would be

[issue27772] Refer to actual format string when creating “zero padding” error message

2016-08-15 Thread Ned Deily
Changes by Ned Deily : -- nosy: +eric.smith versions: +Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

[issue27773] Excessive Py_XDECREF in the ssl module:

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 98c86d5a6655 by Benjamin Peterson in branch '3.5': fix corner cases in the management of server_hostname (closes #27773) https://hg.python.org/cpython/rev/98c86d5a6655 New changeset a8cd67e80ed3 by Benjamin Peterson in branch 'default': merge 3.5

[issue27772] Refer to actual format string when creating “zero padding” error message

2016-08-15 Thread Ben Finney
New submission from Ben Finney: When using a format specifier with leading zero, the format spec mini-language (as documented at https://docs.python.org/3/library/string.html#format-specification-mini-language>) says: > '=' […] becomes the default when ‘0’ immediately precedes the field

[issue24137] Force not using _default_root in IDLE

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6a248479b66 by Terry Jan Reedy in branch 'default': Issue #27611, #24137: Only change tkinter when easily restored. https://hg.python.org/cpython/rev/a6a248479b66 -- ___ Python tracker

[issue27771] Add a clear screen button or menu choice for IDLE

2016-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is essentially a duplicate of your #17632, which proposed Clear Screen + Restart, which was closed as a duplicate of #6143, which has some patches. -- resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: ->

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2016-08-15 Thread Ben Finney
Ben Finney added the comment: Terry Reedy wrote: > If the spec string is still available, it could be searched and the message > adjusted if '=' is not present. That proposal should be a new issue if > someone wants to push it. Done now, see Issue 27772. -- nosy: +bignose

[issue12916] Add inspect.splitdoc

2016-08-15 Thread Ben Finney
Ben Finney added the comment: Am I right that this: > pydoc doesn't have public API other than its CLI and the help() function. > […] On the other hand, there are already functions related to splitdoc() > in the inspect module […]. > There is no rush to make splitdoc() public. We can improve

[issue27774] Py_DECREF on a non-owned object in _sre

2016-08-15 Thread Benjamin Peterson
New submission from Benjamin Peterson: Thomas E Hybel reports: This vulnerability exists in the function _sre_SRE_Match_groupdict_impl which resides in the /Modules/_sre.c file. The problem is that the code calls Py_DECREF(key); without having done a corresponding Py_INCREF on the key. Here's

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Ned Deily
Ned Deily added the comment: Excellent! Thanks for digging into that. Increasing the iterations seems to work fine within the (understandable) limitations of the existing embedded tests, e.g. only work from a source tree build (not an installed build nor from a separate build directory)

[issue27771] Add a clear screen button or menu choice for IDLE

2016-08-15 Thread Raymond Hettinger
New submission from Raymond Hettinger: Learners in my classes commonly request this feature. Beyond just providing a cosmetic clean-up, this would be useful for recovering from IDLE's catastrophic slow-downs after trying to print a very wide line (i.e. the repr of a string containing a full

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ned Deily noticed the same problem when running with test.regrtest #27714. I cannot reproduce this issue when running both tests either with unittest or test.regrtest. F:\Python\dev>36\pcbuild\win32\python_d.exe -m unittest test.test_tix test.test_idle

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset a6a248479b66 by Terry Jan Reedy in branch 'default': Issue #27611, #24137: Only change tkinter when easily restored. https://hg.python.org/cpython/rev/a6a248479b66 -- ___ Python tracker

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27611] test_tix cannot import _default_root after test_idle

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset cddd633b959f by Terry Jan Reedy in branch '2.7': Issue #27611: Don't import volatile attribute. https://hg.python.org/cpython/rev/cddd633b959f New changeset a4295897 by Terry Jan Reedy in branch '3.5': Issue #27611: Don't import volatile

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f69626fd923 by Ned Deily in branch 'default': Issue #27736: Improve the existing embedded interpreter init/fini test https://hg.python.org/cpython/rev/4f69626fd923 -- ___ Python tracker

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев
Филипп Пономарев added the comment: And one more thing. Is there python version exist without leaks? Or all of them have those leaks? thank you! -- ___ Python tracker

[issue27734] Memory leaks at Python35-32

2016-08-15 Thread Филипп Пономарев
Филипп Пономарев added the comment: I understand and totally agree, but if u're working on it, can u give me a reference to open issue, or should I use Stefan link? I should report to my сhief :) After that you can close it immideatly. -- status: closed -> open

[issue27506] make bytes/bytearray delete a keyword argument

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Technically the patch looks correct to me. Added just few minor comments on Rietveld. I don't think there is a large need in adding the support of keyword argument. But since the overhead is small and somebody needs this, adding this doesn't do a harm. Left

[issue27492] Enhance bytearray_repr with bytes_repr's logic

2016-08-15 Thread Xiang Zhang
Xiang Zhang added the comment: > It can be more efficient is make bytes.__repr__ accepting not only bytes, but > objects supporting the buffer protocol. I like this idea. v2 implements this. -- Added file: http://bugs.python.org/file44119/bytearray_repr_v2.patch

[issue27769] IDLE's "Replace All" with up direction and no wrapping replaces one upward and all downward entries instead of replacing all upward entries.

2016-08-15 Thread Qwert225
Qwert225 added the comment: EDIT: IDLE's "Replace All" with up direction and no wrapping replaces one upward matching entry and all downward matching entries even though it is set to replace all upward entries. -- title: "Replace All" with up direction and no wrapping replaces only

[issue24379] Add operator.subscript as a convenience for creating slices

2016-08-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Raymond, adding a stub element to __slots__ fixes a leak. Is this enough to push the patch again? We should open a separate issue for leaks in objects with empty __slots__. -- ___ Python tracker

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Brett Cannon
Changes by Brett Cannon : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware versions: +Python 2.7, Python 3.5 ___ Python tracker

[issue26823] Shrink recursive tracebacks

2016-08-15 Thread Emanuel Barry
Emanuel Barry added the comment: Doc patch. -- stage: resolved -> patch review status: closed -> open Added file: http://bugs.python.org/file44120/short_tracebacks_doc_1.patch ___ Python tracker

[issue18844] allow weights in random.choice

2016-08-15 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I have four full days set aside for the upcoming pre-feature release sprint which is dedicated to taking time to thoughtfully evaluate pending feature requests. In the meantime, I'm contacting Alan Downey for a consultation for the best API for

[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum
Guido van Rossum added the comment: Lisa, this LGTM. I'll commit it so we can put this behind us! -- ___ Python tracker ___

[issue12345] Add math.tau

2016-08-15 Thread Guido van Rossum
Changes by Guido van Rossum : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue27767] Receive "A required privilege is not held by the Client" error message when Installing python on Windows 10 64 bit

2016-08-15 Thread Brett Cannon
Brett Cannon added the comment: 1. Is this pre- or post-Anniversary update? 2. Is the PC administered by anyone other than yourself (e.g. is it a work machine)? 3. Are you trying to do a system-wide install or a personal install? 4. For at least Python 3.5 the installer does work as I have

[issue27723] Document typing.Text and typing.AnyStr

2016-08-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: Looks good to me. 15 Сер 2016 18:57 "Michael Lee" пише: > > Michael Lee added the comment: > > Second revision attached below. > > -- > Added file: http://bugs.python.org/file44121/document-text-and- > anystr-2.patch > >

[issue12345] Add math.tau

2016-08-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: There is a typo in the NEWS entry: "Issue #12345: Add *mathemathcal* constant tau to math ..." -- ___ Python tracker

[issue27736] repeated Py_Initialize/PyRun_SimpleString/Py_Finalize segfaults

2016-08-15 Thread Brett Cannon
Brett Cannon added the comment: Patch LGTM. -- assignee: brett.cannon -> ned.deily stage: patch review -> commit review ___ Python tracker ___

[issue27761] Private _nth_root function loses accuracy

2016-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: Just for fun, here's a recipe for a correctly-rounded nth root operation for positive finite floats. I'm not suggesting using this in the business logic: it's likely way too slow (especially for large n), but it may have a use in the tests. The logic for the

[issue27761] Private _nth_root function loses accuracy

2016-08-15 Thread Mark Dickinson
Mark Dickinson added the comment: > for positive finite floats ... assuming IEEE 754 binary64 format, of course. -- ___ Python tracker ___

[issue24379] Add operator.subscript as a convenience for creating slices

2016-08-15 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: It looks like namedtuple suffers the same issue with empty __slots__: test_collections leaked [0, 0, 2, 0] references, sum=2 -- ___ Python tracker

[issue26415] Excessive peak memory consumption by the Python parser

2016-08-15 Thread Xavier Combelle
Xavier Combelle added the comment: Looks that there is two bug as partial solution of the main bug which is reduce memory consumption of the parser: - The compression thing - the reducing of heap fragmentation Could each sub bug have it's own bug tracker and mark them blocking for the main bug

[issue12345] Add math.tau

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68f2d6098be1 by Guido van Rossum in branch 'default': Issue #12345: Add mathemathcal constant tau to math and cmath. https://hg.python.org/cpython/rev/68f2d6098be1 -- ___ Python tracker

[issue27723] Document typing.Text and typing.AnyStr

2016-08-15 Thread Michael Lee
Michael Lee added the comment: Second revision attached below. -- Added file: http://bugs.python.org/file44121/document-text-and-anystr-2.patch ___ Python tracker

[issue23591] Add Flags and IntFlags

2016-08-15 Thread Ethan Furman
Ethan Furman added the comment: Serhiy's patch is only for IntFlags, and my patch hasn't yet fully incorporated his (many thanks for decompose!) For IntFlags I do not expect to have very many instances alive at once, especially since not-bitwise operators will lose the IntFlag class and

[issue26415] Excessive peak memory consumption by the Python parser

2016-08-15 Thread A. Skrobov
A. Skrobov added the comment: Xavier, the big picture description of my patch is in http://bugs.python.org/file43665/devguide_patch The heap fragmentation was observed by Victor, not by myself. Victor, could you please create a new ticket for your python_memleak.py reproducer? --

[issue23968] rename the platform directory from plat-$(MACHDEP) to plat-$(PLATFORM_TRIPLET)

2016-08-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset ddc4bdae5e41 by Ned Deily in branch 'default': Issue #23968: Make OS X installer build script aware of renamed platform https://hg.python.org/cpython/rev/ddc4bdae5e41 -- ___ Python tracker

  1   2   >