[issue36146] Refactor setup.py

2019-02-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12100 stage: -> patch review ___ Python tracker ___ ___

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Guido van Rossum
Guido van Rossum added the comment: A similar thing seems to be the list of keywords in Lib/pydoc.py. The recipe says # CAUTION: if you change one of these dictionaries, be sure to adapt the # list of needed labels in Doc/tools/extensions/pyspecific.py and #

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Noted. Releasing this in favor of when pgen is implemented in Python to solve this. -- ___ Python tracker ___

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: Obviously because you do not tell clang where to find those headers. -- ___ Python tracker ___

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do not haste with this. After implementing pgen in Python, Lib/keyword.py can be generated directly by pgen. -- nosy: +serhiy.storchaka ___ Python tracker

[issue36143] Auto-generate Lib/keyword.py

2019-02-28 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I am working on this. Shouldn't there be a PR by tomorrow from me. Someone else can take it on. -- nosy: +nanjekyejoannah ___ Python tracker

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Paul Ganssle
Change by Paul Ganssle : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23794] http package should support HTTP/2

2019-02-28 Thread Ludovic Gasc
Change by Ludovic Gasc : -- nosy: -Ludovic.Gasc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36126] Reference count leakage in structseq_repr

2019-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: -> resolved status: open -> closed type: behavior -> resource usage ___ Python tracker ___

[issue36126] Reference count leakage in structseq_repr

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 69b4a17f342146d6b7a73975a37678db9916aa75 by Serhiy Storchaka (Gao, Xiang) in branch '2.7': bpo-36126: Fix ref count leakage in structseq_repr. (GH-12035) https://github.com/python/cpython/commit/69b4a17f342146d6b7a73975a37678db9916aa75

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
muhzi added the comment: Yes, pretty much so, which I think was what caused the pthread problem. Why would it fail to find the headers? -- ___ Python tracker ___

PyCA cryptography 2.6.1 released

2019-02-28 Thread Paul Kehrer
PyCA cryptography 2.6.1 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 2.7,

NumPy 1.16.2 released.

2019-02-28 Thread Charles R Harris
Hi All, On behalf of the NumPy team I am pleased to announce the release of NumPy 1.16.2. This is a quick release fixing several problems encountered on Windows. The Python versions supported are 2.7 and 3.5-3.7. The Windows problems addressed are: - DLL load problems for NumPy wheels on

PyCA cryptography 2.6

2019-02-28 Thread Alex Gaynor
PyCA cryptography 2.5 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 2.7, Python

[issue31652] make install fails: no module _ctypes

2019-02-28 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36134] test failure : test_re; recipe for target 'test' failed

2019-02-28 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> test_re is failing when local is set for `en_IN` ___ Python tracker

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Change by Xavier de Gaye : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: There is a bug in the implementation of pymonotonic() in Python/pytime.c: The call to pytime_fromtimespec() is not encapsulated by an #ifdef HAVE_CLOCK_GETTIME. @muhzi It seems that your pyconfig.h is generated with configure failing to find the NDK

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-02-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be simpler to just drop the support of Python versions <3.7 in new MyPy versions? -- nosy: +serhiy.storchaka ___ Python tracker

Re: Lifetime of a local reference

2019-02-28 Thread Chris Angelico
On Thu, Feb 28, 2019 at 11:13 PM Rhodri James wrote: > > On 27/02/2019 21:39, Roel Schroeven wrote: > > Rhodri James schreef op 27/02/2019 om 15:18: > > Aren't we overthinking this? > > > > I think it's pretty clear that a variable is never deleted before it > > goes out of scope. A quick search

Re: Lifetime of a local reference

2019-02-28 Thread Rhodri James
On 27/02/2019 21:39, Roel Schroeven wrote: Rhodri James schreef op 27/02/2019 om 15:18: Aren't we overthinking this? I think it's pretty clear that a variable is never deleted before it goes out of scope. A quick search in the documentation points me to

[issue29397] linux/random.h present but cannot be compiled

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: It's a CentOS 5 system with Kernel 2.6.18. The getrandom() syscall was added in Linux Kernel version 3.17. Your OS simply lacks the necessary feature to use linux/random.h. Python will automatically fall back to /dev/urandom. -- nosy:

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: The change sounds like a good idea and should be backported, too. IIRC mmap() performance also depends on MMU and TLB speed. In the past I have seen paravirtualized systems with poor MMU performance that caused fork() to be slow and Redis to hang.

[issue36145] android arm cross compilation fails, config issue

2019-02-28 Thread muhzi
Change by muhzi : -- title: android arm cross compilation fails, h -> android arm cross compilation fails, config issue ___ Python tracker ___

[issue36145] android arm cross compilation fails, h

2019-02-28 Thread muhzi
New submission from muhzi : This is a follow up of #36141, I'm trying to build python for android armv7a. The problem was the configure script fails to find pthread_create in the android headers. Now after getting past the configuration, I get a build error: armv7a-linux-androideabi16-clang

[issue29397] linux/random.h present but cannot be compiled

2019-02-28 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Davide Rizzo
Davide Rizzo added the comment: munmap() of private maps is usually pretty fast but not negligible (2 ms for 1GB). Shared maps are much slower. For some reason, shared maps explicitly backed by POSIX shared memory stand in between but are still pretty slow. If someone cares about

[issue29571] test_re is failing when local is set for `en_IN`

2019-02-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Similar issue reported on debian9.8 stretch with python 3.7.2 and en_IN : issue36134 -- nosy: +xtreak ___ Python tracker ___

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: This is a different problem. Please create a new issue and attach pyconfig.h. -- ___ Python tracker ___

[issue31652] make install fails: no module _ctypes

2019-02-28 Thread Thrlwiti
Change by Thrlwiti : -- nosy: +THRlWiTi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36137] SSL verification fails for some sites inside windows docker container

2019-02-28 Thread Christian Heimes
Christian Heimes added the comment: Err, I meant #36011 The enum cert store trick only breaks on a fresh installation. If you have used Windows for a bit (e.g. downloaded Firefox with Edge *g*), the root CA store is filled with common CA certs. Your certutil trick also works, as it triggers

[issue30235] Validate shutil supports path-like objects, update docs accordingly

2019-02-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: One thing to note is the copy_function parameter: if a path-like object is given as input should the copy_function receive the same object instead of a path string? >>> copytree(path_like_src, path_like_dst, copy_function=foo) Because of issue33695 in

[issue36144] Dictionary addition.

2019-02-28 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
muhzi added the comment: OK! NDK version is 19.1.5304403 Cool, so I uploaded the output of configure (attachments) Sorry for the confusion about pyconfig.h, what I was trying to say is after providing ac_cv_pthread_is_default=yes to configure I get errors in make: Python/pytime.c:911:9:

Re: Using PyArg_ParseTuple to with optional fields.

2019-02-28 Thread Stefan Behnel
Anthony Flury via Python-list schrieb am 28.02.19 um 10:18: > I am trying to write an extension module with a function (actually an > __init__ method, but I am not sure that matters) where the function can be > called as either : > >     my_func() > > or > >     my_func( a, b, c, d) - where

Using PyArg_ParseTuple to with optional fields.

2019-02-28 Thread Anthony Flury via Python-list
I am trying to write an extension module with a function (actually an __init__ method, but I am not sure that matters) where the function can be called as either :     my_func() or     my_func( a, b, c, d) - where a,b,c,d are all doubles. I would prefer not to allow the function to be

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread Xavier de Gaye
Xavier de Gaye added the comment: > The problem extends after the configuration. It's as if the android headers > are not visible to configure. All the macros are undefined in the pyconfig > file too btw. pyconfig.h is generated by configure from pyconfig.h.in. Please attach the new output

[issue36144] Dictionary addition.

2019-02-28 Thread Stefan Behnel
Stefan Behnel added the comment: > We already have a syntax for dict merging: {**d1, **d2}. Which doesn't mean that "d1 + d2" isn't much more intuitive than this special-character heavy version. It takes me a while to see the dict merge under that heap of stars. And that's already the

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Davide Rizzo
Davide Rizzo added the comment: Yes, this is mmap module. I found this to be slow for posix-shm-backed mmaps. Several milliseconds, like 20ms for a 128 MB object. Maybe the same can happen with private|anon mmaps? I will follow up with more numbers. --

[issue36141] configure: error: could not find pthreads on your system during cross compilation

2019-02-28 Thread muhzi
muhzi added the comment: Well, it solves the problem with the configure script. My pyconfig.h.in contains: /* Define to 1 if you have the header file. */ #undef HAVE_PTHREAD_H /* Define to 1 if you have the `pthread_init' function. */ #undef HAVE_PTHREAD_INIT /* Define to 1 if you have

Re: Lifetime of a local reference

2019-02-28 Thread Marko Rauhamaa
Alan Bawden : > Gregory Ewing writes: > >> Alan Bawden wrote: >> > the Java Language >> > Specification contains the following language: >> >Optimizing transformations of a program can be designed that reduce >> >the number of objects that are reachable to be less than those which >> >

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Inada Naoki
Inada Naoki added the comment: Sorry, I messed up. Your PR is changing mmap module, not obmalloc. -- ___ Python tracker ___ ___

[issue36144] Dictionary addition.

2019-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > In Python, the plus operator for sequences (strings, lists, > tuples) is non-commutative. For sequences, that is obvious and expected, but not so much with mappings where the order of overlapping keys is determined by the left operand and the value

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attached a draft PR for discussion purposes. Let me know what you think (I'm not wedded to any part of it). -- ___ Python tracker ___

[issue13850] Summary tables for argparse add_argument options

2019-02-28 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi @Raymond, Yep, I understand about the "look", I have seen the result after the build of the doc but the patch was like that and I did not want to change the initial patch. Would you suggest one layout and I could update the PR with your

[issue35892] Fix awkwardness of statistics.mode() for multimodal datasets

2019-02-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +12099 stage: -> patch review ___ Python tracker ___ ___

[issue36139] release GIL on mmap dealloc

2019-02-28 Thread Inada Naoki
Inada Naoki added the comment: Your patch is modifying obmalloc. It uses MAP_PRIVATE|MAP_ANONYMOUS mmap. Does it really take log time? How? #1572968 is different. It is mmap module. It can use file-backed mmap. It is I/O. -- nosy: +inada.naoki

<    1   2