[issue35279] asyncio uses too many threads by default

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: node.js default threadpool size is 4 regardless number of cores. https://nodejs.org/api/cli.html#cli_uv_threadpool_size_size Since we has GIL, I think fixed-size pool is better idea. -- ___ Python tracker

[issue36609] activate.ps1 in venv for Windows should encoded with BOM

2019-04-12 Thread 정한솔
New submission from 정한솔 : "activate.ps1" (venv) is currently encoded as UTF8 without BOM. But this cause an error if path of an environment contains non-ASCII characters. It seems Powershell can't recognize UTF8 without BOM. If I changed encoding of activate.ps1 to UTF8-BOM, it works well.

[issue35279] asyncio uses too many threads by default

2019-04-12 Thread Laurie Opperman
Laurie Opperman added the comment: What about making it dependant on memory as well as logical processor count: `n_workers = min(RAM_GB / some_number, N_CORES * 5)` -- nosy: +Epic_Wink ___ Python tracker

[issue36610] os.sendfile can return EINVAL on Solaris

2019-04-12 Thread Jakub Kulik
New submission from Jakub Kulik : Hi, We have several tests failing on Solaris due to the slightly different behavior of os.sendfile function. Sendfile on Solaris can raise EINVAL if offset is equal or bigger than the size of the file (Python expects that it will return 0 bytes sent in that

[issue36600] re-enable test in nntplib

2019-04-12 Thread Martin Panter
Martin Panter added the comment: Does the test still depend on real-world posts? If so, see Issue 19613. I don’t think the problem has been fixed. -- nosy: +martin.panter superseder: -> test_nntplib: sporadic failures, test_article_head_body() ___

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12724 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34839] doctest: Change example under warnings section

2019-04-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +12720 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36599] doctest document says dict order is unstable

2019-04-12 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> doctest: Change example under warnings section ___ Python tracker

[issue35279] asyncio uses too many threads by default

2019-04-12 Thread Inada Naoki
Change by Inada Naoki : -- nosy: +inada.naoki ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 10/04/2019 18:49, STINNER Victor wrote: > STINNER Victor added the comment: > > "I am looking into this - but as it seems to have gone away again - is > there a simple way to get that code back, and/or see what the diff is, > before/badrun/after?" > > Maybe

[issue17267] datetime.time support for '+' and '-'

2019-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +p-ganssle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35520] Python won't build with dtrace enabled on some systems.

2019-04-12 Thread Jakub Kulik
Jakub Kulik added the comment: Can this also be backported to 3.7? I just installed 3.8a3 (where it already is) and it works as expected. Also we are using this patch ourselves in 3.7 and it works but I guess it would be nicer to have it in upstream as well. --

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: While testing my changes, I found a bug in test_sys: ./python -X tracemalloc -m test test_sys -v -m test_getallocatedblocks == ERROR: test_getallocatedblocks (test.test_sys.SysModuleTest)

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: New changeset 9e4f2f3a6b8ee995c365e86d976937c141d867f8 by Inada Naoki in branch 'master': bpo-20180: Use argument clinic for dict.pop() and dict.popitem() (GH-12792) https://github.com/python/cpython/commit/9e4f2f3a6b8ee995c365e86d976937c141d867f8 --

[issue36609] activate.ps1 in venv for Windows should encoded with BOM

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

[issue36598] mock side_effect should be checked for iterable not callable

2019-04-12 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks, I am closing this as not a bug. Feel free to reopen this if I have missed any. -- resolution: -> not a bug stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
New submission from STINNER Victor : When PYTHONMALLOC=debug environment variable or -X dev command line option is used, Python installs debug hooks on memory allocators which add 2 size_t before and 2 size_t after each memory block: it adds 32 bytes to every memory allocation. I'm

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12722 stage: -> patch review ___ Python tracker ___ ___

[issue36599] doctest document says dict order is unstable

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: Oh, #34839 had fixed this already. It was not backported to 3.7 yet. -- ___ Python tracker ___ ___

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12723 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I wrote 2 pull requests for the two options: * PR 12795 removes serialno field * PR 12796 adds PYMEM_DEBUG_SERIALNO define which is unset by default -- ___ Python tracker

[issue20180] Derby #11: Convert 50 sites to Argument Clinic across 9 files

2019-04-12 Thread Inada Naoki
Change by Inada Naoki : -- pull_requests: +12721 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-12 Thread Laurie Opperman
Laurie Opperman added the comment: > Is the behaviour you're proposing any different from using `Path.rglob('*')`? By that logic, we should remove `Path.iterdir()` in favour of `Path.glob('*')`. In addition, having `iterdir` the way it is makes it easy for subclasses to extend its

[issue34839] doctest: Change example under warnings section

2019-04-12 Thread miss-islington
miss-islington added the comment: New changeset a910c2c6f3542b61f084de2ece0d8dab09c5a0fa by Miss Islington (bot) in branch '3.7': bpo-34839: Add a 'before 3.6' in the section 'warnings' of doctest (GH-9736) https://github.com/python/cpython/commit/a910c2c6f3542b61f084de2ece0d8dab09c5a0fa

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread Inada Naoki
Inada Naoki added the comment: Is this issue still alive? May I close this issue as "out of date"? -- nosy: +inada.naoki ___ Python tracker ___

[issue36608] Replace bundled pip and setuptools with a downloader in the ensurepip module

2019-04-12 Thread Eric V. Smith
Eric V. Smith added the comment: And I don't mean to sound like a total downer. I just think it's important that we recognize all of the use cases. Thanks for your work on this. -- ___ Python tracker

[issue36610] os.sendfile can return EINVAL on Solaris

2019-04-12 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Can you paste the traceback or are you able to reproduce the bug via a script? sendfile implementation is supposed to giveup if no data was sent on first call, so I suppose this happen later? If for any reason it turns out sendfile() is broken on Solaris

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread Eric Snow
Change by Eric Snow : -- pull_requests: +12733 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I tried but failed to reproduce the crash on Linux!? $ sudo bash -c 'echo "%e.%p" > /proc/sys/kernel/core_pattern' $ ./python -m test --matchfile=bisect5 test_multiprocessing_spawn --fail-env-changed -F # wait 5 min ^C $ ./python -m test --matchfile=bisect5

[issue36616] Optimize thread state handling in function call code

2019-04-12 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- type: -> performance ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36616] Optimize thread state handling in function call code

2019-04-12 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : The bytecode interpreter uses an inline function call_function() to handle most function calls. To check for profiling, call_function() needs to call to PyThreadState_GET(). In the reference implementation of PEP 590, I saw that we can remove these

[issue36513] Add support for building arm32 nuget package

2019-04-12 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36509] Add iot layout for windows iot containers

2019-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset f4e5661e85ac41c987165246d2b33f363cd01e34 by Steve Dower (Paul Monson) in branch 'master': bpo-36509: Add iot layout for Windows IoT containers (GH-12663) https://github.com/python/cpython/commit/f4e5661e85ac41c987165246d2b33f363cd01e34

[issue25361] Is python-3-5-0.exe compiled with SSE2 instrutions? If so should we mention this?

2019-04-12 Thread Steve Dower
Steve Dower added the comment: For 3.8 we support as far back as Win7 SP1 with the update for secure DLL loading, neither of which require SSE2. So we should hold this for 3.9 when we drop Win7 completely. -- ___ Python tracker

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Never heard of it, but perhaps there are some preprocessor checks for Windows that assume you are using MSVC and not gcc? We don't support compilers other than MSVC on Windows, but if someone has a fix for this I'm happy to consider it. --

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I ran "./python -m test --matchfile=bisect5 test_multiprocessing_spawn --fail-env-changed -F" 4 times in parallel: in less than 5 minutes (in fact, I didn't look carefully at the terminal, maybe it was faster), I got 3 core dumps :-( --

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I have a bad news for you Eric: I'm able again to reproduce the crash at commit f13c5c8b9401a9dc19e95d8b420ee100ac022208. vstinner@freebsd$ ./python -m test --matchfile=bisect5 test_multiprocessing_spawn --fail-env-changed -F Run tests sequentially 0:00:00

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread Eric Snow
Eric Snow added the comment: Thanks for checking, Victor. Don't feel bad about your results, nor about not checking sooner. :) We'll get this sorted out. For now I'll revert. This is not code that changes very often, so there isn't much benefit to keeping it merged. Testing against a

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-12 Thread Zackery Spytz
Zackery Spytz added the comment: I think that the PR may have been merged too quickly. Serhiy had made a list, and I think that the PR was missing some necessary changes. -- nosy: +ZackerySpytz ___ Python tracker

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

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Is there someone interested to debug remaining "Exception ignored:" logs in test_urllib? test_invalid_redirect (test.test_urllib.urlopen_HttpTests) ... Exception ignored in: Traceback (most recent call last): File

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Eric Snow: > For now I'll revert. This is not code that changes very often, so there > isn't much benefit to keeping it merged. Testing against a separate branch > is just as easy. Again, Python shutdown is *really* fragile. Last time I tried to "enhance"

[issue36607] asyncio.all_tasks() crashes if asyncio is used in multiple threads

2019-04-12 Thread Sam Dunster
Change by Sam Dunster : -- nosy: +sdunster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread Eric Snow
Eric Snow added the comment: New changeset b75b1a3504a0cea6fac6ecba44c10b2629577025 by Eric Snow in branch 'master': bpo-33608: Revert "Factor out a private, per-interpreter _Py_AddPendingCall()." (gh-12806) https://github.com/python/cpython/commit/b75b1a3504a0cea6fac6ecba44c10b2629577025

[issue36601] signals can be caught by any thread

2019-04-12 Thread Eryk Sun
Eryk Sun added the comment: > Maybe a similar thing exists in Linux? Back in the late 90s, Linux implemented threads as 'processes' (LinuxThreads), but with shared resources such as virtual memory and file descriptors. (The Linux kernel's clone system call is highly composable in this

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

2019-04-12 Thread Xavier de Gaye
Change by Xavier de Gaye : -- dependencies: -Bdb: add docstrings resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-12 Thread Paul Ganssle
Paul Ganssle added the comment: > rglob and glob also return a generator. My mistake, I didn't notice the `sorted` in the `rglob` documentation and thought it was emitting a list. > By that logic, we should remove `Path.iterdir()` in favour of > `Path.glob('*')`. What *is* the case for

[issue36537] except statement block incorrectly assumes end of scope(?).

2019-04-12 Thread SilentGhost
SilentGhost added the comment: I cannot imagine that the fix would be straightforward or that there is much use of this particular pattern. Perhaps, a note in the docs suggesting post_mortem() for except clauses over set_trace() would be more appropriate. --

[issue36614] Popen

2019-04-12 Thread weispinc
New submission from weispinc : Popen, when run on Windows server 2019 does not output binary by default. Tried Python 3.5 3.6 3.7. OK on Windows server 2016 and 1012. -- messages: 340044 nosy: weispinc priority: normal severity: normal status: open title: Popen type: behavior

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-12 Thread Kingsley McDonald
Change by Kingsley McDonald : -- keywords: +patch pull_requests: +12731 stage: needs patch -> patch review ___ Python tracker ___

[issue36615] why call _Py_set_inheritable(0) from os.open() when O_CLOEXEC?

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: The Linux kernel has a bad habit of ignoring unknown flags. If your libc is recent and contains O_CLOEXEC but your Linux kernel is old and doesn't know O_CLOEXEC, the flag will be simply ignored. It can happen when a Linux distribution builds a package with

[issue36614] Popen output on windows server 2019

2019-04-12 Thread Steve Dower
Steve Dower added the comment: As we haven't done anything special for WS2019 yet, this is a change in Windows (or whatever tool is outputting the text). You could report it to Microsoft. I don't know the best way to report bugs in Windows Server though, but most people with it have support

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 44235041f3b957abd36d3792450c3540aa09e120 by Victor Stinner in branch 'master': bpo-18748: io.IOBase destructor now logs close() errors in dev mode (GH-12786) https://github.com/python/cpython/commit/44235041f3b957abd36d3792450c3540aa09e120

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: > But, should I just continue standard practice (sys.platform), or would > this be a moment to move towards platform.system() (i.e., set the > example to be to use "run-time" rather than "build-time"). Oh, now I'm confused :-) I checked the Python test suite:

[issue36488] os.sendfile() on BSD, macOS don't return bytes sent on EINTR

2019-04-12 Thread Giampaolo Rodola'
Change by Giampaolo Rodola' : -- keywords: +patch pull_requests: +12734 stage: needs patch -> patch review ___ Python tracker ___

[issue36601] signals can be caught by any thread

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36601] signals can be caught by any thread

2019-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: IIRC in SGI, getpid() would return the thread ID. They had a syscall that could create a new subprocess that would share or not share various resources (e.g. memory, signals, file descriptors) so by setting or clearing bits you could implement a continuum

[issue36617] The rich comparison operators are second class citizens

2019-04-12 Thread SilentGhost
SilentGhost added the comment: It seems to be parser module. https://docs.python.org/3/library/parser.html#creating-st-objects -- nosy: +SilentGhost ___ Python tracker ___

[issue36609] activate.ps1 in venv for Windows should encoded with BOM

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Seems reasonable. The most reliable way to do this will be to override the copy function for this file in venv and write it out with "utf-8-sig" encoding. There are many ways that git will break things like this, so I wouldn't trust it to simply accept a

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread Eric Snow
Eric Snow added the comment: New changeset f13c5c8b9401a9dc19e95d8b420ee100ac022208 by Eric Snow in branch 'master': bpo-33608: Factor out a private, per-interpreter _Py_AddPendingCall(). (gh-12360) https://github.com/python/cpython/commit/f13c5c8b9401a9dc19e95d8b420ee100ac022208

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 16:16, STINNER Victor wrote: > STINNER Victor added the comment: > > Do you want to work on a change to replace sys.platform.startswith("aix") to > cleanup the stdlib and tests? Not sure if it's needed :-) It's up to you. > > -- > >

[issue36614] Popen output on windows server 2019

2019-04-12 Thread weispinc
weispinc added the comment: The tool is outputing exactly the same file on both WS2019 and WS2016. I guess Popen is using some OS library or environment that has changed in WS2019. -- ___ Python tracker

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Thanks! I'm a big fan of this change :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34652] never enable lchmod on Linux

2019-04-12 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9 by Benjamin Peterson (Joshua Root) in branch '2.7': bpo-34652: Use AC_CHECK_FUNCS for lchmod. (GH-12799) https://github.com/python/cpython/commit/0fd5a7338cbaf7a61ab5bad270c1b0311047d0f9 --

[issue36602] Recursive directory list with pathlib.Path.iterdir

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Having spent more time than I'm proud of recursing through directories, I'd be happy enough with a convenience function that has sensible defaults. If I want breadth-first recursion (and I often do), I'll write it myself. I have a slight preference for getting

[issue36552] Replace OverflowError with ValueError when calculating length of range objects > PY_SIZE_MAX

2019-04-12 Thread Steve Dower
Steve Dower added the comment: We should at least have consistent error messages: >>> class O: ... def __len__(self): ... return 2**100 ... >>> o=O() >>> len(o) Traceback (most recent call last): File "", line 1, in OverflowError: cannot fit 'int' into an index-sized integer I'd argue

[issue36617] The rich comparison operators are second class citizens

2019-04-12 Thread Dan Snider
New submission from Dan Snider : The rich comparison operators have an (far as I can tell, unnecessary) limitation compared to the other binary operators, being that the result of an unparenthesized comparison expression cannot be unpacked using the *iterable "unpack" operator (does that

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

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +12735 stage: -> patch review ___ Python tracker ___ ___

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 12805 to silence IOBase destructor exceptions in test_io. -- ___ Python tracker ___

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Maybe the fact that close() exceptions are ignored silently in io.IOBase constructor should be better documented, but I'm not sure where it should be documented. If someone has an idea, please go ahead and write a pull request :-) --

[issue36549] str.capitalize should titlecase the first character not uppercase

2019-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset b015fc86f7b1f35283804bfee788cce0a5495df7 by Steve Dower (Kingsley M) in branch 'master': bpo-36549: str.capitalize now titlecases the first character instead of uppercasing it (GH-12804)

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

2019-04-12 Thread Eryk Sun
Eryk Sun added the comment: > This is assuming that in all these cases people are installing Python > for Windows and trying to use it from a non-Windows shell (both WSL > and Cygwin have their own "native" Python builds that presumably > work). It should work from Cygwin and MSYS2 since

[issue36601] signals can be caught by any thread

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Looks like Guido added the original code about 25 years ago. Since he removed himself from the other thread during that discussion, I'm going to assume he's not interested in thinking about it any more. As the original comment says, it's a hack, but I guess

[issue33608] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: FYI AMD64 FreeBSD CURRENT Shared 3.x failed at commit f13c5c8b9401a9dc19e95d8b420ee100ac022208: https://buildbot.python.org/all/#/builders/168/builds/913 But this issue has already been fixed: Eric reverted his change. --

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-04-12 Thread Steve Dower
Steve Dower added the comment: This is still failing regularly - any progress? Do we need to skip tests? -- nosy: +steve.dower ___ Python tracker ___

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

2019-04-12 Thread STINNER Victor
New submission from STINNER Victor : On x86-64, clang -O3 compiles the following function: PyCArgObject * PyCArgObject_new(void) { PyCArgObject *p; p = PyObject_New(PyCArgObject, _Type); if (p == NULL) return NULL; p->pffi_type = NULL; p->tag = '\0'; p->obj =

[issue36617] The rich comparison operators are second class citizens

2019-04-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sorry, I don't understand your demonstration. What's the mystery ``parser`` object with an ``expr`` method? What is it doing? Your comment says "all binary/unary number ops work" but I don't know what you mean by "work". Could you show some plain, vanilla

[issue35925] test_httplib test_nntplib test_ssl fail on ARMv7 Debian buster bot (OpenSSL 1.1.1a)

2019-04-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: While altering the environment to not use the system default openssl config is an option to make this green again today very easily. That'd "solve" the red bot problem and nothing else. :/ Doing that just kicks the can down the road as all of us Linux

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

2019-04-12 Thread cagney
New submission from cagney : How can I detect that os.posix_spawn(setsid=True) is available at runtime? I'd like to use os.posix_spawn(setsid=True) when it is available, and (assuming I'm getting this right) os.posix_spawn(setpgroup=0) as a poor fallback. -- components: IO

[issue36612] Unittest document is not clear on SetUpClass calls

2019-04-12 Thread Vratko Polak
New submission from Vratko Polak : One particular paragraph from unittest.rst is not clear enough: "If you want the setUpClass and tearDownClass on base classes called then you must call up to them yourself. The implementations in TestCase are empty." It has sparkled a debate here [0].

[issue17267] datetime.time support for '+' and '-'

2019-04-12 Thread Paul Ganssle
Paul Ganssle added the comment: I am pretty neutral on this. I don't think it will be terribly difficult to implement or maintain this, and while there are a few possible behaviors, if you think about it for a bit, addition with overflow behavior *does* seem like the natural way to

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9d949f7796da612f1b588d18c6f041376992a9fc by Victor Stinner (Michael Felt) in branch 'master': bpo-36588: On AIX, remove major version from sys.platform (GH-12787) https://github.com/python/cpython/commit/9d949f7796da612f1b588d18c6f041376992a9fc

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: To debug remaining "Exception ignored in:" issues, I'm using the following patch: diff --git a/Lib/unittest/case.py b/Lib/unittest/case.py index 972a4658b1..be38af3daa 100644 --- a/Lib/unittest/case.py +++ b/Lib/unittest/case.py @@ -710,6 +710,7 @@ class

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: This issue is related to the following thread on python-dev which discuss disabling Py_TRACE_REFS by default, bpo-36465, to reduce the memory footprint in debug mode: https://mail.python.org/pipermail/python-dev/2019-April/157015.html --

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: The serialno has been added at the same time than the whole debug hooks on Python memory allocated by Tim Peters in 2002, 17 years ago: commit ddea208be9e2a8fa281e25ebbc890378dd2aa286 Author: Tim Peters Date: Sat Mar 23 10:03:50 2002 + Give

[issue36613] asyncio._wait() don't remove callback in case of exception

2019-04-12 Thread Aleksandr Balezin
Change by Aleksandr Balezin : -- keywords: +patch pull_requests: +12728 stage: -> patch review ___ Python tracker ___ ___

[issue32308] Replace empty matches adjacent to a previous non-empty match in re.sub()

2019-04-12 Thread Anders Hovmöller
Anders Hovmöller added the comment: That might be true, but that seems like a weak argument. If anything, it means those others are broken. What is the logic behind "(.*)" returning the entire string (which is what you asked for) and exactly one empty string? Why not two empty strings? 3? 4?

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread miss-islington
miss-islington added the comment: New changeset 7182e653fb5c6f78f05892b6ed302fc8db8978d3 by Miss Islington (bot) in branch '3.7': bpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797) https://github.com/python/cpython/commit/7182e653fb5c6f78f05892b6ed302fc8db8978d3 -- nosy:

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

2019-04-12 Thread Steve Dower
Steve Dower added the comment: It probably just needs a gitattributes fix so it doesn't get converted when cloned to make the release build. This is assuming that in all these cases people are installing Python for Windows and trying to use it from a non-Windows shell (both WSL and Cygwin

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9b8314cfe29ca532fc335277f6c36b72e6132922 by Victor Stinner in branch 'master': bpo-36611: Fix test_sys.test_getallocatedblocks() (GH-12797) https://github.com/python/cpython/commit/9b8314cfe29ca532fc335277f6c36b72e6132922 --

[issue36611] Debug memory allocators: remove useless "serialno" field to reduce memory footprint

2019-04-12 Thread miss-islington
Change by miss-islington : -- pull_requests: +12729 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36614] Popen output on windows server 2019

2019-04-12 Thread SilentGhost
SilentGhost added the comment: Could you add the code that you're running. -- components: +Library (Lib), Windows nosy: +SilentGhost, paul.moore, steve.dower, tim.golden, zach.ware title: Popen -> Popen output on windows server 2019 versions: +Python 3.7

[issue36588] change sys.platform() to just "aix" for AIX

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.9 ___ Python tracker ___

[issue36614] Popen output on windows server 2019

2019-04-12 Thread weispinc
Change by weispinc : Added file: https://bugs.python.org/file48264/popen.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36615] why call _Py_set_inheritable(0) from os.open() when O_CLOEXEC?

2019-04-12 Thread cagney
New submission from cagney : When O_CLOEXEC is defined the file is opened with that flag (YA! - this means that the operation is atomic and, by default, the FD will be closed across os.posix_spawn()). However the code then goes on an executes: #ifndef MS_WINDOWS if

[issue36591] Should be a typing.UserNamedTuple

2019-04-12 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This is a duplicate of https://github.com/python/typing/issues/431 We can of course close the other issue and keep this one open, but the other one has much more discussion. So I am closing this one. -- resolution: -> duplicate stage: -> resolved

[issue18748] io.IOBase destructor silence I/O error on close() by default

2019-04-12 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12732 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34144] venv activate.bat reset codepage fails on windows 10

2019-04-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36579] test_venv: test_with_pip() hangs on PPC64 AIX 3.x

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Since build 2389 which failed, 21 builds succeeded. The failure looks random, so I success to close the issue. I leave it open since it seems like Michael Felt is interested to investigate ;-) -- ___ Python

[issue21110] Slowdown and high memory usage when adding a new module in embedded Python 3.4 on 64bit Windows

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Steve: Are you aware of this issue? "Apparently, you need to add this to your C program: #define HAVE_SSIZE_T" -- nosy: +steve.dower ___ Python tracker

  1   2   >