[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43480/compact-dict.patch ___ Python tracker ___

[issue26439] ctypes.util.find_library fails when ldconfig/glibc not available (e.g., AIX)

2016-06-19 Thread Martin Panter
Martin Panter added the comment: Uploading a combined patch that should work with Rietveld, and I will leave some comments. I don’t think there is much that I am comfortable changing in Python 2.7. In general it is a bad idea to add new features that are only going to be available in e.g.

[issue22214] Tkinter: Don't stringify callback arguments

2016-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Review works. "to Python function" should be either "to a Python function" or "to Python functions". Preventing crashes is a justifying use case. Percolator registers its 'insert' and 'delete' methods with a WidgetRedirector. It then patches them into to

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2016-06-19 Thread Martin Panter
Martin Panter added the comment: Here is a diff that shows my changes better. I temporarily moved some classes back to their original positions to reduce the diff size, though it won’t work in practice because Python needs the classes defined before using them. -- Added file:

[issue27198] Adding an assertClose() method to unittest.TestCase

2016-06-19 Thread Berker Peksag
Berker Peksag added the comment: I agree with Raymond. I doubt most of the unittest users would ever need a builtin assertClose() method in unittest. I suggest closing this as 'rejected'. -- nosy: +berker.peksag ___ Python tracker

[issue27354] SSLContext.load_verify_locations cannot handle paths on Windows which cannot be encoded using mbcs

2016-06-19 Thread Ilya Kulakov
New submission from Ilya Kulakov: On Windows 8.1 x64 with Python 3.5.1 I was able to reproduce the issue by attempting to load a file at "C:\Users\غازي\AppData\Local\Temp\_غازي_70e5wbxo\cacert.pem". locale.getdefaultlocale() > ('en_US', 'cp1252') locale.getpreferredencoding()

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> closed ___ Python tracker ___

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a14b93a4eb49 by Serhiy Storchaka in branch '3.5': Added more tests for issue #27122. https://hg.python.org/cpython/rev/a14b93a4eb49 New changeset ebc82b840163 by Serhiy Storchaka in branch 'default': Added more tests for issue #27122.

[issue27198] Adding an assertClose() method to unittest.TestCase

2016-06-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Embrace the API and add useful asserts like this one. This kind of philosophy is going to lead to egregious API expansion, making Python harder to learn and remember. You're suggesting that we have a nearly zero resistance to adding new assert variants.

[issue27152] Additional assert methods for unittest

2016-06-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Ask five people to spell "assertEndsWith" and see how many of them capitalize the "W". -- ___ Python tracker ___

[issue26859] unittest fails with "Start directory is not importable" when trying to run sourceless tests

2016-06-19 Thread Pam McA'Nulty
Changes by Pam McA'Nulty : -- nosy: +Pam.McANulty ___ Python tracker ___ ___

[issue27122] Hang with contextlib.ExitStack and subprocess.Popen (regression)

2016-06-19 Thread Nick Coghlan
Nick Coghlan added the comment: Serhiy's test changes look good to me! -- ___ Python tracker ___ ___

[issue27353] Add nroot function to math

2016-06-19 Thread Steven D'Aprano
New submission from Steven D'Aprano: For Issue27181 (add geometric mean to statistics module), I need a function to calculate nth roots that is more accurate than pow(x, 1/n). E.g. math.pow(1000, 1/3) returns 9.998 instead of 10.0. I have a pure-Python implementation of nroot

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2016-06-19 Thread Berker Peksag
Changes by Berker Peksag : -- stage: needs patch -> patch review ___ Python tracker ___

[issue27152] Additional assert methods for unittest

2016-06-19 Thread Pam McA'Nulty
Changes by Pam McA'Nulty : -- nosy: +Pam.McANulty ___ Python tracker ___ ___

[issue27198] Adding an assertClose() method to unittest.TestCase

2016-06-19 Thread Pam McA'Nulty
Changes by Pam McA'Nulty : -- nosy: +Pam.McANulty ___ Python tracker ___ ___

[issue14191] argparse doesn't allow optionals within positionals

2016-06-19 Thread dg1727
Changes by dg1727 : -- nosy: +dg1727 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Patch updated. Added What's New entry. We already lost 2 years and the 3.5 release. I don't want to lost 3.6 too. -- assignee: -> serhiy.storchaka components: +Library (Lib) versions: +Python 3.6 -Python 3.5 Added file:

[issue24137] Force not using _default_root in IDLE

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What your thoughts about this Terry? -- stage: -> needs patch ___ Python tracker ___

[issue20350] Replace tkapp.split() to tkapp.splitlist()

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Most methods are tested now. There is a difference between split() and splitlist() in Variable.trace_vinfo() if the tracer was assigned not by Tkinter method Variable.trace_variable(), but by direct execution of Tcl command "trace add variable" and

[issue22214] Tkinter: Don't stringify callback arguments

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Terry for your review. Here is updated patch fith fixed wording as you suggested. Hope it will be available to review on Rietveld. The original purpose of this patch was to help fixing some IDLE "crashes". Percolator is registered in text widgets

[issue27319] Multiple item arguments for selection operations

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your review Terry. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27319] Multiple item arguments for selection operations

2016-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b9ad68db14e by Serhiy Storchaka in branch 'default': Issue #27319: Methods selection_set(), selection_add(), selection_remove() https://hg.python.org/cpython/rev/7b9ad68db14e -- nosy: +python-dev ___

[issue22214] Tkinter: Don't stringify callback arguments

2016-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: There is no review button for the new patch (don't know why), so: in the News and What's New entries, change "if call" to "if one calls" and "or set" to "or sets". More importantly, question your use of 'callback' in the entries. To me, a callback is a

[issue27287] SIGSEGV when calling os.forkpty()

2016-06-19 Thread Ned Deily
Ned Deily added the comment: >From a quick search of the issue tracker, I didn't find any previous reports >of this. We do have a couple of gentoo buildbots but probably not >gentoo-hardened. So I don't think this issue is going to go anywhere here and >I'm going to close it. If anyone

[issue16334] Faster unicode-escape and raw-unicode-escape codecs

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor's patch harvested most fruits, but there is a place for further optimization. Benchmark results for new patch: Py3.2Py3.3Py3.6Py3.6+patch 451 (-47%) 77 (+209%) 140 (+70%) 238decode unicode-escape 'A'*1 269

[issue25602] Add support for EVFILT_USER kqueue filter

2016-06-19 Thread Ned Deily
Ned Deily added the comment: Thanks for contributing the patch, Jakub. I'm sorry that there's been no action on it; unfortunately, the BSD platforms don't get as much attention here as some others. I took a cursory look at it and the patch looks pretty good to me and applies/builds cleanly

[issue27244] print(';;') fails in pdb with SyntaxError

2016-06-19 Thread Ned Deily
Ned Deily added the comment: As Wim notes, that behavior is documented. So, until someone wants to provide an enhancement patch, we should close this issue. Sorry! -- nosy: +ned.deily resolution: -> not a bug stage: -> resolved status: open -> closed

[issue27297] Add support for /dev/random to "secrets"

2016-06-19 Thread Nick Coghlan
Nick Coghlan added the comment: Please don't use /dev/random for anything, ever. It can block applications unpredictably for no good reason. -- nosy: +ncoghlan resolution: -> rejected status: open -> closed ___ Python tracker

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-19 Thread Mark Shannon
Mark Shannon added the comment: I seemed to have been added to the nosy list. I guess that means that my opinions are wanted ;) I have wanted to clean up the code around making calls for quite a while. I just haven't had time. I agree that adding a simpler opcode for making calls with

[issue27196] Eliminate 'ThemeChanged' warning when running IDLE tests

2016-06-19 Thread Ned Deily
Ned Deily added the comment: FWIW, I'm still seeing these errors on OS X (10.11.5 with ActiveTcl 8.5.18) using 2.7.12rc1, 3.5.2rc1, and top-of-trunk 3.6.0. They do not occur on the same platform when using 2.7.11 or 3.5.1. For example: $ /usr/local/bin/python2.7 Python 2.7.12rc1

[issue27213] Rework CALL_FUNCTION* opcodes

2016-06-19 Thread Demur Rumed
Demur Rumed added the comment: Attaching first iteration. Very drafty. Still need to fix test_dis; will run test suite this evening. Perf on pybench went from 16.5s to 17.5s. It was 18.3s prior to reintroducing use of fast_function. Code still needs clean up besides investigation into how to

[issue27025] More human readable generated widget names

2016-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: Worse yet, SO replaces a single ` with a space, so that ".`label" is displayed as ". label" -- ___ Python tracker ___

[issue27025] More human readable generated widget names

2016-06-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: The change is a super great idea (see below), but I now think (my suggestion of) '`' is a bad idea because it conflicts with the use of '`' as markup for code and output, as in rst and stackoverflow.

[issue23782] Leak in _PyTraceback_Add

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch fixes a leak. -- components: +Interpreter Core keywords: +patch stage: -> patch review versions: +Python 3.5, Python 3.6 Added file: http://bugs.python.org/file43473/_PyTraceback_Add_leak.patch ___

[issue26971] python v3.5.1: sys.paths not respecting DESTDIRS and DESTSHARED

2016-06-19 Thread Johannes S.
Johannes S. added the comment: Maybe my last comment was not clear enogth. I used the tarballs from 3.5 and 3.6 which are linked in my last comment. I extracted them and run the the following commands on Arch (64 Bit) and Linux SuSE 13.1 (64 Bit): mkdir build cd build ../configure

[issue20256] Argument Clinic: compare signed and unsigned ints

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Was fixed in duplicate issue22120. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Return converter code generated by Argument Clinic has a warning for unsigned types ___

[issue23148] Missing the charset parameter in as_encoded_word()

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The only tests that call cte_encode() are test_address_list_with_unicode_names and test_address_list_with_unicode_names_in_quotes. The only method that calls cte_encode() (besides recursive cte_encode) is TokenList._fold(). Methods

[issue23641] Got rid of bad dunder names

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I'm not sure about removing __getslice__ and __setslice__ from multiprocessing.sharedctypes and __div__ from unittest.mock, and left them as is. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue23641] Got rid of bad dunder names

2016-06-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 75cec736f87d by Serhiy Storchaka in branch '3.5': Issue #23641: Added __getnewargs_ex__ to the list of special mock attributes. https://hg.python.org/cpython/rev/75cec736f87d New changeset 4c5f7b61b6c5 by Serhiy Storchaka in branch 'default': Issue

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43472/compact-dict.patch ___ Python tracker ___

[issue17711] Persistent id in pickle with protocol version 0

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue22557] Local import is too slow

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed bugs making test_importlib failing. Microbenchmark results on faster machine: $ ./python -m timeit 'import locale' Unpatched: 100 loops, best of 3: 0.839 usec per loop Patched:1000 loops, best of 3: 0.176 usec per loop $ ./python -m

[issue27352] Bug in IMPORT_NAME

2016-06-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Seems there is a bug in the implementation of the IMPORT_NAME opcode in ceval.c. If the level argument is -1, it is not passed to __import__ (should never happen, but looks correct). If it is an integer != -1 in C long range, it is passed to __import__

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

2016-06-19 Thread Xiang Zhang
Xiang Zhang added the comment: Upload the near-final patch. This one adds large buffer tests on 64bit platforms. I have tested them on a server with enough memory. I don't add the @support.requires_resource('cpu') since large memory tests are born to be slow. And actually when I experiment,

[issue22214] Tkinter: Don't stringify callbacks arguments

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch. Added NEWS and What's New entries. -- assignee: -> serhiy.storchaka versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file43468/tkinter_obj_cmd_3.patch ___ Python tracker

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
INADA Naoki added the comment: Make sense! I did it. -- Added file: http://bugs.python.org/file43467/compact-dict.patch ___ Python tracker ___

[issue22115] Add new methods to trace Tkinter variables

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch provides simplified interface. The support of passing callback arguments is removed. This complicates an interface and is not needed since Python supports closure and the support of callback arguments was more limited (supported only limited

[issue27350] Compact and ordered dict

2016-06-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: When stdint.h is not available you can define PY_INT32_T externally. E.g. CFLAGS="-DPY_INT32_T=__int32". -- ___ Python tracker

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
Changes by INADA Naoki : Added file: http://bugs.python.org/file43465/compact-dict.patch ___ Python tracker ___

[issue27350] Compact and ordered dict

2016-06-19 Thread INADA Naoki
INADA Naoki added the comment: >> How to support sizeof(Py_ssize_t) == 4? >#if SIZEOF_VOID_P == 4 Thanks! >> Can I use int8_t, int16_t and int32_t > You can use PY_INT32_T for 32-bit signed integers, short for 16-bit signed > integers (if SIZEOF_SHORT == 2) and signed char for 8-bit signed