[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Bastian Wenzel
Bastian Wenzel added the comment: I have attached the activate.bat script that got generated by venv. My current path looks like this (added line breaks for readability): C:\Program Files\Git\bin; C:\Tools\antlr; C:\Program Files (x86)\Common Files\Oracle\Java\javapath; C:\ProgramData\Oracle\

[issue36639] Provide list.rindex()

2019-04-15 Thread 林自均
Change by 林自均 : -- keywords: +patch pull_requests: +12776 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36639] Provide list.rindex()

2019-04-15 Thread 林自均
New submission from 林自均 : There are str.index() and str.rindex(), but there is only list.index() and no list.rindex(). It will be very handy if we provide it. -- components: Library (Lib) messages: 340312 nosy: johnlinp priority: normal severity: normal status: open title: Provide list.

[issue36636] Inner exception is not being raised using asyncio.gather

2019-04-15 Thread twisteroid ambassador
twisteroid ambassador added the comment: The difference is because you grabbed and print()ed the exception themselves in Script 2, while in Script 1 you let Python's built-in unhandled exception handler (sys.excepthook) print the traceback for you. If you want a traceback, then you need to p

[issue31904] Python should support VxWorks RTOS

2019-04-15 Thread Peixing Xin
Peixing Xin added the comment: @vstinner I've informed WRS team of temporarily not creating new PRs in until less than 4 PRs are in the open state. Next we will keep open PRs less than 4. Thanks for your effort on them. -- ___ Python tracker

[issue31904] Python should support VxWorks RTOS

2019-04-15 Thread Peixing Xin
Change by Peixing Xin : -- nosy: +pxinwr ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12775 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue29930] Waiting for asyncio.StreamWriter.drain() twice in parallel raises an AssertionError when the transport stopped writing

2019-04-15 Thread Nic Watson
Change by Nic Watson : -- nosy: +jnwatson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue36638] typeperf.exe is not in all skus of Windows SKUs

2019-04-15 Thread Paul Monson
Change by Paul Monson : -- title: typeperf.exe is not in all skus of Windows -> typeperf.exe is not in all skus of Windows SKUs ___ Python tracker ___

[issue36638] typeperf.exe is not in all skus of Windows

2019-04-15 Thread Paul Monson
Change by Paul Monson : -- keywords: +patch pull_requests: +12774 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue36638] typeperf.exe is not in all skus of Windows

2019-04-15 Thread Paul Monson
New submission from Paul Monson : typeperf.exe is not present on small editions of windows like Windows IoT Core or nanoserver This causes WindowsLoadTracker to throw an exception during test initialization. -- components: Tests messages: 340309 nosy: Paul Monson priority: normal sever

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I merged all cleanups. I don't merge accepting any IP representations as mask, because I'm not expert of this module. At least, I don't want to pass prefix/netmask by something like IPv4Network("0.0.255.255"). -- __

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: New changeset 6fa84bd12c4b83bee6a41b989363230d5c03b96c by Inada Naoki in branch 'master': bpo-27860: ipaddress: fix Interface missed some attributes (GH-12836) https://github.com/python/cpython/commit/6fa84bd12c4b83bee6a41b989363230d5c03b96c -- __

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: @Serhiy > It the pure Python implementation PyDict_GetItem also > returns value, not node of linked list. I missed pure Python implementation used two dicts. @Eric > Please don't miss the fact that the main reason for mirroring the dict table > is to get O(1

[issue35329] Documentation - capitalization issue

2019-04-15 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Hans, Would you be interested in making a pull request with this change? Thanks! -- nosy: +cheryl.sabella stage: -> needs patch type: -> enhancement versions: +Python 3.8 ___ Python tracker

[issue24638] asyncio "loop argument must agree with future" error message could be improved

2019-04-15 Thread Zackery Spytz
Zackery Spytz added the comment: I've created a PR for this issue. -- components: +asyncio nosy: +ZackerySpytz, asvetlov, yselivanov versions: +Python 3.8 ___ Python tracker _

[issue24638] asyncio "loop argument must agree with future" error message could be improved

2019-04-15 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch pull_requests: +12773 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue30840] Contrary to documentation, relative imports cannot pass through the top level

2019-04-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Great, thanks for clarity. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2019-04-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: Since it was almost 2 years since the last conversation, i opened a PR for this. @brett.cannon I may have not looked at all possible areas to use find_spec(), so please let me know in the reviews for this PR. -- _

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2019-04-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-lis

[issue30202] Update test.test_importlib.test_abc to test find_spec()

2019-04-15 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- keywords: +patch pull_requests: +12772 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-15 Thread Stefan Behnel
Stefan Behnel added the comment: lxml has a couple of nice features here: - all tags in a namespace: "{namespace}*" - a local name 'tag' in any (or no) namespace: "{*}tag" - a tag without namespace: "{}tag" - all tags without namespace: "{}*" "{*}*" is also accepted but is the same as "*". No

[issue36637] Restrict syntax for tuple literals with one element

2019-04-15 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the idea, but this would break way too much code to warrant changing it. Plus making this act differently just in the single-item case is too much special-casing/surprise. -- resolution: -> rejected stage: -> resolved status: open -> close

[issue30840] Contrary to documentation, relative imports cannot pass through the top level

2019-04-15 Thread Brett Cannon
Brett Cannon added the comment: RE: "does it mean we dont need this to work anymore as was earlier put in the PEP?" Correct, we aren't going to implement that part of the PEP ever. -- ___ Python tracker __

[issue36637] Restrict syntax for tuple literals with one element

2019-04-15 Thread danijar
New submission from danijar : A tuple can be created with or without parentheses: a = (1, 2, 3) a = 1, 2, 3 While both are intuitive in this example, omitting the parentheses can lead to hard to find errors when there is only one element: a = (1,) a = 1, The first is clear but the second

[issue36636] Inner exception is not being raised using asyncio.gather

2019-04-15 Thread Drew Budwin
New submission from Drew Budwin : Using Python 3.7, I am trying to catch an exception and re-raise it by following an example I found on StackOverflow (https://stackoverflow.com/a/6246394/1595510). While the example does work, it doesn't seem to work for all situations. Below I have two async

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2815bf5b1f39b9f677135473392887a8d261fc97 by Victor Stinner in branch '3.7': bpo-36348: test_imaplib: add debug info (GH-12846) https://github.com/python/cpython/commit/2815bf5b1f39b9f677135473392887a8d261fc97 -- __

[issue16079] list duplicate test names with patchcheck

2019-04-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed, making duplicate method definitions a CI failure is the desired end state once our test suite is cleaned up and it doesn't have false positives. FYI - pylint also implements this check quite reliably as function-redefined via its pylint.checkers.ba

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Steve Dower
Steve Dower added the comment: Basically everyone has that directory in their PATH - we'd be hearing a lot more issues if it were a consistent bug. Can you share the full contents of your activate.bat file? And if it's okay, your full PATH variable (before and after running activate.bat) (Y

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12771 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: I pushed a change to get more information if the test fails again. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36348] test_imaplib.RemoteIMAP_STARTTLSTest.test_logout() fails randomly

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 74125a60b7a477451ff2b8385bfbce3fdaee8dbc by Victor Stinner in branch 'master': bpo-36348: IMAP4.logout() doesn't ignore exc (GH-12411) https://github.com/python/cpython/commit/74125a60b7a477451ff2b8385bfbce3fdaee8dbc -- __

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/58/builds/2225 test_listener_client (test.test_multiprocessing_spawn.WithProcessesTestListenerClient) ... ok test_lock (test.test_multiprocessing_spawn.WithProcessesTestLock) ... ok test_lock_context (test.test_multi

[issue36616] Optimize thread state handling in function call code

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: > The gain is small, but it's there. Do you mean a performance speedup? If yes, can you please run a micro-benchmark? -- ___ Python tracker

[issue26270] Support for read()/write()/select() on asyncio

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue31954] Don't prevent dict optimization by coupling with OrderedDict

2019-04-15 Thread Eric Snow
Eric Snow added the comment: Please don't miss the fact that the main reason for mirroring the dict table is to get O(1) node lookup (in the linked list). Otherwise most lookup-dependent operations, like __delitem__(), would become O(n); whereas in the pure-Python implementation they are O(

[issue28238] In xml.etree.ElementTree findall() can't search all elements in a namespace

2019-04-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eli.bendersky, scoder, serhiy.storchaka versions: +Python 3.8 -Python 3.6 ___ Python tracker ___

[issue30840] Contrary to documentation, relative imports cannot pass through the top level

2019-04-15 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: I actually opened a PR with the relevant documentation suggested by @ncoghlan but what am wondering is. when @ncoghlan says That part of the PEP was never implemented - relative imports have never been allowed to cross package boundaries in practice, does

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0810fa79885276114d1a94e2ce61da367ebb1ffc by Victor Stinner in branch 'master': bpo-36389: Cleanup gc.set_threshold() (GH-12844) https://github.com/python/cpython/commit/0810fa79885276114d1a94e2ce61da367ebb1ffc -- _

[issue16079] list duplicate test names with patchcheck

2019-04-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: False positives must be added to the 'ignored_duplicates' file in order to have duplicate_code_names.py exit with success. Not sure whether this may be considered as an annoyance by commiters, if TRAVIS would fail when duplicate_code_names.py fails. All the

[issue36626] asyncio run_forever blocks indefinitely

2019-04-15 Thread Dan Timofte
Change by Dan Timofte : -- keywords: +patch pull_requests: +12770 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-lis

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset aba7d662abbb847f9f45c6db58242a9b4bf65bff by Victor Stinner in branch 'master': bpo-35134: Add cpython/pymem.h to build system (GH-12842) https://github.com/python/cpython/commit/aba7d662abbb847f9f45c6db58242a9b4bf65bff --

[issue36389] Add gc.enable_object_debugger(): detect corrupted Python objects in the GC

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12769 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread Michael Felt
Change by Michael Felt : -- keywords: +patch pull_requests: +12768 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2019-04-15 Thread Paul Ganssle
Paul Ganssle added the comment: > In short, a+b can overflow, but a-b cannot? I think it's more that by always checking the elapsed time against `now() - starttime`, you never need to represent the time at which the timeout should happen - which may be so far in the future that it causes a s

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12767 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9820c07e4146e18bddc9ac1586cee7e542903de0 by Victor Stinner in branch 'master': bpo-35134: Add Include/cpython/pymem.h (GH-12840) https://github.com/python/cpython/commit/9820c07e4146e18bddc9ac1586cee7e542903de0 --

[issue36635] Add _testinternalcapi module

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12766 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36635] Add _testinternalcapi module

2019-04-15 Thread STINNER Victor
New submission from STINNER Victor : Python headers are being reorganized to clarify what's public, specific to CPython or "internal". See issues bpo-35134 (Add a new Include/cpython/ subdirectory) and bpo-35081 (Move internal headers to Include/internal/). Problem: the _testcapi module desig

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: More info on alignof(): http://www.wambold.com/Martin/writings/alignof.html -- ___ Python tracker ___ ___

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: I also found this macro: #define ALIGNOF(type) offsetof (struct { char c; type member; }, member) -- ___ Python tracker ___

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: C++ has a __alignof__ function/macro/operator (not sure what is its kind) to get the alignment of a type. C11 has header which provides an alignof() function. GCC has __alignof__(). I also found "_Alignof()" name. ... no sure which one is the most portabl

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12765 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35866] concurrent.futures deadlock

2019-04-15 Thread cagney
cagney added the comment: @hroncok see comment msg339370 Vanilla 3.7.0 (re-confirmed) didn't contain the change, nor did 3.6.8 (ok, that isn't vanilla) but both can hang using the test. It can take a while and, subjectively, it seems to depend on machine load. I've even struggled to get 3

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: No problem, closing the issue. -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Jens Vagelpohl
Jens Vagelpohl added the comment: Thank you for the prompt reply. It turns out this is not a bug in py_compile. Other code we use imports importlib.util briefly for a quick check at module level and then deletes it, also at module scope. Removing the deletion fixes the issue. Thanks again a

[issue26270] Support for read()/write()/select() on asyncio

2019-04-15 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +asvetlov versions: +Python 3.8 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___ __

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a simplified script to reproduce this and possibly without any external dependencies? Looking at the traceback it seems to come from the project chameleon at https://github.com/malthe/chameleon/blob/983877e628a75f42c473cb2ea2350f

[issue36634] venv: activate.bat fails for venv with parentheses in PATH

2019-04-15 Thread Bastian Wenzel
New submission from Bastian Wenzel : After creating a virtual environment on win 7 (64bit) with: py -3.7 -m venv venv Running venv\Scripts\activate.bat will yield this result: \Common was unexpected at this time. (venv) C:\... My PATH variable contains a path that starts with: C:\Program Files

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread Michael Felt
Michael Felt added the comment: On 15/04/2019 11:50, STINNER Victor wrote: > STINNER Victor added the comment: > > support.is_android has two flaws: > > * it's a constant: it must be spelled as UPPER CASE > * I dislike "is_" prefix: "MS_WINDOWS" constant is commonly used, and it > doesn't sta

[issue32451] python -m venv activation issue when using cygwin on windows

2019-04-15 Thread Erik Bray
Erik Bray added the comment: Coincidentally I just encountered this myself when trying to activate a venv created by Python for Windows while in a Cygwin shell. Indeed, bash for Cygwin is just like bash anywhere else, and considers it a syntax error to encounter unexpected CR's. Alas, venv

[issue36633] py_compile.compile: AttributeError on importlib.utils

2019-04-15 Thread Jens Vagelpohl
New submission from Jens Vagelpohl : The following code in py_compile.compile fails (tested on 3.6.6 and 3.7.3) with tracebacks that end like the one shown at the bottom. There's an AttributeError about importlib.utils. """ if cfile is None: if optimize >= 0: optimizat

[issue36616] Optimize thread state handling in function call code

2019-04-15 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: The gain is small, but it's there. I made some further changes: - replacing code of the form sp = stack_pointer; call_function(..., &sp, ...) stack_pointer = sp; by call_function(..., &stack_pointer, ...) - fold the inline function do_ca

[issue36616] Optimize thread state handling in function call code

2019-04-15 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +12764 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36404] Document PendingDeprecationWarning is not so useful.

2019-04-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +12763 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36625] Obsolete comments in docstrings in fractions module

2019-04-15 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue36625] Obsolete comments in docstrings in fractions module

2019-04-15 Thread Mark Dickinson
Mark Dickinson added the comment: New changeset a9a28808e5a03d2e68e421227c113a38edc40946 by Mark Dickinson (Jakub Molinski) in branch 'master': bpo-36625: Remove obsolete comments from docstrings in fractions module (GH-12822) https://github.com/python/cpython/commit/a9a28808e5a03d2e68e42122

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread Marat Sharafutdinov
Marat Sharafutdinov added the comment: Thank you for the patch, Victor! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: Thanks for your bug report Marat Sharafutdinov, it's now fixed in 3.7 and master (Python 2.7 is not affected, it doesn't have the test_imaplib test method). -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue36404] Document PendingDeprecationWarning is not so useful.

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12762 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Florian Weimer
Florian Weimer added the comment: Minor correction: glibc malloc follows ABI on x86-64 and always returns a 16-byte-aligned pointer, independently of allocation size. However, other mallocs (such as jemalloc and tcmalloc) may return pointers with less alignment for allocation sizes less than

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: The x86-64 ABI requires that memory allocated on the heap is aligned to 16 bytes. On x86-64, glibc malloc(size) aligns on 16 bytes for size >= 16, otherwise align to 8 bytes. So the glibc doesn't respect exactly the ABI. I understand that a compiler will no

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I had not noticed bpo-33374 changed Python 2.7. I don't know why it caused segv only for Python 2.7. -- ___ Python tracker ___ _

[issue35866] concurrent.futures deadlock

2019-04-15 Thread Miro Hrončok
Miro Hrončok added the comment: Reverting 3b699932e5ac3e76031bbb6d700fbea07492641d makes problem go away. -- nosy: +hroncok ___ Python tracker ___ _

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: Fixed issues: * bpo-31069: test_multiprocessing_spawn and test_multiprocessing_forkserver leak dangling processes * bpo-31234: Make support.threading_cleanup() stricter -- ___ Python tracker

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread Florian Weimer
Florian Weimer added the comment: The issue is related to the definition of PyCArgObject: typedef struct tagPyCArgObject PyCArgObject; struct tagPyCArgObject { PyObject_HEAD ffi_type *pffi_type; char tag; union { char c; char b; short h; int i;

[issue36632] test_multiprocessing_forkserver: test_rapid_restart() leaked a dangling process on AMD64 FreeBSD 10-STABLE Non-Debug 3.x

2019-04-15 Thread STINNER Victor
New submission from STINNER Victor : AMD64 FreeBSD 10-STABLE Non-Debug 3.x https://buildbot.python.org/all/#/builders/167/builds/777 0:04:20 load avg: 4.05 [113/420/1] test_multiprocessing_forkserver failed (env changed) (3 min 43 sec) ... test_listener_client (test.test_multiprocessing_forks

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Inada Naoki added the comment: I am not owner of ipaddress module, so I don't know we should support more form of masks. On the other hand, IPv4Interface and IPv6Interface expose netmask and hostmask attributes when address is not bytes or int. These attributes are not documented. I assume i

[issue36618] clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes

2019-04-15 Thread Florian Weimer
Change by Florian Weimer : -- nosy: +fweimer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 28ed39e83e4c545fa1da89fd7691cace280296f7 by Victor Stinner (Miss Islington (bot)) in branch '3.7': bpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834) (GH-12835) https://github.com/python/cpython/commit/28ed39e83e4c545fa1da89fd7691c

[issue27860] Improvements to ipaddress module

2019-04-15 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12761 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36631] test_urllib2net: test_ftp_no_timeout() killed after a timeout of 15 min

2019-04-15 Thread STINNER Victor
New submission from STINNER Victor : It seems like test_urllib2net.test_ftp_no_timeout() has no timeout: it should use a timeout to not block the whole test suite if the FTP server is down. x86 Gentoo Non-Debug with X 3.7: https://buildbot.python.org/all/#/builders/115/builds/1044 0:26:50 loa

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread miss-islington
Change by miss-islington : -- pull_requests: +12760 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3c7931e514faf509a39c218c2c9f55efb434628f by Victor Stinner in branch 'master': bpo-36629: Add support.get_socket_conn_refused_errs() (GH-12834) https://github.com/python/cpython/commit/3c7931e514faf509a39c218c2c9f55efb434628f -- _

[issue33632] undefined behaviour: signed integer overflow in threadmodule.c

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: In short, a+b can overflow, but a-b cannot? -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue27987] obmalloc's 8-byte alignment causes undefined behavior

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: PyGC_Head structure size depends on the Python version, sizes of 64-bit: * 2.7: 32 bytes * 3.6, 3.7: 24 bytes * 3.8 (master): 16 bytes bpo-36618 "clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes" should be even worse on 3.7: 24 is not

[issue36629] imaplib test fails with errno 101

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12759 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue36630] failure of test_colors_funcs in test_curses with ncurses 6.1

2019-04-15 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I asked on bug-ncurses mailing list and Thomas Dickey suggests "improving the python curses binding to handle the newer terminal descriptions". Looks like that requires non-trivial efforts. On the other hand, I've also found a workaround: $ TERM=xterm pytho

[issue16079] list duplicate test names with patchcheck

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: This script should be part of Python and run in the pre-commit CI like Travis CI! -- ___ Python tracker ___

[issue10417] [2.7] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2019-04-15 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner title: unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function -> [2.7] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function _

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: support.is_android has two flaws: * it's a constant: it must be spelled as UPPER CASE * I dislike "is_" prefix: "MS_WINDOWS" constant is commonly used, and it doesn't start with "is_". In my PR, I used support.ANDROID. -- __

[issue36624] cleanup the stdlib and tests with regard to sys.platform usage

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: My previous attempt was: https://github.com/python/cpython/pull/7800 Serhiy Storchaka and Ned Deily were unable about this change: * https://github.com/python/cpython/pull/7800#issuecomment-398688441 * https://github.com/python/cpython/pull/7800#issuecomment-

[issue36619] when is os.posix_spawn(setsid=True) safe?

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: Hum, os.supports_posix_spawn_args name would be more consistent with os.supports_dir_fd name. -- ___ Python tracker ___

[issue36619] when is os.posix_spawn(setsid=True) safe?

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: Maybe we need to expose an object in the os module to list which parameters are supported. setsid is not argument, but scheduler is another argument. There is also a discussion to add another argument to os.posix_spawn() to specify the working directly: it's

[issue36540] PEP 570: Python Positional-Only Parameters

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: It seems like deprecating or removing "old" inspect functions is an issue. An option would be to raise an error if these functions is used on a function which has at least one positional argument. -- nosy: +vstinner _

[issue36540] PEP 570: Python Positional-Only Parameters

2019-04-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 12701 makes breaking changes in the inspect module. Currently we have two sets of APIs in the inspect module: old deprecated API that do not support keyword-only arguments, and new *full* API that supports them. Even many years since 3.0 the old API sti

[issue31904] Python should support VxWorks RTOS

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset f1464f4d2ecf9b809ff768c523c5eea1abd31c55 by Victor Stinner (pxinwr) in branch 'master': bpo-31904: Port the time module on VxWorks (GH-12305) https://github.com/python/cpython/commit/f1464f4d2ecf9b809ff768c523c5eea1abd31c55 -- ___

[issue31904] Python should support VxWorks RTOS

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: New changeset 236d0b75c41449a266201c683b4b0d6acdee02df by Victor Stinner (pxinwr) in branch 'master': bpo-31904: Don't build the _crypt extension on VxWorks (GH-12833) https://github.com/python/cpython/commit/236d0b75c41449a266201c683b4b0d6acdee02df ---

[issue36616] Optimize thread state handling in function call code

2019-04-15 Thread STINNER Victor
STINNER Victor added the comment: I wanted to do that, but I never measured the overhead of PyThreadState_GET() calls. Subtle detail: using _PyThreadState_GET() ("_Py") prefix rather than PyThreadState_GET() ensures that you get the optimized macro ;-) -- nosy: +vstinner ___

  1   2   >