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

2017-12-22 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: New changeset c0919c27c6442aa147ae559a936b1b8deb4ee783 by Mariatta in branch 'master': bpo-26439: Convert %s in Lib/ctypes/_aix.py to f-strings. (GH-4986)

[issue32380] functools.singledispatch interacts poorly with methods

2017-12-22 Thread Ethan Smith
Change by Ethan Smith : -- keywords: +patch pull_requests: +4873 stage: -> patch review ___ Python tracker ___

[issue32413] Document that locals() may return globals()

2017-12-22 Thread Steven D'Aprano
New submission from Steven D'Aprano : The obvious documentation for locals() fails to mention that when called from the top level of a module (outside of a function or class body) it returns the same dict as globals().

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

2017-12-22 Thread Mariatta Wijaya
Change by Mariatta Wijaya : -- pull_requests: +4872 ___ Python tracker ___ ___

[issue32412] help() of bitwise operators should mention sets as well

2017-12-22 Thread Steven D'Aprano
New submission from Steven D'Aprano : If you ask for help on the set operators ^ & and | then help docs only talk about them as bitwise operators. Since sets and frozensets are important, built-in types, the help should mention them as well. -- assignee:

[issue20291] Argument Clinic should understand *args and **kwargs parameters

2017-12-22 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- nosy: +gphemsley ___ Python tracker ___ ___

[issue32411] Idlelib.browser: stop sorting dicts created by pyclbr

2017-12-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : pyclbr does a linear scan of a file and returns a dict, and Class objects have a dict of children. For objects in the file being scanned, insertion order is the same as line number order. idlelib.browser.transform children filters out

[issue32380] functools.singledispatch interacts poorly with methods

2017-12-22 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: I have also noticed this problem and I like the idea. It appeared some time ago on python-ideas, but no one has written a patch. -- nosy: +levkivskyi ___ Python tracker

[issue32394] socket lib beahavior change in 3.6.4

2017-12-22 Thread Kamil
Kamil added the comment: I suggest inserting the following code into socket.py: if hasattr(sys, 'getwindowsversion') and sys.getwindowsversion()[0] < 10: del socket.TCP_KEEPCNT del socket.TCP_FASTOPEN -- ___ Python tracker

[issue32278] Allow dataclasses.make_dataclass() to omit type information

2017-12-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___

[issue32278] Allow dataclasses.make_dataclass() to omit type information

2017-12-22 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +4871 stage: -> patch review ___ Python tracker ___

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- nosy: +vaultah ___ Python tracker ___ ___

[issue32261] Online doc does not include inspect.classify_class_attrs

2017-12-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> inspect module docs omits many functions ___ Python tracker

[issue17972] inspect module docs omits many functions

2017-12-22 Thread Cheryl Sabella
Change by Cheryl Sabella : -- dependencies: -Online doc does not include inspect.classify_class_attrs keywords: +easy ___ Python tracker

[issue27639] UserList.__getitem__ doesn't account for slices

2017-12-22 Thread Dmitry Kazakov
Change by Dmitry Kazakov : -- pull_requests: +4870 stage: needs patch -> patch review ___ Python tracker ___

[issue32391] Add StreamWriter.wait_closed()

2017-12-22 Thread Nitish
Change by Nitish : -- nosy: +nitishch ___ Python tracker ___ ___ Python-bugs-list

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Change by Benjamin Peterson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 770a802df7057bcf0d72bbc01026fac8d396e1b3 by Benjamin Peterson in branch '2.7': [2.7] bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (GH-4977) (#4980)

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset c1b8eb8006ed79bbf91dc7d89918f39cc10b4fe6 by Benjamin Peterson (Miss Islington (bot)) in branch '3.6': bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (GH-4977) (#4979)

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Change by Benjamin Peterson : -- pull_requests: +4869 ___ Python tracker ___ ___

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Roundup Robot
Change by Roundup Robot : -- pull_requests: +4868 ___ Python tracker ___

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 8a5877165e993afb2633cd48da5222326d3f6e0e by Benjamin Peterson in branch 'master': bpo-24960: use pkgutil.get_data in lib2to3 to read pickled grammar files (#4977)

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-12-22 Thread Neil Schemenauer
Neil Schemenauer added the comment: Hello Raymond, I don't have anything ready to go. PR 4682 has some major outstanding issues. Specifically, exits from finally bodies did not cleanup the fblock stack correctly. I still think this patch is a good idea and that it

[issue24960] Can't use lib2to3 with embeddable zip file.

2017-12-22 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +4867 stage: needs patch -> patch review ___ Python tracker ___

[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I tend to get nosied on all 2to3 issues, but I only just started caring about this one. :) Thanks for finding the prior art. -- ___ Python tracker

[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread R. David Murray
R. David Murray added the comment: Funny, you are already nosy on that issue. Does this one have a different goal, or did you just forget about that one? -- ___ Python tracker

[issue32407] lib2to3 doesn't work when zipped

2017-12-22 Thread R. David Murray
R. David Murray added the comment: Duplicate of issue 24960. -- nosy: +r.david.murray resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Can't use lib2to3 with embeddable zip file. ___ Python

[issue22908] ZipExtFile in zipfile can be seekable

2017-12-22 Thread John Jolly
John Jolly added the comment: Please be gentle, this is my first submission to python. The use case for me was a recursive zip-within-a-zip situation. I wanted to allow the creation of a zipfile.ZipFile from an existing zipfile.ZipExtFile, but the lack of seek prevented

[issue32409] venv activate.bat is UTF-8 encoded but uses current console codepage

2017-12-22 Thread Eryk Sun
Eryk Sun added the comment: The CMD shell decodes batch scripts using the attached console's output codepage, which defaults to OEM. OTOH, venv writes the replacement values for the template activate.bat as UTF-8 (codepage 65001), which is correct and should not be

[issue32396] Implement method to write/read to serials without blocking on windows with asyncio

2017-12-22 Thread Andrew Svetlov
Andrew Svetlov added the comment: Looking on serial port support in twisted (https://github.com/twisted/twisted/blob/trunk/src/twisted/internet/_win32serialport.py) I see that it is implemented by OVERLAPPED structure and ReadFile/WriterFile calls. On other hand

[issue32410] Implement loop.sock_sendfile method

2017-12-22 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +4866 stage: -> patch review ___ Python tracker ___

[issue32410] Implement loop.sock_sendfile method

2017-12-22 Thread Andrew Svetlov
New submission from Andrew Svetlov : The method should be low-level coroutine, implemented on loops with native sendfile support only (UnixEventLoop). The signature should be close to socket.sendfile() method Next step is implementing loop.sendfile(transport, ...)

[issue32409] venv activation doesn't work, if project is in a Windows folder that has latin-1 supplement characters (such as ä,ö,å) in its path

2017-12-22 Thread Jaakko Roponen
New submission from Jaakko Roponen : Let's say I have a folder c:\test-ä in Windows Now if I run: py -m venv env and activate: env\scripts\activate and check: where python the result is incorrectly just:

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-22 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +4865 stage: -> patch review ___ Python tracker ___

[issue32337] Dict order is now guaranteed, so add tests and doc for it

2017-12-22 Thread shangdahao
Change by shangdahao : -- keywords: +patch pull_requests: +4864 stage: needs patch -> patch review ___ Python tracker ___

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2017-12-22 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +4863 stage: -> patch review ___ Python tracker ___

[issue32390] AIX (xlc_r) compile error with Modules/posixmodule.c: Function argument assignment between types "unsigned long" and "struct fsid_t" is not allowed

2017-12-22 Thread Michael Felt
Michael Felt added the comment: Well, replied via email response - but it did not show up here. You suggestion worked. I'll start a PR and we can see if your suggestion also works for all the other platforms. -- ___ Python

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-22 Thread Michael Felt
Michael Felt added the comment: Understood. What I have learned. Although the types are quite different, they are both 16 bytes. Starting with AIX 6.1, libc includes uuid_create(, ) which fills "uuid" with a uuid.uuid1() like result. After calling uuid_to_string( ,

[issue32399] _uuidmodule.c cannot build on AIX - different typedefs of uuid_t, etc..

2017-12-22 Thread Michael Felt
Change by Michael Felt : -- type: -> behavior ___ Python tracker ___ ___

[issue17611] Move unwinding of stack for "pseudo exceptions" from interpreter to compiler.

2017-12-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Are one of the variants of this patch ready to apply? I'm hoping that the window for 3.7 isn't missed. -- ___ Python tracker

[issue29877] compileall hangs when accessing urandom even if number of workers is 1

2017-12-22 Thread Dustin Spicuzza
Dustin Spicuzza added the comment: Finally got around to looking at this. # cat /proc/sys/kernel/random/entropy_avail 183 .. ran python3 -c 'import os; os.getrandom(1, flags=os.GRND_NONBLOCK)' a few times, but didn't run into a hang. Seems like the entropy_avail