[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2016-05-01 Thread Larry Hastings
Larry Hastings added the comment: Why is this dependent on #26305? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue26305] Make Argument Clinic to generate PEP 7 conforming code

2016-05-01 Thread Larry Hastings
Larry Hastings added the comment: I'm not excited by this new addition to PEP 7, so I'm excusing myself from this issue. -- ___ Python tracker ___ __

[issue26902] Argument Clinic incorrectly works with custom converter and renamed parameter

2016-05-01 Thread Larry Hastings
Larry Hastings added the comment: This is caused by your "meth_o inline" code, which isn't checked in yet. A clean checkout of CPython trunk generates this correct code: if (!PyArg_Parse(arg, "O&:test", PyUnicode_FSConverter, &path)) Maybe you don't need to use bugs.python.org as your per

[issue23903] Generate PC/python3.def by scraping headers

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also closely related issue26900. -- ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue24225] Idlelib: changing file names

2016-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: For back compatibility reasons, I rejected a 'simple renaming', much as I would like to do it for reasons already given, and closed *this* issue in msg250451. As I said then here and elsewhere, I instead propose to add new files with new names. As I said abo

[issue23903] Generate PC/python3.def by scraping headers

2016-05-01 Thread Steve Dower
Steve Dower added the comment: As I recall, the tool is ready to go. The problem is the argument over what to do with all the APIs that currently are incorrect. Zach had a list at PyCon last year, and the consensus seemed to be that "someone" should figure out whether each API should be stable

[issue24225] Idlelib: changing file names

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't think that simple renaming will give us any benefits, but if that will be made, please don't forgot to use the "hg mv" command for this for keeping the history. And please rename 2.7 files too, otherwise the backporting changes will be turned in hell

[issue24225] Idlelib: changing file names

2016-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Uploading slightly revised version. -- Added file: http://bugs.python.org/file42678/@newnames.txt ___ Python tracker ___ ___

[issue24225] Idlelib: changing file names

2016-05-01 Thread Terry J. Reedy
Changes by Terry J. Reedy : Removed file: http://bugs.python.org/file42677/@newnames.txt ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue26904] Difflib quick_ratio() could use Counter()

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you provide a script or a data used by you for benchmarking, so we can repeat this? -- nosy: +rhettinger, serhiy.storchaka stage: -> patch review ___ Python tracker _

[issue24225] Idlelib: changing file names

2016-05-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I posted the message above, I have decided that there should be a new version of every currently used idlelib .py file and that all additions, with new names of course, should be done at once, but only to 3.5 and 3.6. I will soon open a new issue to exp

[issue23903] Generate PC/python3.def by scraping headers

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This tool would be very useful, since new API often accidentally marked as stable API in header files. The script can play just deliberative role, warn if new unstable API is not wrapped with "#ifndef Py_LIMITED_API" or if stable API is not documented. May b

[issue26904] Difflib quick_ratio() could use Counter()

2016-05-01 Thread Michael Cuthbert
New submission from Michael Cuthbert: The implementation used in difflib.SequenceMatcher().quick_ratio() counts how often each member of the sequence (character, list entry, etc.) appears in order to calculate its lower bound. Counting how often an entry appears in an iterable has been sped up

[issue26894] Readline not aborting line edition on sigint

2016-05-01 Thread Martin Panter
Martin Panter added the comment: What happens instead of aborting the line at step 3? Is Ctrl+C completely ignored, as if you didn’t press it? Perhaps matplotlib is interfering with Python’s SIGINT handler and/or PyOS_InputHook(). Can you eliminate ipython from the equation? I.e. does the pro

[issue26901] Argument Clinic test is broken

2016-05-01 Thread Larry Hastings
Larry Hastings added the comment: I will admit that even during development I rarely used Clinic's test suite. My test suite is: make a change, then run Clinic over all of CPython and do a diff. If nothing changed then Clinic is still working. --

[issue26901] Argument Clinic test is broken

2016-05-01 Thread Zachary Ware
Zachary Ware added the comment: The clinic tests should probably be integrated into the regrtest suite, since clinic is integrated into the build process. -- nosy: +zach.ware ___ Python tracker ___

[issue23903] Generate PC/python3.def by scraping headers

2016-05-01 Thread Zachary Ware
Zachary Ware added the comment: Unassigning since I haven't made it anywhere with this in a year; if anybody else would like to pick it up, feel free. Otherwise I'll get to it some day :) -- assignee: zach.ware -> versions: +Python 3.6 -Python 3.5

[issue26900] Exclude the private API from the stable API

2016-05-01 Thread Zachary Ware
Zachary Ware added the comment: #23903 is closely related, but I haven't made it back to that one in some time. -- nosy: +zach.ware ___ Python tracker ___ ___

[issue26873] xmlrpclib raises when trying to convert an int to string when unicode is available

2016-05-01 Thread Nathan Williams
Nathan Williams added the comment: Serhiy, that workaround worked for my needs, thanks. -- ___ Python tracker ___ ___ Python-bugs-list

[issue26704] unittest.mock.patch: Double patching instance method: AttributeError: Mock object has no attribute '__name__'

2016-05-01 Thread Anthony Sottile
Anthony Sottile added the comment: Seems I've named the patchfile incorrectly -- Hopefully this is correct this time? -- keywords: +patch nosy: +Anthony Sottile Added file: http://bugs.python.org/file42675/2.patch ___ Python tracker

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

2016-05-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, I dislike the dis change. Please keep the current behaviour and open an issue to enhance the dis module. -- ___ Python tracker ___ _

[issue10850] inconsistent behavior concerning multiprocessing.manager.BaseManager._Server

2016-05-01 Thread ppperry
ppperry added the comment: You're working with non-documented internal components of the python standard library with names that start with an underscore. I think that this is not a bug in python, but instead a consequence of mucking with internals that weren't designed to be mucked with. ---

[issue26903] ProcessPoolExecutor(max_workers=64) crashes on Windows

2016-05-01 Thread Diogo Pereira
New submission from Diogo Pereira: I'm using Python 3.5.1 x86-64 on Windows Server 2008 R2. Trying to run the ProcessPoolExecutor example [1] generates this exception: Exception in thread Thread-1: Traceback (most recent call last): File "C:\Program Files\Python35\lib\threading.py", line 914,

[issue26874] Docstring error in divmod function

2016-05-01 Thread Zachary Ware
Zachary Ware added the comment: Forgot that step, thanks Serhiy! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue26902] Argument Clinic incorrectly works with custom converter and renamed parameter

2016-05-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- title: Argument Clinic incorrectly work with custom converter and renamed parameter -> Argument Clinic incorrectly works with custom converter and renamed parameter ___ Python tracker

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2016-05-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Argument Clinic incorrectly work with custom converter and renamed parameter, Make Argument Clinic to generate PEP 7 conforming code ___ Python tracker _

[issue26902] Argument Clinic incorrectly work with custom converter and renamed parameter

2016-05-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Added file: http://bugs.python.org/file42674/issue26902_sample.c ___ Python tracker ___ ___ Python-bugs-list mai

[issue26902] Argument Clinic incorrectly work with custom converter and renamed parameter

2016-05-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Argument Clinic uses original name of Python parameter in generated code for custom (format code "O&") converter even if the parameter was renamed. Example: /*[clinic input] test filename as path: object(converter="PyUnicode_FSConverter") / [clinic

[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: > Where is the patch that adds android_ver()? http://bugs.python.org/issue26855 Xavier de Gaye's implementation is buggy while works for most cases. -- nosy: +Chi Hsuan Yen ___ Python tracker

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

2016-05-01 Thread Demur Rumed
Demur Rumed added the comment: I should mention a change in dis which hasn't come up for the sake of explicit discussion: I modified dis to not print EXTENDED_ARG. Instead one can tell by the byte indices having a hole (since they uniformly count up by 2 otherwise) & the argument value being g

[issue26305] Make Argument Clinic to generate PEP 7 conforming code

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The problem was that I didn't know wherever all braces repeated correct times. Actually they were not used correctly in NoneType_return_converter, but since this converter is not used in current sources, this error left unnoticed. New patch escapes generated

[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Guido van Rossum
Guido van Rossum added the comment: Where is the patch that adds android_ver()? At the very least that should be listed as a dependency here. I don't very much like to have changes to asyncio that can only work in Python 3.6; there's still an upstream version (https://github.com/python/asyncio

[issue26874] Docstring error in divmod function

2016-05-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 84ff79cce41e by Serhiy Storchaka in branch '3.5': Regenerate Argument Clinic code for issue #26874. https://hg.python.org/cpython/rev/84ff79cce41e New changeset 98678738b7e9 by Serhiy Storchaka in branch 'default': Regenerate Argument Clinic code fo

[issue26893] ValueError exception raised when using IntEnum with an attribute called "name" and @unique decorator

2016-05-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1b6581bae5a1 by Ethan Furman in branch '3.5': issue26893: use mro() to examine class heirarchy https://hg.python.org/cpython/rev/1b6581bae5a1 New changeset 7188de6b50ab by Ethan Furman in branch 'default': issue26893: use mro() to examine class heir

[issue26832] ProactorEventLoop doesn't support stdin/stdout nor files with connect_read_pipe/connect_write_pipe

2016-05-01 Thread Gabriel Mesquita Cangussu
Gabriel Mesquita Cangussu added the comment: Terry, About your question, "Isn't there some other way to asynchronously read/file files, as opposed to sockets and pipes, on Windows?", that is exactly the problem I was trying to overcome, specifically for reading the stdin. On my research I fou

[issue26305] Make Argument Clinic to generate PEP 7 conforming code

2016-05-01 Thread Meador Inge
Meador Inge added the comment: LGTM. I agree that the extra braces are a little gross, but nothing immediately comes to mind as how to make that better. -- nosy: +meador.inge ___ Python tracker __

[issue26305] Make Argument Clinic to generate PEP 7 conforming code

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The only thing that disturbs me is that some templates need duplicating braces, and others need quadrupling braces. -- ___ Python tracker ___

[issue23867] Argument Clinic: inline parsing code for 1-argument functions

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with tip. -- versions: +Python 3.6 -Python 3.5 Added file: http://bugs.python.org/file42672/clinic_meth_o_inline.patch ___ Python tracker ___

[issue21367] multiprocessing.JoinableQueue requires new kwarg

2016-05-01 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Cryptic error when subclassing multiprocessing classes ___ Python tracker _

[issue26901] Argument Clinic test is broken

2016-05-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: $ ./python Tools/clinic/clinic_test.py Error: Destination does not exist: 'file' It works in 3.4. -- components: Argument Clinic, Tests messages: 264595 nosy: larry, serhiy.storchaka priority: high severity: normal status: open title: Argument Clini

[issue26900] Exclude the private API from the stable API

2016-05-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : Removed file: http://bugs.python.org/file42670/private_limited_api.diff ___ Python tracker ___ ___ Python-bugs-l

[issue26900] Exclude the private API from the stable API

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added PyAPI_FUNC(PyObject *) _PyObject_GenericGetAttrWithDict(PyObject *, PyObject *, PyObject *); PyAPI_FUNC(int) _PyObject_GenericSetAttrWithDict(PyObject *, PyObject *, PyObject *, PyObject *); PyAPI_FUNC(int) _Py_fstat(int fd, struct _Py_stat_struct *sta

[issue26711] Fix comparison of plistlib.Data

2016-05-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For simplicity I left "==" and fixed only obvious bug. -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26711] Fix comparison of plistlib.Data

2016-05-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 41afb83cffac by Serhiy Storchaka in branch '3.5': Issue #26711: Fixed the comparison of plistlib.Data with other types. https://hg.python.org/cpython/rev/41afb83cffac New changeset dbdd5bc4df99 by Serhiy Storchaka in branch 'default': Issue #26711:

[issue26900] Exclude the private API from the stable API

2016-05-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch excludes the private API from the stable API. This includes: _Py_Identifier-related API (other _Py_Identifier-related functions are already excluded): struct _Py_Identifier; #define _Py_static_string_init(value) #define _Py_static_string(var

[issue26899] struct.pack_into(), struct.unpack_from() don't document support for negative offsets

2016-05-01 Thread Paul Sokolovsky
New submission from Paul Sokolovsky: See https://docs.python.org/3/library/struct.html#struct.pack_into https://docs.python.org/3/library/struct.html#struct.unpack_from Actual source contains code like: if (offset < 0) offset += vbuf.len; to allow specify offsets from the end of a

[issue26711] Fix comparison of plistlib.Data

2016-05-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: Serhiy, I slightly prefer the second patch, but either one would be fine. The reason I asked about explicitly calling __eq__ is that this is an uncommon pattern (at least for me). Ronald -- ___ Python tracker

[issue26898] Typo in the documentation of math.isclose()

2016-05-01 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: commit review -> resolved status: open -> closed type: -> behavior ___ Python tracker _

[issue26898] Typo in the documentation of math.isclose()

2016-05-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 469bc90e8922 by Berker Peksag in branch '3.5': Issue #26898: Fix typo in math.isclose() docstring https://hg.python.org/cpython/rev/469bc90e8922 New changeset 634764b4675c by Berker Peksag in branch 'default': Issue #26898: Fix typo in math.isclose(

[issue26898] Typo in the documentation of math.isclose()

2016-05-01 Thread Marco Buttu
Changes by Marco Buttu : -- title: Error in the -> Typo in the documentation of math.isclose() ___ Python tracker ___ ___ Python-bugs-

[issue26898] Error in the

2016-05-01 Thread SilentGhost
SilentGhost added the comment: LGTM -- nosy: +SilentGhost stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26898] Error in the

2016-05-01 Thread Marco Buttu
New submission from Marco Buttu: The math.isclose() documentation reports is_close() as function name, instead of isclose(): >>> import math >>> math.isclose.__doc__[:45] 'is_close(a, b, *, rel_tol=1e-09, abs_tol=0.0)' -- assignee: docs@python components: Documentation files: is

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-05-01 Thread Berker Peksag
Berker Peksag added the comment: I just saw the same failure on s390x RHEL 3.x: http://buildbot.python.org/all/builders/s390x%20RHEL%203.x/builds/1004/steps/test/logs/stdio == FAIL: test_hash_effectiveness (test.test_set.TestFr

[issue26858] setting SO_REUSEPORT fails on android

2016-05-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +giampaolo.rodola, gvanrossum, haypo, pitrou, yselivanov ___ Python tracker ___ ___ Python-bugs-l

[issue26852] add a COMPILEALL_FLAGS Makefile variable

2016-05-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26851] android compilation and link flags

2016-05-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +twouters ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26884] cross-compilation of extension module links to the wrong python library

2016-05-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- nosy: +dstufft, eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http