[issue32591] Deprecate sys.set_coroutine_wrapper and replace it with more focused API(s)

2018-01-17 Thread Nathaniel Smith
New submission from Nathaniel Smith : sys.set_coroutine_wrapper is a problematic API. It was added to solve a specific problem: asyncio debug mode wanting to track where coroutine objects are created, so that when unawaited coroutines are GC'ed, the warning they print can include a traceback.

[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-01-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: Oh I can just imagine the bike-shedding on this one :-) I'm not really convinced this is needed, but for what it's worth I think that given the intended use-case (checking function parameters) ValueError would be a more appropriate default exception type. Th

[issue31087] asyncio.create_subprocess_* do not honor `encoding`

2018-01-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: Python's codecs already support partial decode, exactly to handle this kind of case. See codecs.getincremental{en,de}coder and https://docs.python.org/3/library/codecs.html#incremental-encoding-and-decoding -- nosy: +njs

[issue31087] asyncio.create_subprocess_* do not honor `encoding`

2018-01-17 Thread Dima Tisnek
Dima Tisnek added the comment: I'd love to see universal_newlines=True in asyncio.subprocess. -- nosy: +Dima.Tisnek ___ Python tracker ___ _

[issue32589] Statistics as a result from timeit

2018-01-17 Thread Matthias Gilch
Matthias Gilch added the comment: Population seemed appropriate to me. I'd define the list of times as a whole "population" that stands for its own. I should probably add both, the sample and population, values. -- ___ Python tracker

[issue32589] Statistics as a result from timeit

2018-01-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: > What sort of statistics...? I answered my own question... I see that in your PR, you return a dict with the mean, median, *population* variance and standard deviation, and total. Why the population variance/stdev rather than the sample? That seems inappro

[issue32589] Statistics as a result from timeit

2018-01-17 Thread Steven D'Aprano
Steven D'Aprano added the comment: What sort of statistics, and why do you think they are going to be meaningful? Measurement errors in the timings aren't two-sided, they are only one-sided, which means calculating the mean and standard deviation isn't appropriate. This is documented in the T

[issue32590] Proposal: add an "ensure(arg)" builtin for parameter validation

2018-01-17 Thread Nick Coghlan
New submission from Nick Coghlan : This proposal is an outcome of repeated requests on python-ideas that assert statements be made unconditional, so they can be legitimately used for parameter validation, rather than solely as a form of inline self-test. Rather than changing the assert stateme

[issue32589] Statistics as a result from timeit

2018-01-17 Thread Matthias Gilch
Change by Matthias Gilch : -- keywords: +patch pull_requests: +5076 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32589] Statistics as a result from timeit

2018-01-17 Thread Matthias Gilch
New submission from Matthias Gilch : I propose to add a function parameter for timeit to get some statistics back from it. I think it's inconvenient to write those stubs every time when we have a method for this in the standard library that could be easily used with a few changes in it. -

[issue32588] Move _findvs into its own extension module

2018-01-17 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +5075 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue32588] Move _findvs into its own extension module

2018-01-17 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +5074 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue29911] Uninstall command line in Windows registry does not uninstall

2018-01-17 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32588] Move _findvs into its own extension module

2018-01-17 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue14127] add st_*time_ns fields to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds

2018-01-17 Thread Jesús Cea Avión
Change by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-17 Thread Steve Dower
Steve Dower added the comment: I don't think it's too late (and I don't think this counts as a feature either, so the b1 deadline doesn't apply), but the patch would need to include an update to What's New as well as the usual stuff. -- ___ Python

[issue29406] asyncio SSL contexts leak sockets after calling close with certain Apache servers

2018-01-17 Thread Angie G
Change by Angie G : -- components: +Build, SSL type: resource usage -> performance ___ Python tracker ___ ___ Python-bugs-list mailin

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-17 Thread Eryk Sun
Eryk Sun added the comment: PyWin32's win32api.RegQueryValueEx and win32api.RegEnumValue also use the same documented interpretation of REG_MULTI_SZ [1] (i.e. a "sequence of null-terminated strings, terminated by an empty string"). [1]: https://msdn.microsoft.com/en-us/library/ms724884 Howev

[issue32566] Not able to open Python IDLE

2018-01-17 Thread Steve Dower
Steve Dower added the comment: Looks like you have a prerelease version of the CRT on your machine. Try finding and installing the latest Visual C++ 2017 Redistributables from Microsoft. A newer version would have been installed by Python but since it wasn't I assume you have some other prog

[issue3177] Add shutil.open

2018-01-17 Thread Daniel Plakhotich
Daniel Plakhotich added the comment: > tl;dr: shutil.whatever should call startfile(..., 'edit') or xdg-open; other > actions implemented by startfile are not cross-platform. xdg-open is just a shell script that calls desktop-specific launchers. The behavior of these launchers is very differe

[issue9033] cmd module tab misbehavior

2018-01-17 Thread Daniel
Daniel added the comment: I can confirm this behaviour for python 3.6.0 on Mac OS X 10.12.6 -- nosy: +boompig versions: +Python 3.6 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker __

[issue32588] Move _findvs into its own extension module

2018-01-17 Thread Steve Dower
Steve Dower added the comment: Actually, I'd prefer not dropping it into the Lib directory, so probably DLLs/_distutils_findvs.pyd is the way to go. -- ___ Python tracker ___

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2018-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's a proposed fix in https://github.com/python/cpython/pull/5216 It would be nice if someone able to reproduce this issue could test it (the reproducer script here wouldn't work with the new SimpleQueue implementation). -- ___

[issue32576] concurrent.futures.thread deadlock due to Queue in weakref callback

2018-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the heads up Mark. Unfortunately the reproducer script https://bugs.python.org/issue21009 needs to hack into Queue.get(), which isn't possible for the C-implemented SimpleQueue. -- ___ Python tracker <

[issue32588] Move _findvs into its own extension module

2018-01-17 Thread Steve Dower
New submission from Steve Dower : The _findvs module I added for distutils has added load-time dependencies on the ole32 and oleaut32 DLLs. To reduce startup time, we should move _findvs into its own .pyd (unless I hear a better suggestion, I like "distutils._findvs.pyd"). -- componen

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset e860089fd93728824cf586fa4d91f08eff3bab73 by Victor Stinner in branch 'master': bpo-32226: Fix memory leak in generic_alias_dealloc() (#5212) https://github.com/python/cpython/commit/e860089fd93728824cf586fa4d91f08eff3bab73 -- _

[issue32576] concurrent.futures.thread deadlock due to Queue in weakref callback

2018-01-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: concurrent.futures.thread potential deadlock due to Queue in weakref callback -> concurrent.futures.thread deadlock due to Queue in weakref callback ___ Python tracker _

[issue21009] Potential deadlock in concurrent futures when garbage collection occurs during Queue.get

2018-01-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: there's a PR on the other issue i opened for this without noticing this one so i'm marking this as the dup. -- nosy: +gregory.p.smith resolution: -> duplicate stage: -> patch review status: open -> closed superseder: queue.Queue() is not reentrant,

[issue32580] Fallback to dev_urandom doesn't work when py_getrandom returns -1

2018-01-17 Thread Jernej Simončič
Jernej Simončič added the comment: Qnap is a NAS, and while I'm running Gentoo inside LXC, EFAULT is returned by getrandom syscall even in the host OS. The model I'm doing this on is TS-228, uname -a of the host OS reports: Linux qnap 3.10.20-al-2.5.3 #67 SMP PREEMPT Sat Dec 30 04:29:34 CST 2

[issue30693] tarfile add uses random order

2018-01-17 Thread Ned Deily
Ned Deily added the comment: This doesn't seem appropriate to me for backporting to existing releases (3.6. and 2.7). AFAIK, the current file-system-order behavior has never been identified as a bug. Unless there is a stronger case for changing the existing 3.6.x behavior, I am -1 on backpo

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-17 Thread Ned Deily
Change by Ned Deily : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ ___ Python

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: Well, mostly I just want to draw your attention to that use case to encourage you to make it public when it's ready :-) -- ___ Python tracker __

[issue32576] concurrent.futures.thread potential deadlock due to Queue in weakref callback

2018-01-17 Thread Mark Dickinson
Mark Dickinson added the comment: See also https://bugs.python.org/issue21009 -- nosy: +mark.dickinson ___ Python tracker ___ ___ Py

[issue32587] Make REG_MULTI_SZ support PendingFileRenameOperations

2018-01-17 Thread Seppo Yli-Olli
New submission from Seppo Yli-Olli : MSDN documents that REG_MULTI_SZ is not supposed to have \0\0 anywhere else than in the end. The comment in https://github.com/python/cpython/blob/a5293b4ff2c1b5446947b4986f98ecf5d52432d4/PC/winreg.c#L504 clearly shows that Python has the assumption that th

[issue32529] Call readinto in shutil.copyfileobj

2018-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

[issue32529] Call readinto in shutil.copyfileobj

2018-01-17 Thread YoSTEALTH
Change by YoSTEALTH : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue32586] urllib2 HOWTO URLError example minor error

2018-01-17 Thread Tim Morris
New submission from Tim Morris : In the HOWTO for urllib2 for Python 2, in the Handling Exceptions section, it discusses the URLError exception being raised by urlopen() (https://docs.python.org/2/howto/urllib2.html#urlerror). The code snippet example for this has (I think) a minor error: the

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Because this API is experimental. It was changed in recent 24 hours and may be changed more before merging or even after releasing 3.7. -- ___ Python tracker _

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 5222 provides functions _PyObject_LookupAttr() and _PyObject_LookupAttrId() with alternate interface. Some code becomes even more simpler. The possible drawback of this approach is that the compiler should allocate the variable for the result on the stac

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-17 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +5073 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32585] Add ttk::spinbox to tkinter.ttk

2018-01-17 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +5072 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue32585] Add ttk::spinbox to tkinter.ttk

2018-01-17 Thread Alan Moore
New submission from Alan Moore : Ttk has a spinbox widget, which is a themed version of Tkinter spinbox, but this is missing from Python's ttk implementation. -- components: Tkinter messages: 310198 nosy: Alan Moore priority: normal severity: normal status: open title: Add ttk::spinbox

[issue32580] Fallback to dev_urandom doesn't work when py_getrandom returns -1

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: OK, looks like Qnap is doing something weird there - calls to getrandom result in EFAULT Aha, first time that I see this error on getrandom(). Is it a kernel change? A libc change? Is Qnap a kind of sandbox? -- __

[issue32580] Fallback to dev_urandom doesn't work when py_getrandom returns -1

2018-01-17 Thread Jernej Simončič
Jernej Simončič added the comment: OK, looks like Qnap is doing something weird there - calls to getrandom result in EFAULT, which results in . PHP had the same problem: https://bugs.php.net/bug.php?id=75409 Changing "if (errno == ENOSYS || errno == EPERM) {" to "if (errno == ENOSYS || errno

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread Jeethu Rao
Jeethu Rao added the comment: It's also interesting that in https://gist.github.com/pitrou/29eb7592fa1eae2be390f3bfa3db0a3a : | django_template | 307 ms| 312 ms | 1.02x slower | Not significant| It seems to be slower and the benchmarks before it (2to3, c

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: Gives same outcome but maybe someone else can confir, -- ___ Python tracker ___ ___ Python-bugs-lis

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: In https://gist.github.com/jeethu/dc0811d415dd6d1a1621761e43842f88 I read: | django_template | 160 ms | 129 ms | 1.24x faster | Significant (t=15.05) | So on this benchmark, the optimization seems significant. But in the same paste, I see other benchmarks 1.2

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: uuid_create only I think. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32584] Uninitialized free_extra in code_dealloc

2018-01-17 Thread Jeethu Rao
New submission from Jeethu Rao : In one of patches I'm building, (yet another attempt at caching LOAD_GLOBALS)[1], I'm using the private APIs from PEP 523 to store an array with every code object. I'm calling _PyEval_RequestCodeExtraIndex with PyMem_Free for the freefunc argument. While runnin

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread Michael Felt
Michael Felt added the comment: typo here: So, I think the AMD64 FreeBSD 10.x Shared 3.x uuid_create() function is wrong (if that is what it is using - was it/can it also use the uuid_generate* routines? i.e., does AMD FreeBSD use uuid_create() or uuid_generate() - or can it use both? Coul

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread Jeethu Rao
Jeethu Rao added the comment: > What is 54640? That's the pid of the process. > I'm interested to know which benchmarks call list.insert() 40k times. The django_template benchmark. -- ___ Python tracker __

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2018-01-17 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
New submission from Alexander Sibiryakov : The CPython interpreter gets SIGSEGV or SIGABRT during the run. The script attempts to decode binary file using UTF-16-LE encoding and custom error handler. The error handler is poorly built, and doesn't respect the unicode standard with wrong calcula

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: > Sure! https://gist.github.com/jeethu/000a2d3ecd9033c0ef51331f062ac294 I don't understand how to read this output. "54640 ins1 called 40050 times" What is 54640? I'm interested to know which benchmarks call list.insert() 40k times. --

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread Michael Felt
Michael Felt added the comment: Actually, the libc/libuuid function called should be setting the version/variant values as well. So, I think the AMD64 FreeBSD 10.x Shared 3.x uuid_generate() function is wrong (if that is what it is using - was it/can it also use the uuid_generate* routines?

[issue30811] A venv created and activated from within a virtualenv uses the outer virtualenv's site-packages rather than its own.

2018-01-17 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Would it be possible for venv to do this automatically? Instead of using sys.executable, use import sysconfig dirname, exename = sysconfig.get_config_vars('BINDIR', 'BUILDPYTHON') to populate values in the context? -- nosy: +uranusjr ___

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
Change by Alexander Sibiryakov : Added file: https://bugs.python.org/file47392/test_string.bin ___ Python tracker ___ ___ Python-bugs-list ma

[issue32583] Crash during decoding using UTF-16/32 and custom error handler

2018-01-17 Thread Alexander Sibiryakov
Change by Alexander Sibiryakov : -- files: decode_crash.py nosy: sibiryakov priority: normal severity: normal status: open title: Crash during decoding using UTF-16/32 and custom error handler type: crash versions: Python 3.5, Python 3.7 Added file: https://bugs.python.org/file47391/deco

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread Jeethu Rao
Jeethu Rao added the comment: > > I still think those numbers are misleading or downright bogus. There is no > > existing proof that list.insert() is a critical path in those benchmarks. > Can someone check if these bencmarks really use list.insert() in hot code? If > yes, why? :-) The cost

[issue32577] Pip creates entry point commands in the wrong place when invoked in a venv nested in a virtualenv

2018-01-17 Thread Tzu-ping Chung
Tzu-ping Chung added the comment: Yup, seems so. Closing as duplicate then. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue32566] Not able to open Python IDLE

2018-01-17 Thread Kiran
Kiran added the comment: Hi, Can someone help me to resolve the issue or let me know the cause of this error. Thanks in advance. -- ___ Python tracker ___ ___

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: But accidentally,with the "password = "" " in the configure files ,which are called by my services, the service will start successfully,and with "password = ",the services can not.On the other hand ,I just set the option "addr = "127.0.0.1"",why the option "pas

[issue32582] chr raises OverflowError

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: It's more an implementation issue. I proposed PR 5218 to also raise a ValueError on overflow. I propose to only change Python 3.7, and only Python 2.7 and 3.6 unchanged. -- nosy: +vstinner versions: +Python 3.7 -Python 3.6 ___

[issue32582] chr raises OverflowError

2018-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5071 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread R. David Murray
R. David Murray added the comment: I'll defer to Lukasz, but I don't believe this is a bug. An empty value and a value of "" are equivalent in config.ini syntax, as far as I know. -- nosy: +lukasz.langa ___ Python tracker

[issue32582] chr raises OverflowError

2018-01-17 Thread Uwe Kleine-König
New submission from Uwe Kleine-König : Hello, the description for chr (from https://docs.python.org/3/library/functions.html#chr) reads as: Return the string representing a character whose Unicode code point is the integer i. [...] The valid range for the argument is fr

[issue29240] PEP 540: Add a new UTF-8 mode

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: test_readline pass again on all buildbots, especially on FreeBSD 3.6 and 3.x buildbots. There are no more known issues, the implementation of the PEP 540 (UTF-8 Mode) is now complete! -- resolution: -> fixed stage: patch review -> resolved status: o

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: The configure file "test.ini": [section_a] addr = "127.0.0.1" password = "" Change the value of addr by the "test.py": import ConfigParser tmpfile = "test.ini" conf = ConfigParser.ConfigParser() conf.read(tmpfile) conf.set("section_a", "addr", "\"127.0.0.2\"") c

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
jiangjinhu added the comment: def write(self, fp): """Write an .ini-format representation of the configuration state.""" if self._defaults: fp.write("[%s]\n" % DEFAULTSECT) for (key, value) in self._defaults.items(): fp.write("%s = %s\n" %

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3a0cf931796b9ad1b4833ab89c79d284b4253c91 by Victor Stinner in branch 'master': bpo-32248: Fix test_importlib.test_open() (#5213) https://github.com/python/cpython/commit/3a0cf931796b9ad1b4833ab89c79d284b4253c91 -- _

[issue30693] tarfile add uses random order

2018-01-17 Thread Christian Heimes
Christian Heimes added the comment: The patch changes behavior. It's fine for 3.7 but not for 3.6/2.7. Somebody may depend on filesystem order. -- versions: -Python 3.5 ___ Python tracker __

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread R. David Murray
R. David Murray added the comment: Please provide a way to reproduce the problem you are observing. There is insufficient information here so far to understand the problem. -- nosy: +r.david.murray ___ Python tracker

[issue30693] tarfile add uses random order

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: The only warranty in that TarFile.getmembers(), TarFile.getnames() and ZipFile.infolist() returns members/names "in the same order as the members in the archive". Currently, there is no warranty when packing, only on unpack. -- nosy: +vstinner _

[issue30693] tarfile add uses random order

2018-01-17 Thread R. David Murray
R. David Murray added the comment: Ah, I was just going to ask about that. I guess I'm -0 on the backport as well. The other reproducible build stuff is only going to land in 3.7. However, this is in a more general category than the pyc stuff, so I can see the argument for backporting it.

[issue30693] tarfile add uses random order

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: Since we currently don't warranty *anything* about ordering, I like the idea of *fixing* Python 2.7 and 3.6 as well. +1 for fix it in 2.7, 3.6 and master. -- nosy: +vstinner ___ Python tracker

[issue32581] A bug of the write funtion of ConfigParser.py

2018-01-17 Thread jiangjinhu
New submission from jiangjinhu : By the write funtion of ConfigParser.py,the partial content of the configue will change. -- components: Library (Lib) messages: 310168 nosy: jiangjinhu666 priority: normal severity: normal status: open title: A bug of the write funtion of ConfigParser.py

[issue30693] tarfile add uses random order

2018-01-17 Thread Christian Heimes
Christian Heimes added the comment: PS: I'm -0 to backport the change to 3.6 and 2.7. 3.5 is in security fix mode and therefore completely out of scope. -- versions: -Python 3.5 ___ Python tracker _

[issue30693] tarfile add uses random order

2018-01-17 Thread Christian Heimes
Christian Heimes added the comment: +1 from me In my opinion it's both a good idea to not sort the result of glob.glob() and make the order of tar and zip module content ordered. The glob module is low level and it makes sense to expose the file system sort order. On the other hand tar and z

[issue11192] test_socket error on AIX

2018-01-17 Thread Michael Felt
Michael Felt added the comment: I have tried jumping into the pdp using but do not come much further in understanding how the expectations expressed in these comments are satisfied: +2153 # Tests for the sendmsg()/recvmsg() interface. Where possible, the +2154 # same test code is used wi

[issue30693] tarfile add uses random order

2018-01-17 Thread R. David Murray
R. David Murray added the comment: Given the reproducible builds angle, I'd say this was worth doing. -- nosy: +r.david.murray ___ Python tracker ___ __

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: > I still think those numbers are misleading or downright bogus. There is no > existing proof that list.insert() is a critical path in those benchmarks. Can someone check if these bencmarks really use list.insert() in hot code? If yes, why? :-) The cost of l

[issue32580] Fallback to dev_urandom doesn't work when py_getrandom returns -1

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: > I'm playing with Gentoo in LXC running on ARM-based QNAP NAS, and when trying > to compile Python 3.5.4, the build failed with "Fatal Python error: failed to > get random numbers to initialize Python" (full details at > https://forums.gentoo.org/viewtopic-p

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le 17/01/2018 à 14:36, Jeethu Rao a écrit : > > On the other hand, on the pyperformance comparison I'd posted yesterday[1], > there seems to be an average improvement of 1.27x on the first seven > benchmarks, and the slowest slowdown is only 1.03x. I still

[issue32534] Speed-up list.insert: use memmove()

2018-01-17 Thread Jeethu Rao
Jeethu Rao added the comment: > FWIW, we've encountered a number of situations in the past when something > that improved the timings on one compiler would make timings worse on another > compiler. There was also variance between timings on 32-bit builds versus > 64-bit builds. I've verifie

[issue32577] Pip creates entry point commands in the wrong place when invoked in a venv nested in a virtualenv

2018-01-17 Thread R. David Murray
R. David Murray added the comment: This is sounds like a variation on issue 30811. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue32580] Fallback to dev_urandom doesn't work when py_getrandom returns -1

2018-01-17 Thread Jernej Simončič
New submission from Jernej Simončič : I'm playing with Gentoo in LXC running on ARM-based QNAP NAS, and when trying to compile Python 3.5.4, the build failed with "Fatal Python error: failed to get random numbers to initialize Python" (full details at https://forums.gentoo.org/viewtopic-p-8172

[issue19417] Bdb: add a unittest file (test.test_bdb)

2018-01-17 Thread Xavier de Gaye
Xavier de Gaye added the comment: PR 5217 adds the test.test_bdb module and provides a framework for adding more tests to the bdb module. Added versions 3.6 and 2.7. This is consistent with what was done in issues #21916 and #25616 for example, but the main reason is that most bdb bug fixes

[issue19417] Bdb: add a unittest file (test.test_bdb)

2018-01-17 Thread Xavier de Gaye
Change by Xavier de Gaye : -- pull_requests: +5070 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32576] concurrent.futures.thread potential deadlock due to Queue in weakref callback

2018-01-17 Thread Antoine Pitrou
Change by Antoine Pitrou : -- keywords: +patch pull_requests: +5069 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue32576] concurrent.futures.thread potential deadlock due to Queue in weakref callback

2018-01-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: We could also switch multiprocessing.Pool. Unfortunately some code in multiprocessing.Pool relies on internal details of queue.Queue (!). -- ___ Python tracker

[issue32536] ast and tokenize disagree about line number

2018-01-17 Thread Nitish
Nitish added the comment: What should happen ideally? The stray '\r' be treated like a whitespace? -- ___ Python tracker ___ ___ Pyt

[issue32579] UUID module fix, uuid1 python module function

2018-01-17 Thread David CARLIER
New submission from David CARLIER : Spotted to UUID unit tests https://bugs.python.org/issue32493 -- components: Library (Lib) messages: 310154 nosy: David CARLIER2 priority: normal pull_requests: 5068 severity: normal status: open title: UUID module fix, uuid1 python module function ver

[issue32571] Speed up and clean up getting optional attributes in C code

2018-01-17 Thread Nathaniel Smith
Nathaniel Smith added the comment: Can I ask why this is a private API? It's extremely useful for extension modules too. For example, numpy has been carrying around a reimplementation of PyObject_GetAttr for years, exactly to avoid the cost of creating an AttributeError exception in common ca

[issue32248] Port importlib_resources (module and ABC) to Python 3.7

2018-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5067 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32578] x86-64 Sierra 3.6: test_asyncio fails with timeout after 15 minutes

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: Maybe we should just give more time to this buildbot worker, extend the timeout to 30 minutes for example? -- components: +Tests nosy: +zach.ware versions: +Python 3.6 ___ Python tracker

[issue32578] x86-64 Sierra 3.6: test_asyncio fails with timeout after 15 minutes

2018-01-17 Thread STINNER Victor
New submission from STINNER Victor : test_asyncio started to fail at build 163: http://buildbot.python.org/all/#/builders/20/builds/163 (...) test_legacy_create_ssl_connection (test.test_asyncio.test_events.KqueueEventLoopTests) ... ok test_legacy_create_ssl_unix_connection (test.test_asyncio.

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: Oh ok, I think that I found the bug: PR 5212. -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +5066 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32226] Implement PEP 560: Core support for typing module and generic types

2018-01-17 Thread STINNER Victor
STINNER Victor added the comment: Since the commit 45700fb757591a672e9d25b8252971c2a2caeaf2, test_genericclass leaks references: --- vstinner@apu$ ./python -m test -R 3:3 test_genericclass -m test.test_genericclass.CAPITest.test_c_class Run tests sequentially 0:00:00 load avg: 1.27 [1/1] test_

[issue32493] UUID Module - FreeBSD build failure

2018-01-17 Thread David CARLIER
David CARLIER added the comment: Might comes from uuid1 function itself ... e.g. line 704 not setting version "field". -- nosy: +David CARLIER2 ___ Python tracker ___

  1   2   >