[issue39148] DatagramProtocol + IPv6 does not work with ProactorEventLoop

2020-05-17 Thread Alex Grönholm
Alex Grönholm added the comment: The PR is still awaiting for a core developer to be reviewed. It's too bad we missed the 3.8.3 window, but perhaps this can get included in 3.9.0 at least. -- ___ Python tracker

[issue35569] OSX: Enable IPV6_RECVPKTINFO

2020-05-17 Thread Ned Deily
Ned Deily added the comment: New changeset 9a45bfe6f4aedd2a9d94cb12aa276057b15d8b63 by Erlend Egeberg Aasland in branch 'master': bpo-35569: Expose RFC 3542 IPv6 socket options on macOS (GH-19526) https://github.com/python/cpython/commit/9a45bfe6f4aedd2a9d94cb12aa276057b15d8b63 --

[issue40655] Fix a bad programming practice from 'from x import *', 'Lib / ctypes / test /'.

2020-05-17 Thread Hakan
Change by Hakan : -- title: Fix from a bad programming practice 'from x import *', 'Lib / ctypes / test /'. -> Fix a bad programming practice from 'from x import *', 'Lib / ctypes / test /'. ___ Python tracker

[issue35569] Expose RFC 3542 IPv6 socket options on macOS

2020-05-17 Thread Ned Deily
Change by Ned Deily : -- pull_requests: +19451 pull_request: https://github.com/python/cpython/pull/20146 ___ Python tracker ___

[issue40656] Clean up detect_socket() in setup.py

2020-05-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Added file: https://bugs.python.org/file49163/0001-bpo-40656-Clean-up-detect_socket.patch ___ Python tracker ___

[issue40656] Clean up detect_socket() in setup.py

2020-05-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Removed file: https://bugs.python.org/file49161/0001-Clean-up-detect_socket.patch ___ Python tracker ___

[issue40644] Text representation of Windows' file attributes similar to stat.filemode()

2020-05-17 Thread Pavol Babinčák
Pavol Babinčák added the comment: Thanks for exhaustive response! The way how I understand this is it might be beneficial to extend request to get text representation of file attributes on other architectures. I didn't know about statx() syscall. From what I can tell there is no binary,

[issue40655] Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'.

2020-05-17 Thread Hakan
Change by Hakan : -- title: Fix a bad programming practice from 'from x import *', 'Lib / ctypes / test /'. -> Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'. ___ Python tracker

[issue35569] Expose RFC 3542 IPv6 socket options on macOS

2020-05-17 Thread Ned Deily
Ned Deily added the comment: New changeset fa098b6bc8662cceb944ad5a4a3e5eb63d3cb517 by Ned Deily in branch 'master': bpo-35569: add Erlend to Misc/ACKS (GH-20146) https://github.com/python/cpython/commit/fa098b6bc8662cceb944ad5a4a3e5eb63d3cb517 --

[issue40656] Clean up detect_socket() in setup.py

2020-05-17 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Rewrite to use `if cond`, iso. `if not cond` -- components: Build files: 0001-Clean-up-detect_socket.patch keywords: patch messages: 369101 nosy: erlendaasland priority: normal severity: normal status: open title: Clean up detect_socket() in

[issue40657] Resource leaks with threading.Thread

2020-05-17 Thread Rosen Tomov
New submission from Rosen Tomov : In my project I'm using intensively threading to transfer HTTP data - reading is in separate thread and the process run smoothly. However when I've try to optimize stopping of the process and attempt to use the daemon threads. The result was 'Can't start new

[issue40644] Text representation of Windows' file attributes similar to stat.filemode()

2020-05-17 Thread Pavol Babinčák
Pavol Babinčák added the comment: In a second example I meant: stat.filemode(stat.S_IMODE(os.lstat(n).st_mode))[1:4] -- ___ Python tracker ___

[issue35569] Expose RFC 3542 IPv6 socket options on macOS

2020-05-17 Thread Ned Deily
Ned Deily added the comment: Thanks for the PR! Merged for 3.9.0b1 -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: OSX: Enable IPV6_RECVPKTINFO -> Expose RFC 3542 IPv6 socket options on macOS versions: -Python 3.8

[issue40655] Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'.

2020-05-17 Thread Hakan
Change by Hakan : -- keywords: +patch pull_requests: +19452 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20147 ___ Python tracker ___

[issue40655] Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'.

2020-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I do not think there is something wrong with the current code. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue40655] Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'.

2020-05-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pure cosmetic changes to satisfy some aesthetic preferences are not accepted. Every changes has its cost (it consumes the time of core developers to review, has maintenance cost, and disturbs the history of the files) and should be made only if it has a

[issue40318] Migrate to SQLite3 trace v2 API

2020-05-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40655] Fix 'from x import *' which is bad programming practice from 'Lib/ctypes/test/'.

2020-05-17 Thread Hakan
Hakan added the comment: Are code quality enhancement contributions not accepted? Since the 'from x import * `structure is used in the current code, it is not understood where the objects come from. I thought it would be good to fix this. -- ___

[issue40656] Clean up detect_socket() in setup.py

2020-05-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : Removed file: https://bugs.python.org/file49163/0001-bpo-40656-Clean-up-detect_socket.patch ___ Python tracker ___

[issue40455] GCC 10 compiler warnings

2020-05-17 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-17 Thread Eryk Sun
Eryk Sun added the comment: Copying a symlink verbatim requires copying both the print name and the substitute name in the reparse buffer [1]. For a file, CopyFileExW: COPY_FILE_COPY_SYMLINK implements this by enabling the symlink privilege for the thread and copying the reparse point via

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-05-17 Thread Edison Abahurire
Edison Abahurire added the comment: Thanks for the review @p-ganssle. I'll request that you assign it to me, counting on your guidance while changing it in the C implementation. -- ___ Python tracker

[issue39657] Bezout and Chinese Remainder Theorem in the Standard Library?

2020-05-17 Thread Mark Dickinson
Mark Dickinson added the comment: Related (imath module discussions): #37132, #40028. -- ___ Python tracker ___ ___

[issue40655] Fix from a bad programming practice 'from x import *', 'Lib / ctypes / test /'.

2020-05-17 Thread Hakan
New submission from Hakan : When I use [unimport](https://github.com/hakancelik96/unimport), I saw this problem and I am sending a PR to fix it. -- components: Tests messages: 369097 nosy: hakancelik priority: normal severity: normal status: open title: Fix from a bad programming

[issue40656] Clean up detect_socket() in setup.py

2020-05-17 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +19453 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20148 ___ Python tracker ___

[issue40645] Use OpenSSL's HMAC API

2020-05-17 Thread Christian Heimes
Christian Heimes added the comment: def new(key, msg=None, digestmod=''): # use fast HMAC if OpenSSL bindings are available and digestmod is # either a string or a callable that returns an OpenSSL HASH object. if _hashopenssl is not None: if isinstance(digestmod, str):

[issue40649] [Errno 1]

2020-05-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: The error message you linked does not show an issue with the Python installation but the permissions are wrong on the 'howdy.py' file, that's what the error message says: can't open file 'howdy.py': [Errno 1] Operation not permitted You have to check the

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Added file: https://bugs.python.org/file49166/recursive_merge.py ___ Python tracker ___ ___ Python-bugs-list

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Added file: https://bugs.python.org/file49165/losers.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue25920] PyOS_AfterFork should reset socketmodule's lock

2020-05-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: Technically this would be a functional change, I'd drop this code in 3.9 and trunk (although it is awfully close to the expected date for 3.9b1). Older versions would keep this code and the bug, that way the older python versions can still be used on

[issue40649] [Errno 1]

2020-05-17 Thread Glenn Travis
Glenn Travis added the comment: As per your suggestion I have sent an email to python help, just looking for info regarding what you would consider the key permission settings. -- ___ Python tracker

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-05-17 Thread Julien Palard
Julien Palard added the comment: Hi Chris, which exception did you got exactly? Was it caused by the r| mode or by a symlink (or file) already existing? -- nosy: +mdk ___ Python tracker

[issue39976] Add "**other_popen_kwargs" to subprocess API signatures in docs

2020-05-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: New changeset 46545000c2a30b46aed717b546bc09e5bae7148f by Zackery Spytz in branch 'master': bpo-39976: Add **other_popen_kwargs to subprocess docs (GH-20145) https://github.com/python/cpython/commit/46545000c2a30b46aed717b546bc09e5bae7148f -- nosy:

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Removed file: https://bugs.python.org/file49165/losers.py ___ Python tracker ___ ___ Python-bugs-list mailing

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Added file: https://bugs.python.org/file49167/losers.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40649] [Errno 1]

2020-05-17 Thread Glenn Travis
Glenn Travis added the comment: I think that you are referring to Gatekeeper. Something that I have run into with various applications, such as certain utility files in Ortho4XP and even when adding aircraft to X-Plane(some of the developers refuse to become approved Apple developers).

[issue40452] IDLE: preserve clipboard on closure on Windows

2020-05-17 Thread E. Paine
E. Paine added the comment: Test example: 1) Open IDLE (shell or editor) 2) Copy some text in the IDLE window 3) Close the IDLE window (instance should end) 4) Paste into application of choice Without the patch, the clipboard is cleared when the instance ends so nothing is pasted. With the

[issue40152] Coroutine hangs if it performs async operations when handling exception sent using throw()

2020-05-17 Thread Chris Jerdonek
Change by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-05-17 Thread Pavol Babinčák
Change by Pavol Babinčák : -- nosy: +scrool ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39959] Bug on multiprocessing.shared_memory

2020-05-17 Thread Rauan Mukhamejanov
Rauan Mukhamejanov added the comment: Not sure about "it can always be accessed and closed/unlinked by any process later on", as each process will be spawning its own resource_tracker, using a separate pipe. Thus, unregister calls from other processes will not have any effect. The

[issue39976] Add "**other_popen_kwargs" to subprocess API signatures in docs

2020-05-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: I'm not sure if this is worth backporting, but let me know if you think it should. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2020-05-17 Thread Chris AtLee
Chris AtLee added the comment: It's caused by the combination of the symlink existing, and having the tarfile opened in r| mode. If I run the attached test file in a fresh directory, I get the following exception: raceback (most recent call last): File

[issue40649] [Errno 1]

2020-05-17 Thread Rémi Lapeyre
Rémi Lapeyre added the comment: It's because application on recent versions of MacOS cannot access files in some directories without being granted permission explicitly, a permission model similar to what iOS and Android. You can grant them additional permission using System Preferences, see

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-05-17 Thread Edison Abahurire
Edison Abahurire added the comment: Oh! I realized that statement is there because the strftime method used is inherited from the date class. -- ___ Python tracker ___

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I think we may need to test for the error indicator (and maybe PyErr_Ocurred for safety) before every alternative. Something like: diff --git a/Tools/peg_generator/pegen/c_generator.py b/Tools/peg_generator/pegen/c_generator.py index

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Indeed, that diff solves the problem -- ___ Python tracker ___ ___ Python-bugs-list

[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-17 Thread Christian Heimes
Christian Heimes added the comment: New changeset 62ecd8a8f908282726d2f019c93efa1cf2e9e784 by Christian Heimes in branch 'master': bpo-37630: Fix spelling shake128 -> shake_128 (GH-20154) https://github.com/python/cpython/commit/62ecd8a8f908282726d2f019c93efa1cf2e9e784 --

[issue40643] Improve doc-strings for datetime.strftime & strptime

2020-05-17 Thread Edison Abahurire
Edison Abahurire added the comment: Hi, An enquiry here: On the web documentation of strftime (https://docs.python.org/3/library/datetime.html?highlight=strftime#datetime.time.strftime), What does this mean? "Format codes referring to hours, minutes or seconds will see 0 values."

[issue40334] PEP 617: new PEG-based parser

2020-05-17 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19454 pull_request: https://github.com/python/cpython/pull/20151 ___ Python tracker ___

[issue40645] Use OpenSSL's HMAC API

2020-05-17 Thread Christian Heimes
Christian Heimes added the comment: New changeset 54f2898fe7e4ca1f239e96284af3cc5b34d2ae02 by Christian Heimes in branch 'master': bpo-40645: Implement HMAC in C (GH-20129) https://github.com/python/cpython/commit/54f2898fe7e4ca1f239e96284af3cc5b34d2ae02 --

[issue18262] ZipInfo.external_attr are not documented

2020-05-17 Thread Pavol Babinčák
Pavol Babinčák added the comment: I'm interested in this documentation enhancement as well. Alex, I'm wondering if you could convert your patch to GitHub? [1] [1] https://devguide.python.org/pullrequest/#converting-an-existing-patch-from-b-p-o-to-github -- nosy: +scrool

[issue38870] Expose ast.unparse in the ast module

2020-05-17 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- pull_requests: +19455 pull_request: https://github.com/python/cpython/pull/20152 ___ Python tracker ___

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-05-17 Thread Christian Heimes
Christian Heimes added the comment: The statx call was introduced by Kernel 4.11 in 2017. Major LTS Linux distributions like Debian 9, Ubuntu 16.04, and CentOS 7 use older Kernels like Linux 4.9 LTS or 3.10 LTS. In general we try to support older Kernel ABIs even when Python is compiled on

[issue40334] PEP 617: new PEG-based parser

2020-05-17 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19456 pull_request: https://github.com/python/cpython/pull/20153 ___ Python tracker ___

[issue40629] Error MSB4086 (numeric comparison)

2020-05-17 Thread veganaiZe
veganaiZe added the comment: Using Windows 10 SDK (from late 2019). It's essential for the 2015r3 tools (since the build tools don't include the standard lib headers! --Gimme a break Microsoft!) Here's the TL;DR from the log: 2>Building with tools version "4.0".

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Removed file: https://bugs.python.org/file48747/iter_merge.py ___ Python tracker ___ ___ Python-bugs-list

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Added file: https://bugs.python.org/file49164/tournament_heap.py ___ Python tracker ___ ___ Python-bugs-list

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Removed file: https://bugs.python.org/file49156/recursive_merge.py ___ Python tracker ___ ___ Python-bugs-list

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Change by Dennis Sweeney : Removed file: https://bugs.python.org/file48748/merge_recipe.py ___ Python tracker ___ ___ Python-bugs-list

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Dennis Sweeney
Dennis Sweeney added the comment: It seems to me that the code sprawl mostly comes from the separate handling of the four keyed/unkeyed and forward/reverse cases, which as far as I can tell requires a branch in the innermost loop if not unrolled into separate cases. I think

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: I strongly suspect bpo-37834 and GH-15231 is where the difference was introduced. -- ___ Python tracker ___

[issue37630] Investigate replacing SHA3 code with OpenSSL

2020-05-17 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +19457 pull_request: https://github.com/python/cpython/pull/20154 ___ Python tracker ___

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2020-05-17 Thread Yonatan Goldschmidt
Change by Yonatan Goldschmidt : -- nosy: +Yonatan Goldschmidt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40649] [Errno 1]

2020-05-17 Thread Glenn Travis
Glenn Travis added the comment: ok, fine. So what permissions would indicate that "the Python interpreter can read it." The Get Info screenshot that he sent me looks just like mine with regard to permissions. The long list in terminal shows nothing special. I am not having problems running

[issue40654] shutil.copyfile mutates symlink for absolute path

2020-05-17 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thank you Eryk for the thorough and informative investigation. Seriously, wow. > Do you want 3.8 to revert to using the print name, at least for symlinks? > (ntpath._readlink_deep would need to be modified to support long target > paths.) Or would you

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : The new peg parser segfaults when parsing the attached reproducer. this is due to the fact that the exception set by `tokenizer_error` is not properly propagated. -- components: Interpreter Core files: reproducer.py messages: 369132 nosy:

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Guido van Rossum
Guido van Rossum added the comment: How costly is PyErr_Occurred()? That worries me most, otherwise I’d accept this right away. -- ___ Python tracker ___

[issue40664] Documentation error: itertools.dropwhile(is_even, itertools.count()) output

2020-05-17 Thread Nicolas Gimenez
Nicolas Gimenez added the comment: Relase: 0.32 Lang: English Python version: 3.8.3 -- ___ Python tracker ___ ___ Python-bugs-list

[issue34431] Docs does not eval allows code object as argument

2020-05-17 Thread Furkan Onder
Furkan Onder added the comment: Hi Jonathan, Are you still planning to work on the patch? -- ___ Python tracker ___ ___

[issue40257] Improve the use of __doc__ in pydoc

2020-05-17 Thread Thomas Caswell
Change by Thomas Caswell : -- nosy: +tcaswell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: A quick benchmark using xxl.py: Base time (master): Time: 9.386 seconds on an average of 20 runs With the patch in this issue: Time: 9.498 seconds on an average of 20 runs Sadly I could not test with PGO/LTO and without CPU isolation, so it would be

[issue38938] Possible performance improvement for heaqq.merge()

2020-05-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: Am leaning toward the iterative approach in new_merge.py because it most directly implements the core concept of storing the data in a binary tree. Merits: no recursion, no nested generators, avoids the clutter of left-empty and right-empty checks, easy

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-05-17 Thread ntninja
ntninja added the comment: I thought this might be the case, I'll look into adapting the patch accordingly then. -- ___ Python tracker ___

[issue40662] ast.get_source_segment behaviour with missing location info doesn't match doctoring

2020-05-17 Thread Irit Katriel
New submission from Irit Katriel : The doctoring says "If some location information (lineno, end_lineno, col_offset, or end_col_offset) is missing, return None." However: >>> s = "12" >>> node = ast.parse(s).body[0] >>> ast.get_source_segment(s, node) '12' >>> del node.lineno >>>

[issue40663] Wrong generated annotation on subscripting

2020-05-17 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : >>> from __future__ import annotations >>> a: Type[int, str] >>> b: Type[(int, str, *types)] >>> __annotations__ {'a': 'Type[int, str]', 'b': 'Type[int, str, *types]'} >>> ast.parse(__annotations__["b"]) Traceback (most recent call last): File "", line 1,

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Guido van Rossum
Guido van Rossum added the comment: I see almost no time difference for 'make time_stdlib': before 3.471, after 3.451. But I see a serious difference for 'make time_compile': before 3.474, after 4.996. That's over 40% slower (on the extreme case, xxl.py). I'll prepare a PR just in case.

[issue40664] Documentation error: itertools.dropwhile(is_even, itertools.count()) output

2020-05-17 Thread Nicolas Gimenez
New submission from Nicolas Gimenez : On this page: https://docs.python.org/3/howto/functional.html The example: "itertools.dropwhile(is_even, itertools.count()) => 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ..." is wrong. It should be: "itertools.dropwhile(is_even, itertools.count()) => 1, 3, 5, 7,

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Guido van Rossum
Change by Guido van Rossum : -- keywords: +patch pull_requests: +19462 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20159 ___ Python tracker

[issue37496] Support annotations in signature strings.

2020-05-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40662] ast.get_source_segment behaviour with missing location info doesn't match doctoring

2020-05-17 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40662] ast.get_source_segment behaviour with missing location info doesn't match docstring

2020-05-17 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +19460 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20157 ___ Python tracker ___

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread gaborbernat
gaborbernat added the comment: I think semantically the correct expression would be available timezones, free function, set and no cache. Document the operation is expensive and users should cache if they want repeated access or provide an available timezones cached function  my 2c

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread Filipe Laíns
Change by Filipe Laíns : -- nosy: +FFY00 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40664] Documentation error: itertools.dropwhile(is_even, itertools.count()) output

2020-05-17 Thread SilentGhost
SilentGhost added the comment: Did you try running that? The documentation is correct, dropwhile works differently than filter. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed type: -> behavior ___

[issue39533] Use `statx(2)` system call on Linux for extended `os.stat` information

2020-05-17 Thread Christian Heimes
Christian Heimes added the comment: You can find an example in Python/bootstrap_hash.c that deals with getrandom syscall. -- ___ Python tracker ___

[issue40665] Use Argument Clinic for bisect

2020-05-17 Thread Shantanu
Change by Shantanu : -- keywords: +patch pull_requests: +19463 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20163 ___ Python tracker ___

[issue40665] Use Argument Clinic for bisect

2020-05-17 Thread Shantanu
New submission from Shantanu : As the title says! Am submitting a PR. -- components: Argument Clinic messages: 369153 nosy: hauntsaninja, larry priority: normal severity: normal status: open title: Use Argument Clinic for bisect ___ Python tracker

[issue40663] Wrong generated annotation on subscripting

2020-05-17 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +19459 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20156 ___ Python tracker ___

[issue40663] Wrong generated annotation on subscripting

2020-05-17 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: $ python3.8 Python 3.8.0+ (heads/3.8:b9e5547f58, Nov 28 2019, 19:18:03) [GCC 9.2.1 20191008] on linux Type "help", "copyright", "credits" or "license" for more information. >>> from __future__ import annotations >>> b: Type[(int, str, *types)] >>>

[issue40663] Wrong generated annotation on subscripting

2020-05-17 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- components: +Interpreter Core type: -> behavior versions: +Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue40662] ast.get_source_segment behaviour with missing location info doesn't match docstring

2020-05-17 Thread Irit Katriel
Change by Irit Katriel : -- title: ast.get_source_segment behaviour with missing location info doesn't match doctoring -> ast.get_source_segment behaviour with missing location info doesn't match docstring ___ Python tracker

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread Paul Ganssle
Paul Ganssle added the comment: I've opened a PR adding this feature and tagged this as release blocker, since I'd like to make sure this is in the beta if Łukasz does not object. The concerns about the stability of the function I expressed earlier have not changed much, though we did get

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread Paul Ganssle
Change by Paul Ganssle : -- pull_requests: +19461 pull_request: https://github.com/python/cpython/pull/20158 ___ Python tracker ___

[issue40661] The new parser segfaults when parsing invalid input

2020-05-17 Thread Lysandros Nikolaou
Change by Lysandros Nikolaou : -- pull_requests: +19464 pull_request: https://github.com/python/cpython/pull/20165 ___ Python tracker ___

[issue40612] Make traceback module's formatting of SyntaxError more similar to system formatting

2020-05-17 Thread Guido van Rossum
Change by Guido van Rossum : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2020-05-17 Thread Guido van Rossum
Guido van Rossum added the comment: Can you submit a PR and CC me? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread Paul Ganssle
Paul Ganssle added the comment: New changeset e527ec8abe0849e784ce100f53c2736986b670ae by Paul Ganssle in branch 'master': bpo-40536: Add zoneinfo.available_timezones (GH-20158) https://github.com/python/cpython/commit/e527ec8abe0849e784ce100f53c2736986b670ae --

[issue40536] Addition of a "list of available time zones" function to zoneinfo

2020-05-17 Thread Paul Ganssle
Paul Ganssle added the comment: I've merged the existing implementation, but I'm leaving this staged as "release blocker" so that Łukasz can have final say on whether this goes into 3.9. Thanks for the help everyone! -- ___ Python tracker

[issue40651] class:`OrderedDict` Examples: LRU implementation has a bug.

2020-05-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset bb8635cc3bc3dd65996803849ee1a91cfbebae9c by qudongfang in branch 'master': bpo-40651: Improve LRU recipe in the OrderedDict documentation (GH-#20139) https://github.com/python/cpython/commit/bb8635cc3bc3dd65996803849ee1a91cfbebae9c

[issue39801] list.insert is slow, likely due to manual memmove

2020-05-17 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: rhettinger -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >