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

2018-04-14 Thread Ned Deily
Ned Deily added the comment: It looks like c5ae169e1b73315672770517bf51cf8464286c76 broke find_library on macOS; see Issue33281. -- nosy: +ned.deily ___ Python tracker

[issue33281] ctypes.util.find_library not working on macOS

2018-04-14 Thread Ned Deily
Ned Deily added the comment: Thanks for the report and the good detective work! I see the same results. It appears that the error was introduced by c5ae169e1b73315672770517bf51cf8464286c76 for Issue26439. It looks we need both a fix and a test for this. This really needs

[issue33281] ctypes.util.find_library not working on macOS

2018-04-14 Thread Ian Burgwin
New submission from Ian Burgwin : On Python 3.7.0a4 and later (including 3.7.0b4), find_library currently always returns None on macOS. It works on 3.7.0a3 and earlier. Tested on macOS 10.11 and 10.13. Expected result: Tested on 3.6.5, 3.7.0a1 and 3.7.0a3: >>> from

[issue32616] Significant performance problems with Python 2.7 built with clang 3.x or 4.x

2018-04-14 Thread Ned Deily
Ned Deily added the comment: A followup - Ronald asked: > w.r.t. detection of the clang/llvm version on Apple's system compiler: Is it > worthwhile to do so? Now that Xcode 9.3 (for macOS 10.13+) is officially released, I ran a quick series of test on it and on the most

[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-14 Thread Steve Dower
Steve Dower added the comment: The 2.7 backport was merged by Benjamin into his release branch, which is why the PR shows "closed". -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python

[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +6175 ___ Python tracker ___ ___

[issue32185] SSLContext.wrap_socket sends SNI Extension when server_hostname is IP

2018-04-14 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +6174 ___ Python tracker ___ ___

[issue33148] RuntimeError('Event loop is closed') after cancelling getaddrinfo and closing loop

2018-04-14 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset bba2ba180de91177a73d28551dce71696d472c47 by Benjamin Peterson (Steve Dower) in branch '2.7': bpo-33148: Update Windows build to use OpenSSL 1.0.2o

[issue33148] RuntimeError('Event loop is closed') after cancelling getaddrinfo and closing loop

2018-04-14 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +6173 stage: -> patch review ___ Python tracker ___

[issue33261] inspect.isgeneratorfunction fails on hand-created methods

2018-04-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I would like python_coded_callable.__code__ to be the code object executed > when python_coded_callable is called First of all, that doesn't answer the question of what to do with non-Python coded callables where there is no __code__

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Attached reproducing example for event handlers. If launching more than one EventThread, it abort()'s immediately. -- Added file: https://bugs.python.org/file47535/TkinterHanders.py ___ Python

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-14 Thread Andrés Delfino
Change by Andrés Delfino : -- keywords: +patch pull_requests: +6172 stage: -> patch review ___ Python tracker ___

[issue33280] Update link to Tcl/Tk 8.6 man pages in tkinter.rst

2018-04-14 Thread Andrés Delfino
New submission from Andrés Delfino : There are two links to the Tcl/Tk documentation on tkinter.rst. One of them points to 8.5 man pages. -- assignee: docs@python components: Documentation messages: 315303 nosy: adelfino, docs@python priority: normal severity:

[issue33261] inspect.isgeneratorfunction fails on hand-created methods

2018-04-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I would like python_coded_callable.__code__ to be the code object executed when python_coded_callable is called, just as expected by the isxyz author(s). It has to exist somewhere. Methods m and m3 both return 42 when called, and both

[issue33279] Py_BuildValue is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer types

2018-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This isn't a bug in CPython API. You need to pass arguments of correct type to functions with a variable number of parameters. The compiler doesn't know what type is expected and can't coerce the value automatically. The same

[issue33279] Py_BuildValue is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer types

2018-04-14 Thread Dan Snider
Change by Dan Snider : -- title: Py_Build value is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer types -> Py_BuildValue is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer

[issue33279] Py_Build value is causing crashes with the "L" and "K" format characters when upcasting sub 64-bit integer types

2018-04-14 Thread Dan Snider
New submission from Dan Snider : New to both C and the CPython api so I'm not sure what compiler details matter but this is with VS14 and default compile parameters on windows 10 with 32bit Python. The following function: static PyObject *spam(PyObject *module) {

[issue33176] Allow memoryview.toreadonly()

2018-04-14 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Allow memoryview.cast(readonly=...) -> Allow memoryview.toreadonly() ___ Python tracker

[issue33176] Allow memoryview.cast(readonly=...)

2018-04-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 480ab05d5fee2b8fa161f799af33086a4e68c7dd by Antoine Pitrou in branch 'master': bpo-33176: Add a toreadonly() method to memoryviews. (GH-6466) https://github.com/python/cpython/commit/480ab05d5fee2b8fa161f799af33086a4e68c7dd

[issue33270] tags for anonymous code objects should be interned

2018-04-14 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +6171 stage: needs patch -> patch review ___ Python tracker ___

[issue14573] json iterencode can not handle general iterators

2018-04-14 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is included. -- ___ Python tracker ___

[issue14573] json iterencode can not handle general iterators

2018-04-14 Thread Alfred Morgan
Alfred Morgan added the comment: @serhiy.storchaka while you are doing your overhaul will you please add support for raw json values. I often find myself where I have a serialized object that I want to include in an object response that I'm about to serialize anyway. The

[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset 01a0fd4a3a4cb9928518518acc9c9f2ed6e9a382 by Ned Deily (Miss Islington (bot)) in branch '2.7': [2.7] bpo-33184: Update macOS installer build to use OpenSSL 1.0.2o. (GH-6408) (GH-6471)

[issue33184] Update OpenSSL to 1.1.0h / 1.0.2o

2018-04-14 Thread miss-islington
Change by miss-islington : -- pull_requests: +6170 stage: needs patch -> patch review ___ Python tracker ___

[issue19019] Investigate using Apple clang for building OS X installers

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset 93c91ac8f67ef0819ddacdcca12ef0ae88e5802e by Ned Deily in branch '2.7': [2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470) https://github.com/python/cpython/commit/93c91ac8f67ef0819ddacdcca12ef0ae88e5802e --

[issue17128] OS X system openssl deprecated - installer should build local libssl

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset 93c91ac8f67ef0819ddacdcca12ef0ae88e5802e by Ned Deily in branch '2.7': [2.7] Fix errant NEWS item: bpo-19019 -> bpo-17128 (GH-6470) https://github.com/python/cpython/commit/93c91ac8f67ef0819ddacdcca12ef0ae88e5802e --

[issue17128] OS X system openssl deprecated - installer should build local libssl

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6169 status: pending -> open ___ Python tracker ___

[issue19019] Investigate using Apple clang for building OS X installers

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6168 ___ Python tracker ___ ___ Python-bugs-list

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9 by Ned Deily in branch '2.7': [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469) https://github.com/python/cpython/commit/ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9

[issue24414] MACOSX_DEPLOYMENT_TARGET set incorrectly by configure

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9 by Ned Deily in branch '2.7': [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469) https://github.com/python/cpython/commit/ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9

[issue19019] Investigate using Apple clang for building OS X installers

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9 by Ned Deily in branch '2.7': [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469) https://github.com/python/cpython/commit/ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9

[issue11485] Default SDK value on MacOSX needs changing

2018-04-14 Thread Ned Deily
Ned Deily added the comment: New changeset ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9 by Ned Deily in branch '2.7': [2.7] Backport macOS universal build and installer fixes from 3.6. (GH-6469) https://github.com/python/cpython/commit/ee8e4b61d6181f5bfadf6ee3d229f0ebda8a6ae9

[issue33278] libexpat uses HAVE_SYSCALL_GETRANDOM instead of HAVE_GETRANDOM_SYSCALL

2018-04-14 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : See https://github.com/python/cpython/blob/3.6/Modules/expat/xmlparse.c#L87 The Python configure script tests and sets the variable HAVE_GETRANDOM_SYSCALL. The solution would be to have Python's config script define

[issue19019] Investigate using Apple clang for building OS X installers

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +6166 stage: needs patch -> patch review ___ Python tracker ___

[issue11485] Default SDK value on MacOSX needs changing

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6167 ___ Python tracker ___ ___ Python-bugs-list

[issue24414] MACOSX_DEPLOYMENT_TARGET set incorrectly by configure

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- keywords: +patch pull_requests: +6165 stage: -> patch review ___ Python tracker ___

[issue32726] macOS installer and framework enhancements and changes for 3.7.0 and 3.6.5

2018-04-14 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +6164 ___ Python tracker ___ ___ Python-bugs-list

[issue33261] inspect.isgeneratorfunction fails on hand-created methods

2018-04-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: The only attributes that a method is guaranteed to have are __func__ and __self__ (which are the arguments passed to the MethodType constructor). All other attributes are looked up through __func__ by the C version of the following Python

[issue33261] inspect.isgeneratorfunction fails on hand-created methods

2018-04-14 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I am wondering if, instead, the bug is in m, the object returned by > MethodType, or in attribute lookup thereupon. What would you expect m.__code__ to return then? Methods support arbitrary callables and certainly not all callables

[issue27544] Document the ABCs for instance/subclass checks of dict view types

2018-04-14 Thread Jeffrey McLarty
Change by Jeffrey McLarty : -- nosy: +Jeffrey McLarty ___ Python tracker ___ ___

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: Wait a second... I think I noticed another similar bug. In Tkapp_CallProc. Same case, Tkapp_CallArgs and Tkapp_CallDeallocArgs are called when not holding both locks. The attached example doesn't use Python event handlers, so it didn't

[issue33257] Race conditions in Tkinter with non-threaded Tcl

2018-04-14 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: @terry.reedy Apparently, this bug has gone unnoticed for years (to be precise, since https://github.com/python/cpython/commit/b5bfb9f38c786c3330b2d52d93b664588c42283d in 2002), and there are all kinds of weird rumors circulating about