[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

[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:

[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

[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