[issue21872] LZMA library sometimes fails to decompress a file

2019-06-04 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I adapted the example in msg221784: with open('22h_ticks_bad.bi5', 'rb') as f: infile = f.read() for i in range(1, 9000): decompressor = _lzma.LZMADecompressor() first_out = decompressor.decompress(infile[:i]) first_len = len(first_out)

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +13683 pull_request: https://github.com/python/cpython/pull/13798 ___ Python tracker ___ ___

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 963eb0f4738456455b9bef7eb531b46805415208 by Raymond Hettinger in branch 'master': bpo-35431: Drop the k <= n requirement (GH-13798) https://github.com/python/cpython/commit/963eb0f4738456455b9bef7eb531b46805415208 -- __

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Raymond Hettinger
Raymond Hettinger added the comment: The __init__ method is public. Here is how to use ItemsView: >>> from collections.abc import ItemsView >>> d = dict(python='snake', ruby='gem', go='board game', c='speed of light') >>> iv = ItemsView(d) >>> ('python', 'snake') in iv True >>> list(iv) [('py

[issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix

2019-06-04 Thread Aldwin Pollefeyt
New submission from Aldwin Pollefeyt : >From this idea [0] by Karthikeyan Singaravelan and added to his code in hack >[1]. name = "karthikeyan" print(f"{name =[}") print(f"{name=[}") print(f"{age = [}") print(f"{age= [}") [prog.py:2] name ='karthikeyan' [prog.py:3] name='karthikeyan' [prog.py

[issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix

2019-06-04 Thread Aldwin Pollefeyt
Change by Aldwin Pollefeyt : -- keywords: +patch pull_requests: +13684 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13799 ___ Python tracker ___

[issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I created a post about it for discussion [0]. There is no consensus on the format and to modify the existing debugging notation. There were also suggestions to include a builtin function (dbg) like breakpoint() that does this. I guess implementatio

[issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix

2019-06-04 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Ok, didn't know about discuss.python.org. Searching on all PR and bpo's there was no reference to your hack. Will investigate this discuss.python.org. Ai ai ai, more info to read. -- ___ Python tracker

[issue37147] f-string debugging f"{x=[}" adds [filename:lineno] as prefix

2019-06-04 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: Can use: import logging l = logging.Logger("") h = logging.StreamHandler() f = logging.Formatter(fmt="[{filename}:{lineno}] {msg}", style="{") h.setFormatter(f) l.addHandler(h) l.info("Hello") Output: >py .\t.py [t.py:8] Hello -- resolution: ->

[issue31006] typing.NamedTuple should add annotations to its constructor (__new__) parameters.

2019-06-04 Thread Antony Lee
Change by Antony Lee : -- nosy: -Antony.Lee ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : https://buildbot.python.org/all/#/builders/1/builds/609/steps/5/logs/stdio = FAIL: test_stream_reader_create_warning (test.test_asyncio.test_streams.StreamTests)

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +13686 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/13800 ___ Python tracker ___

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Stefan Krah
Stefan Krah added the comment: 720MB <= "3-4 dozen" * 20 MB <= 960MB. Per server. It has all been said. :-) I don't understand the objections about alignment. malloc() and obmalloc() are at least 8-byte aligned, mmap() with NULL as the first parameter is page-aligned. -- _

[issue15474] Differentiate decorator and decorator factory in docs

2019-06-04 Thread Andrés Delfino
Andrés Delfino added the comment: Hi Windson Yang! Yes, I'm still working on it. I'll have it ready by the end of June. -- ___ Python tracker ___ _

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: I'm curious if collections.__getattr__ suffers from the same problem? asyncio uses basically the same technique for deprecating global names on import. -- ___ Python tracker _

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > I'm curious if collections.__getattr__ suffers from the same problem? Very likely, the problem is that there is no test in test_collections for the deprecation warning, so this situation never happens. -- ___

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue37148] test_asyncio fails on refleaks buildbots

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4cdbc452ce308bb55523e53963cabdc988e3f44b by Pablo Galindo in branch 'master': bpo-37148: Fix asyncio test that check for warning when running the test suite with huntleaks (GH-13800) https://github.com/python/cpython/commit/4cdbc452ce308

[issue35431] Add a function for computing binomial coefficients to the math module

2019-06-04 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +13687 pull_request: https://github.com/python/cpython/pull/13801 ___ Python tracker ___ ___

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Inada Naoki
Inada Naoki added the comment: > Stefan Krah added the comment: > > 720MB <= "3-4 dozen" * 20 MB <= 960MB. Per server. > > It has all been said. :-) I don't understand what message you are replying. I'm not interested in the number. Who asked MBs / server? Absolute number is not important

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-04 Thread Łukasz Langa
Change by Łukasz Langa : -- keywords: +patch pull_requests: +13688 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13802 ___ Python tracker ___

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Stefan Krah
Stefan Krah added the comment: There's no point discussing unless people develop reading skills. -- ___ Python tracker ___ ___ Pyth

[issue36839] Support the buffer protocol in code objects

2019-06-04 Thread Stefan Krah
Change by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 7f9a2ae78051877f4d966119e2fcd27ec77eda1d by Łukasz Langa in branch 'master': Revert "bpo-34037, asyncio: add BaseEventLoop.wait_executor_on_close (GH-13786)" (#13802) https://github.com/python/cpython/commit/7f9a2ae78051877f4d966119e2fcd27ec77eda1

[issue37145] collections.abc.MappingView mixins rely on undocumented _mapping

2019-06-04 Thread Geoffrey Sneddon
Geoffrey Sneddon added the comment: Then I guess what I consider a bug is "__init__ is undocumented". -- ___ Python tracker ___ ___

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Łukasz Langa reverted my change (PR 13786). I pushed my change without any review to try to fix https://bugs.python.org/issue37137 which blocked the Python 3.8 beta1. Sadly, my change didn't fix this issue. The root cause was differently (and it's now fixed).

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: I still think that this is a valuable change but we need to discuss public API. In fact, in my job we used to override default executor and wait for its shutdown with explicit waiting to make the system robust. The problem is that loop.close() can "hang" for

[issue37149] link to official documentation tkinter failed !!!

2019-06-04 Thread Guilloux
New submission from Guilloux : On the page https://docs.python.org/3/library/tkinter.html there is a link to "Tkinter reference: a GUI for Python" which is "https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html";. BIG PROBLEM : Since several days this link doesn't work any more !!! It

[issue37149] link to official documentation tkinter failed !!!

2019-06-04 Thread Guilloux
Guilloux added the comment: On the page https://docs.python.org/3/library/tkinter.html there is a link to "Tkinter reference: a GUI for Python" which is "https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html";. BIG PROBLEM : Since several days this link doesn't work any more !!! It's

[issue37149] link to official documentation tkinter failed !!!

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: A copy of the URL is present in archive.org [0] . Perhaps the docs could be updated with it. [0] https://web.archive.org/web/20190524140835/https://infohost.nmt.edu/tcc/help/pubs/tkinter/web/index.html -- nosy: +xtreak versions: -Python

[issue34037] asyncio: BaseEventLoop.close() shutdowns the executor without waiting causing leak of dangling threads

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: > The problem is that loop.close() can "hang" for minutes if there are pending > background jobs or slow DNS resolution requests. Maybe concurrent.futures should be enhanced for that? Or from asyncio, is it possible to poll the executor and emit a warning if

[issue37149] link to official documentation tkinter failed !!!

2019-06-04 Thread Guilloux
Guilloux added the comment: The comment of Karthikeyan Singaravelan seems to be a good idea. Question : is it possible to send a pdf (2.08 MB) to the python tracker ? -- ___ Python tracker _

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2019-06-04 Thread Kubilay Kocak
Kubilay Kocak added the comment: Access to the buildbot has been restored (a while ago), and this issue being resolved (merge to 2.7) is the only test failing to get 2.7 back to green, which has been failing for months. Can we test with Victors proposed patch in msg330654 ? I don't believe t

[issue35121] Cookie domain check returns incorrect results

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: I added this issue to my security website: https://python-security.readthedocs.io/vuln/cookie-domain-check.html So it's fixed in Python 3.4.10, 3.5.7 and 3.7.3. Right now, 2.7 and 3.6 are vulnerable (but 3.6 branch is fixed). -- nosy: +vstinner

[issue35121] Cookie domain check returns incorrect results

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Can someone try to backport the fix to Python 2.7? -- ___ Python tracker ___ ___ Python-bugs-list

[issue37137] test_asyncio: test_cancel_gather_2() dangling thread

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

[issue37137] test_asyncio: test_cancel_gather_2() dangling thread

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed. Let's continue the discussion on https://bugs.python.org/issue35621 to maybe reapply commit 13ed07998ad93dbdd94991ba0451b9b559f07972. -- ___ Python tracker

[issue36818] Add PyInterpreterState.runtime.

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: See https://bugs.python.org/issue37135#msg344509 to reproduce https://bugs.python.org/issue37135 crash without multiprocessing: with this procedure, I reproduce the crash immediately on Linux. No need for a magic super slow buildbot. -- ___

[issue37135] test_multiprocessing_spawn segfaults on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: The initial issue has been fixed by a revert. Let's continue the discussion on bpo-36818 to maybe reapply commit 396e0a8d9dc65453cb9d53500d0a620602656cfe. -- resolution: -> fixed stage: -> resolved status: open -> closed __

[issue35121] Cookie domain check returns incorrect results

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Can someone try to backport the fix to Python 2.7? The backport to 2.7 PR 13426 is open. It would be helpful if someone can review it. I am not sure of the commit review process and who needs to review and approve it since this is assigned to Ben

[issue33529] [security] Infinite loop on folding email (_fold_as_ew()) if an header has no spaces

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Python 3.6, 3.5 and 2.7 are still vulnerable. Is there someone interested to backport the fix? -- ___ Python tracker ___ ___

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Fixed by https://github.com/python/cpython/pull/13790 -- ___ Python tracker ___ ___ Python-bugs-l

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue36870] test_asyncio: test_drain_raises() fails randomly on Windows

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue36732] test_asyncio: test_huge_content_recvinto() fails randomly

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently. I close it. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker __

[issue36724] Clear _PyRuntime at exit

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: bpo-36818 caused a regression: https://bugs.python.org/issue37135#msg344511 We should be careful when we modify Python finalization, especially with daemon threads. -- ___ Python tracker

[issue35647] Cookie path check returns incorrect results

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 is still affected, right? Is there someone interested to backport the fix? -- nosy: +vstinner ___ Python tracker ___

[issue35647] Cookie path check returns incorrect results

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: > Python 2.7 is still affected, right? Is there someone interested to backport > the fix? PR 13427 fixes the issue in 2.7 :) -- ___ Python tracker __

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: This still seems to hang and timeout after 25 minutes : https://buildbot.python.org/all/#/builders/168/builds/1151/steps/5/logs/stdio -- nosy: +xtreak ___ Python tracker

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Demid
New submission from Demid : There is a possibility that someone (like me) accidentally will omit parentheses with FileType arguments after FileType, and parser will contain wrong file until someone will try to use it. Example: parser = argparse.ArgumentParser() parser.add_argument('-x', type

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread Andrew Svetlov
Change by Andrew Svetlov : -- keywords: +patch pull_requests: +13689 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/13804 ___ Python tracker _

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: Follow-up for https://github.com/python/cpython/pull/13790 is ready -- ___ Python tracker ___ ___

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: I mean https://github.com/python/cpython/pull/13804 -- ___ Python tracker ___ ___ Python-bugs-lis

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Demid
Change by Demid : -- keywords: +patch pull_requests: +13690 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13805 ___ Python tracker ___ __

[issue37124] test_msilib is potentially leaking references and memory blocks

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Python 2.7 is still affected: https://buildbot.python.org/all/#/builders/33/builds/607 test_msilib leaked [1, 1, 1] references, sum=3 -- nosy: +vstinner ___ Python tracker _

[issue36964] `python3 -m venv NAME`: virtualenv is not portable

2019-06-04 Thread Laurie Opperman
Laurie Opperman added the comment: If you're moving the virtual environment directory in Linux you'll also need to update the shebangs for the scripts/binaries -- ___ Python tracker

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread SilentGhost
Change by SilentGhost : -- versions: -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8d561092d510670ce9c038701c90c913453eac90 by Victor Stinner (Andrew Svetlov) in branch 'master': bpo-37142: Make asyncio stream tests more robust again (GH-13804) https://github.com/python/cpython/commit/8d561092d510670ce9c038701c90c913453eac90

[issue37142] test_asyncio timed out on AMD64 FreeBSD CURRENT Shared 3.x

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Close again. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13692 pull_request: https://github.com/python/cpython/pull/13807 ___ Python tracker ___ __

[issue36656] Please add race-free os.link and os.symlink wrapper / helper

2019-06-04 Thread Eryk Sun
Eryk Sun added the comment: > I'd like to add a few notes; please do consider Windows interactions > here - Windows does not have the same model for inode replacement that > Posix has. Certainly Windows doesn't have the same model for inode replacement since it doesn't have inodes. ;-) Lik

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: shutil copy functions would definitively benefit of using copy_file_range() if available. Can someone please open a separated issue for shutil? -- ___ Python tracker __

[issue37151] Calling code cleanup after PEP 590

2019-06-04 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : Now that PEP 590 has been implemented, a lot of old code can be cleaned up. In particular: - get rid of _PyMethodDef_RawFastCallXXX() functions and replace them by vectorcall functions for each calling convention - get rid of FastCallDict() implementations

[issue36924] Simplify implementation of classmethod_descriptor.__call__

2019-06-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: I opened a more general issue #37151 -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26219] implement per-opcode cache in ceval

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13693 pull_request: https://github.com/python/cpython/pull/13809 ___ Python tracker ___ __

[issue37140] ctypes change made clang fail to build

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: > On Fedora, "clang" fails to build with Python 3.8 Would you mind to elaborate? It works for me on Fedora 30 with clang 8.0.0: $ ./configure CC=clang $ make $ ./python -m test -v test_ctypes ... Tests result: SUCCESS I tested the master branch of Python. -

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: shutil.copyfile() already uses sendfile() which basically provides the same performances. sendfile() should be preferred though because it’s supported since Linux 2.6.33. -- ___ Python tracker

[issue37151] Calling code cleanup after PEP 590

2019-06-04 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +13694 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13340 ___ Python tracker ___ _

[issue37140] ctypes change made clang fail to build

2019-06-04 Thread Petr Viktorin
Petr Viktorin added the comment: The issue is with building clang using Python 3.8; not building Python 3.8 using clang :) -- ___ Python tracker ___ _

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: But copy_file_rane can leverage more filesystem features like deduplication and copy offload stuff. -- ___ Python tracker ___ ___

[issue37140] ctypes change made clang fail to build

2019-06-04 Thread serge-sans-paille
serge-sans-paille added the comment: @vstinner: to reproduce the issue ``` git clone https://github.com/llvm/llvm-project.git cd llvm-project mkdir _build cd _build cmake3 ../llvm -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DBUILD_SHARED_LIBS=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTA

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Giampaolo Rodola': > shutil.copyfile() already uses sendfile() which basically provides the same > performances. sendfile() should be preferred though because it’s supported > since Linux 2.6.33. Pablo Galindo Salgado: > But copy_file_rane can leverage more f

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-04 Thread carlo
New submission from carlo : both mean the same thing and are used to reference local socket files if you do a `man socket` one of the lines says PF_LOCALHost-internal protocols, formerly called PF_UNIX, (AF and PF mean the same thing here, but importantly it shows that PF_UNIX has b

[issue26826] Expose new copy_file_range() syscall in os module.

2019-06-04 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I think data deduplication / CoW / reflink copy is better implemented via FICLONE. "cp --reflink" uses it, I presume because it's older than copy_file_range(). I have a working patch adding CoW copy support for Linux and OSX (but not Windows). I think tha

[issue26219] implement per-opcode cache in ceval

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset ea9f168957f7236aae2185f65e0dc608a9a7a37b by Victor Stinner in branch 'master': bpo-26219: Fix compiler warning in _PyCode_InitOpcache() (GH-13809) https://github.com/python/cpython/commit/ea9f168957f7236aae2185f65e0dc608a9a7a37b -- __

[issue36778] test_site.StartupImportTests.test_startup_imports fails if default code page is cp65001

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset ca612a9728b83472d9d286bbea74972d426ed344 by Victor Stinner in branch 'master': bpo-36778: Remove outdated comment from CodePageTest (GH-13807) https://github.com/python/cpython/commit/ca612a9728b83472d9d286bbea74972d426ed344 -- __

[issue37140] ctypes change made clang fail to build

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: It would be great to be able to write a reproducer and then convert it into a proper unit test. -- ___ Python tracker ___ __

[issue33725] Python crashes on macOS after fork with no exec

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Ned Deily: > No, it has *always* been unsafe. What's new as of 10.13/14 is that macOS > tries much harder at runtime to detect such cases and more predictably cause > an error rather than letter than let the process run on and possibly fail > nondeterministi

[issue37152] Add AF_LOCAL alias for AF_UNIX

2019-06-04 Thread carlo
Change by carlo : -- keywords: +patch pull_requests: +13695 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13810 ___ Python tracker ___ __

[issue26219] implement per-opcode cache in ceval

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: I understand that the initial issue (add an opcode cache) has been implemented. Well done Yury and INADA-san! Please open new issues for follow-up like the new optimization ideas ;-) -- resolution: -> fixed stage: patch review -> resolved status: op

[issue30699] Misleading class names in datetime.tzinfo usage examples

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13697 pull_request: https://github.com/python/cpython/pull/13811 ___ Python tracker ___ __

[issue30699] Misleading class names in datetime.tzinfo usage examples

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: New changeset f0b5ae4567637b24035ecda93a3240efc96b6dd9 by Victor Stinner (Mario Corchero) in branch 'master': bpo-30699: Improve example on datetime tzinfo instances (GH-4290) https://github.com/python/cpython/commit/f0b5ae4567637b24035ecda93a3240efc96b6dd9

[issue30699] Misleading class names in datetime.tzinfo usage examples

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 12c178799a23b47c5f8ebc072cbdf09a370649ae by Miss Islington (bot) in branch '3.7': bpo-30699: Improve example on datetime tzinfo instances (GH-4290) https://github.com/python/cpython/commit/12c178799a23b47c5f8ebc072cbdf09a370649ae -- no

[issue30699] Misleading class names in datetime.tzinfo usage examples

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: Thanks Mario Corchero for the doc enhancement, and Paul for the review! Python 2.7 is not affected: datetime has no timeinfo class. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Pyth

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +13698 pull_request: https://github.com/python/cpython/pull/13812 ___ Python tracker ___ _

[issue37150] Do not allow to pass FileType class object instead of instance in add_argument

2019-06-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +paul.j3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13699 pull_request: https://github.com/python/cpython/pull/13813 ___ Python tracker ___ __

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8d0ef0b5edeae52960c7ed05ae8a12388324f87e by Łukasz Langa (Steve Dower) in branch 'master': bpo-36742: Corrects fix to handle decomposition in usernames (#13812) https://github.com/python/cpython/commit/8d0ef0b5edeae52960c7ed05ae8a12388324f87e ---

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread miss-islington
Change by miss-islington : -- pull_requests: +13700 pull_request: https://github.com/python/cpython/pull/13814 ___ Python tracker ___ __

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Steve Dower
Change by Steve Dower : -- pull_requests: +13701 pull_request: https://github.com/python/cpython/pull/13815 ___ Python tracker ___ _

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for this engagement and pull requests, Steve. Thanks for reviews Karthikeyan. -- nosy: +orsenthil ___ Python tracker ___

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread miss-islington
miss-islington added the comment: New changeset 250b62acc59921d399f0db47db3b462cd6037e09 by Miss Islington (bot) in branch '3.7': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) https://github.com/python/cpython/commit/250b62acc59921d399f0db47db3b462cd6037e09 ---

[issue36421] A possible double decref in _ctypes.c's PyCArrayType_new()

2019-06-04 Thread STINNER Victor
STINNER Victor added the comment: > just one question, how did you detect this bug? I bet that Zackery Spytz used Svace static analyzer: http://www.ispras.ru/en/technologies/svace/ See also: https://python-security.readthedocs.io/security.html#static-analysers-of-cpython-code-base

[issue33762] temp file isn't IOBase

2019-06-04 Thread Greg Lindahl
Greg Lindahl added the comment: This is breaking aiohttp client file multipart uploads from temporary files. I'd be willing to bet that a lot of libraries do isinstance(foo, io.IOBase) deep in their guts. -- nosy: +wumpus ___ Python tracker

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
New submission from STINNER Victor : x86 Windows7 3.x: https://buildbot.python.org/all/#/builders/58/builds/2573 0:42:21 load avg: 4.40 [283/423/1] test_venv crashed (Exit code 1) Timeout (0:35:00)! Thread 0x00c0 (most recent call first): File "D:\cygwin\home\db3l\buildarea\3.x.bolen-win

[issue37153] test_venv: test_multiprocessing() hangs randomly on x86 Windows7 3.x

2019-06-04 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +13702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/13816 ___ Python tracker ___ _

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Demid
Change by Demid : -- nosy: +zygocephalus -dm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue37144] tarfile.open: improper handling of path-like object

2019-06-04 Thread Demid
Change by Demid : -- nosy: +dm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailma

[issue36742] urlsplit doesn't accept a NFKD hostname with a port number

2019-06-04 Thread Steve Dower
Steve Dower added the comment: New changeset f61599b050c621386a3fc6bc480359e2d3bb93de by Steve Dower in branch '2.7': bpo-36742: Corrects fix to handle decomposition in usernames (GH-13812) https://github.com/python/cpython/commit/f61599b050c621386a3fc6bc480359e2d3bb93de -- ___

  1   2   >