[issue36593] isinstance check fails for Mock objects with spec executed under tracing function

2019-04-12 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- title: Trace function interferes with MagicMock isinstance? -> isinstance check fails for Mock objects with spec executed under tracing function ___ Python tracker ___

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

2019-04-12 Thread David Bolen
David Bolen added the comment: I just noticed that my last message referenced the wrong commit. My test failures were against commit f13c5c8b9401a9dc19e95d8b420ee100ac022208 (the same as Victor). -- ___ Python tracker

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

2019-04-12 Thread Laurie Opperman
Laurie Opperman added the comment: Having `iterdir(recursive=True)` recurse into symlinks to directories would mean we would either not yield those symlinks, or we yield those symlinks and all other directories. I feel like not yielding directories is the way to go, but it's easy enough to

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

2019-04-12 Thread David Bolen
David Bolen added the comment: Eric, I'm also seeing the same Win7 and Win10 worker failures with commit b75b1a350 as last time (test_multiprocessing_spawn on both, and test_io on Win7). For test_multiprocessing_spawn, it fails differently than Victor since no core file is generated, but I

[issue36601] signals can be caught by any thread

2019-04-12 Thread Nathaniel Smith
Nathaniel Smith added the comment: Yeah, the check makes sense on a system like the comment says IRIX used to be, where getpid() actually returns a thread id *and* signals are delivered to all threads (wtf). But any modern system should do the POSIX thing, where getpid() returns the same valu

[issue36540] PEP 570: Python Positional-Only Parameters

2019-04-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will separate the work in two Pull Request (maybe more). The implementation of the PEP will be done in PR12701 and the documentation and other additions will be done in future Pull Requests to keep things more manageable. -- ___

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

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

[issue36623] Clean unused parser headers

2019-04-12 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : After the removal of pgen, there are multiple parser headers that are not used anymore or ar lacking implementations. -- components: Interpreter Core messages: 340140 nosy: pablogsal priority: normal severity: normal status: open title: Clean

[issue36623] Clean unused parser headers

2019-04-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +12742 stage: -> patch review ___ Python tracker ___ ___ Pytho

[issue36622] Inconsistent exponent notation formatting

2019-04-12 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith, mark.dickinson, skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[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: > Any ideas of how far I need to throttle the VM? Is there more than just CPU > that I need to limit? I don't know how to make the race condition more likely. I'm not sure that starving the CPU helps. Maybe try the opposite: add more CPUs and reduce the nu

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

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

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5403006c5c371649b92ab8a2cde742412c765640 by Victor Stinner in branch '3.7': bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12814) https://github.com/python/cpython/commit/5403006c5c371649b92ab8a2cde742412c765640 -- _

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 44a2c4aaf2d0c03c70646eb16fbc6c1ba1689e69 by Victor Stinner in branch '2.7': bpo-36605: make tags: parse Modules/_io directory (GH-12789) (GH-12815) https://github.com/python/cpython/commit/44a2c4aaf2d0c03c70646eb16fbc6c1ba1689e69 -- _

[issue36622] Inconsistent exponent notation formatting

2019-04-12 Thread Sep Dehpour
New submission from Sep Dehpour : Floats and Decimals have inconsistent exponent notation formatting: >>> '{:.5e}'.format(Decimal('2.0001')) '2.00010e+0' >>> '{:.5e}'.format(2.0001) '2.00010e+00' This is causing issues for us since we use the scientific notation formatted string of numbers to

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

2019-04-12 Thread Paul Ganssle
Paul Ganssle added the comment: > I don't spend enough time dealing with symlinks to have strong opinions > there, but given we have ways to resolve symlinks but not to get back to the > original name (and I *have* had to deal with issues where I've needed to find > the original name from th

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thanks, Charles. I'm going to assign this to @Mariatta for the sprints. -- assignee: docs@python -> Mariatta nosy: +Mariatta ___ Python tracker

[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: @Victor, I set up a FreeBSD 12.0 VM (in Hyper-v) and made sure core files were getting generated for segfaults. Then I cloned the cpython repo, built it (using GCC), and ran regrtest as you recommended. It generated no core files after half an hour. I adjusted

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

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

[issue32299] unittest.mock.patch.dict.__enter__ should return the dict

2019-04-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- nosy: +xtreak versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue36605] make tags should also parse Modules/_io/*.c and Modules/_io/*.h

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

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

2019-04-12 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue36620] Documentation missing parameter for Itertools.zip_longest

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

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Charles Merriam
Charles Merriam added the comment: Hi Cheryl, No. I've dealt with the Team Python long cycles for random pull requests before. Charles On Fri, Apr 12, 2019 at 2:27 PM Cheryl Sabella wrote: > > Cheryl Sabella added the comment: > > Good catch! In the same section, accumulate() is missing

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: > It should not block us from going forward with a workaround like your PRs for > now. I pushed a fix quickly to unblock my PR 12796, but also because I was very scared by what I saw :-D I see my change as a "quick fix", but we really have to sit down to th

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset a304b136adda3575898d8b5debedcd48d5072272 by Victor Stinner in branch 'master': bpo-36618: Don't add -fmax-type-align flag to old clang (GH-12811) https://github.com/python/cpython/commit/a304b136adda3575898d8b5debedcd48d5072272 -- ___

[issue35581] Document @typing.type_check_only

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

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

2019-04-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe -fno-max-type-align is also an option. -- ___ Python tracker ___ ___ Python-bugs-list

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

2019-04-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: Even if you check for -fmax-type-align compiler support at configure time, there is a potential problem: Nothing guarantees that extension modules are built by the same compiler that CPython is. If CPython used an old clang without support for that flag a

[issue35581] Document @typing.type_check_only

2019-04-12 Thread miss-islington
miss-islington added the comment: New changeset b759a2c5b9612a03c8b30514aa93444268931e5e by Miss Islington (bot) in branch '3.7': bpo-35581: Document @typing.type_check_only (GH-11312) https://github.com/python/cpython/commit/b759a2c5b9612a03c8b30514aa93444268931e5e -- nosy: +miss-i

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

2019-04-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue35581] Document @typing.type_check_only

2019-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: Now waiting for the backport to 3.7. Once that's done I'll close this as fixed. -- ___ Python tracker ___ _

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: See also: * bpo-27987: obmalloc's 8-byte alignment causes undefined behavior * bpo-18835: Add PyMem_AlignedAlloc() * bpo-31912: PyMem_Malloc() should guarantee alignof(max_align_t) -- ___ Python tracker

[issue28055] pyhash's siphash24 assumes alignment of the data pointer

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I see that a fix has been pushed. I'm not sure why this issue is still open, so I close it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue35581] Document @typing.type_check_only

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

[issue35581] Document @typing.type_check_only

2019-04-12 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 1e8295402bf5e81d327ed2b5eb88a6b6de449d63 by Guido van Rossum (Sebastian Rittau) in branch 'master': bpo-35581: Document @typing.type_check_only (GH-11312) https://github.com/python/cpython/commit/1e8295402bf5e81d327ed2b5eb88a6b6de449d63

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2019-04-12 Thread miss-islington
miss-islington added the comment: New changeset 395bb94a7f1c3ec9c29976738dfc6cb5d31f9aee by Miss Islington (bot) in branch '3.7': bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849) https://github.com/python/cpython/commit/395bb94a7f1c3ec9c29976738dfc6cb5d31f9ae

[issue33922] [Windows] Document the launcher's -64 suffix

2019-04-12 Thread miss-islington
miss-islington added the comment: New changeset 395bb94a7f1c3ec9c29976738dfc6cb5d31f9aee by Miss Islington (bot) in branch '3.7': bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849) https://github.com/python/cpython/commit/395bb94a7f1c3ec9c29976738dfc6cb5d31f9ae

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: While this issue looked purely theorical to me 3 years ago, it is now very concrete: bpo-36618 "clang expects memory aligned on 16 bytes, but pymalloc aligns to 8 bytes". -- ___ Python tracker

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

2019-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset 1e2ad6c275d2b09e76b7cbba7281d5a125a593c1 by Steve Dower (mrh1997) in branch 'master': bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849) https://github.com/python/cpython/commit/1e2ad6c275d2b09e76b7cbba7281d5a125a593

[issue30291] Allow windows launcher to specify bit lengths with & without minor version

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

[issue33922] [Windows] Document the launcher's -64 suffix

2019-04-12 Thread miss-islington
Change by miss-islington : -- keywords: +patch pull_requests: +12737 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue33922] [Windows] Document the launcher's -64 suffix

2019-04-12 Thread Steve Dower
Steve Dower added the comment: New changeset 1e2ad6c275d2b09e76b7cbba7281d5a125a593c1 by Steve Dower (mrh1997) in branch 'master': bpo-33922: Adding documentation for new "-64" suffix of Python launcher (GH-7849) https://github.com/python/cpython/commit/1e2ad6c275d2b09e76b7cbba7281d5a125a593

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

2019-04-12 Thread Saim Raza
Saim Raza added the comment: > Knowing that pdb stops just before the interpreter executes the line after > pdb.set_trace(), what prevents you from writing the pdb.set_trace() statement > before the last line of the except clause ? Of course, that can be done. The issue here is to get the co

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

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

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

2019-04-12 Thread Skip Montanaro
Change by Skip Montanaro : -- nosy: -skip.montanaro ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, it seems like the change broke the FreeBSD 10 buildbot :-( https://buildbot.python.org/all/#/builders/167/builds/769 ... checking for makedev... no checking for le64toh... no checking for mode_t... no checking for off_t... no checking for pid_t... no chec

[issue19113] duplicate test names in Lib/ctypes/test/test_functions.py

2019-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Still fails on Python 3.8.0a3+. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

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

2019-04-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Now, I need to *inconveniently* put some dummy code after the ser_trace call > every time I want to access the exception inside the except block Knowing that pdb stops just before the interpreter executes the line after pdb.set_trace(), what prevents you f

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: Good catch! In the same section, accumulate() is missing the `initial` argument. Would you be interested in submitting a pull request for this? -- nosy: +cheryl.sabella ___ Python tracker

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

2019-04-12 Thread Michael Felt
Michael Felt added the comment: On 12/04/2019 17:34, STINNER Victor wrote: > 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" rat

[issue36621] shutil.rmtree follows junctions on windows

2019-04-12 Thread Jordan Hueckstaedt
New submission from Jordan Hueckstaedt : shutil.rmtree follows junctions / reparse points on windows and will delete files in the target link directory. -- components: IO, Windows messages: 340111 nosy: Jordan Hueckstaedt, paul.moore, steve.dower, tim.golden, zach.ware priority: normal

[issue36106] resolve sinpi() name clash with libm

2019-04-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I'll nosy Ned as the release manager about the request to 3.6. -- nosy: +cheryl.sabella, ned.deily ___ Python tracker ___ ___

[issue28809] mention asyncio.gather non-deterministic task starting order

2019-04-12 Thread Cheryl Sabella
Cheryl Sabella added the comment: I believe the issue mentioned here was addressed by the doc rewrite in issue 33649. I'm going to mark this as a duplicate of that issue, but if the concern here still exists, then please re-open this issue. -- nosy: +cheryl.sabella resolution: -> d

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread SilentGhost
Change by SilentGhost : -- stage: -> needs patch versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: Note to myself: "Sadly, the flag must be expected to CFLAGS and not just CFLAGS_NODIST, ..." It should be "Sadly, the flag must be *set* to CFLAGS and not just CFLAGS_NODIST, ..." :-( I should fix the NEWS entry. --

[issue36620] Documentation missing parameter for Itertools.zip_longest

2019-04-12 Thread Charles Merriam
New submission from Charles Merriam : On page: https://docs.python.org/3.8/library/itertools.html In the heading summary, in the "Iterators terminating on the shortest input sequence:" section, in the "zip_longest()" table row, in the "Arguments" column, the text "p, q, ..." should be "p, q,

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: I merged a "workaround" in the master branch. Python 2.7 and 3.7 are also affected, but I prefer to wait to see if the change goes through buildbots. The real fix would be to modify pymalloc to use 16-byte alignement, but that's a more complex issue :-) ---

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: We decided to only disable the code by default, but the code stays until we are sure that nobody uses it. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ 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: New changeset 472f794a33221ea835a2fbf6c9f12aa2bd66d1b0 by Victor Stinner in branch 'master': bpo-18748: test_io: silence destructor errors (GH-12805) https://github.com/python/cpython/commit/472f794a33221ea835a2fbf6c9f12aa2bd66d1b0 -- _

[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 e8f9acf03484c6c3f163f04a76321419369c28aa by Victor Stinner in branch 'master': bpo-36611: Disable serialno field of debug memory allocators (#12796) https://github.com/python/cpython/commit/e8f9acf03484c6c3f163f04a76321419369c28aa --

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

2019-04-12 Thread Matthew Barnett
Matthew Barnett added the comment: Consider re.findall(r'.{0,2}', 'abcde'). It finds 'ab', then continues where it left off to find 'cd', then 'e'. It can also find ''; re.match(r'.*', '') does match, after all. It could, in fact, an infinite number of ''. And what about re.match(r'()*', ''

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0fc91eef34a1d9194904fa093c9fbd711af0f26c by Victor Stinner in branch 'master': bpo-36389: Add _PyObject_CheckConsistency() function (GH-12803) https://github.com/python/cpython/commit/0fc91eef34a1d9194904fa093c9fbd711af0f26c -- __

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

2019-04-12 Thread STINNER Victor
STINNER Victor added the comment: New changeset 23a683adf803eef405d248cc9c2a7eb08a7300e2 by Victor Stinner in branch 'master': bpo-36618: Add -fmax-type-align=8 flag for clang (GH-12809) https://github.com/python/cpython/commit/23a683adf803eef405d248cc9c2a7eb08a7300e2 -- __

[issue36106] resolve sinpi() name clash with libm

2019-04-12 Thread Dmitrii Pasechnik
Dmitrii Pasechnik added the comment: Can this also be backported to 3.5. and 3.6, as requested by FreeBSD maintainers? -- ___ Python tracker ___ _

[issue36601] signals can be caught by any thread

2019-04-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: We can remove ancient Irix and LinuxThreads hacks from our codebase. The best way to shake issues of this sort out is to remove it and watch for issues on supported buildbots and during beta releases. I don't expect any fallout from this one. Other place

[issue36614] Popen output on windows server 2019

2019-04-12 Thread Steve Dower
Steve Dower added the comment: > I guess Popen is using some OS library or environment that has changed in > WS2019. Yep, which is why the report should go to those responsible for WS2019. If they say it's an intentional change and users are supposed to work around it themselves, then we ca

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

2019-04-12 Thread Steve Dower
Steve Dower added the comment: Oh, apart from the What's New section. But this looks enough like a bugfix (previous behaviour "wasn't capitalizing my name correctly" - new behaviour "now capitalizes my name correctly") that it's hardly critical to advertise it on that page. --

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

2019-04-12 Thread Steve Dower
Steve Dower added the comment: What is missing? It looks like everything on Serhiy's list was done. -- ___ Python tracker ___ ___ P

[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. -- ___

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

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

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

[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 ___ ___ Python-bugs-

[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 ___ __

[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 ___ __

[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: https://mail.p

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

[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, &PyCArg_Type); if (p == NULL) return NULL; p->pffi_type = NULL; p->tag = '\0'; p->ob

[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 ___ _

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

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

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

[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. -- ___

[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 ___ ___ P

[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

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

[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: https://m

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

[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: https://mail.py

[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

[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

[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 ___ __

[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: https://mail.pytho

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

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

[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: https://mail.p

[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

  1   2   >