[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-11-13 Thread miss-islington
miss-islington added the comment: New changeset bc777047833256bc6b10b2c7b46cce9e9e6f956c by Miss Islington (bot) in branch '3.9': [3.9] bpo-42086: Document AST operator nodes acts as a singleton (GH-22896) (GH-22897) https://github.com/python/cpython/commit/bc777047833256bc6b10b2c7b46cce9e9e

[issue42086] AST: Document / re-design? the simple constructor nodes from sums

2020-11-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ _

[issue42342] asyncio.open_connection(local_addr=('localhost', port)) fails with TypeError: AF_INET address must be a pair (host, port)

2020-11-13 Thread Ed Catmur
New submission from Ed Catmur : Context: CentOS 7.8.2003, Python 3.8 from SCL. localhost has IPv4 and IPv6 bindings, IPv6 first: $ python -c "import socket;print(socket.getaddrinfo('localhost',0,type=socket.SOCK_STREAM))" [(, , 6, '', ('::1', 0, 0, 0)), (, , 6, '', ('127.0.0.1', 0))] import

[issue42343] threading.local documentation should be on the net...

2020-11-13 Thread Antti Haapala
New submission from Antti Haapala : The current documentation of `thread.local` is Thread-Local Data Thread-local data is data whose values are thread specific. To manage thread-local data, just create an instance of local (or a subclass) and store attributes on it: mydata = threading

[issue42334] Subclassing int and complex with keyword arguments weird

2020-11-13 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41918] exec fails to take locals into account when running list comprehensions or functions

2020-11-13 Thread undefined blinded
undefined blinded added the comment: This seems to happen only when both arguments to exec are used: ``` Python 3.7.7 (default, Mar 10 2020, 15:43:27) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> exec('text = ["hallo"]

[issue41918] exec fails to take locals into account when running list comprehensions or functions

2020-11-13 Thread Nikolas Havrikov
Nikolas Havrikov added the comment: This issue also occurs in Python 3.8.6 -- nosy: +havrikov ___ Python tracker ___ ___ Python-bug

[issue42246] Implement PEP 626

2020-11-13 Thread Mark Shannon
Change by Mark Shannon : -- pull_requests: +22153 pull_request: https://github.com/python/cpython/pull/23256 ___ Python tracker ___

[issue41100] Build failure on macOS 11 (beta)

2020-11-13 Thread nieder
Change by nieder : -- nosy: +nieder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/m

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: This issue reminds me bpo-40082 where I wrote: "The problem on Windows is that each CTRL+c is executed in a different thread." I fixed the issue with: New changeset b54a99d6432de93de85be2b42a63774f8b4581a0 by Victor Stinner in branch 'master': bpo-40082: tri

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just to be sure, what is the result of pasting and executing the following code on Tk 8.6.8 and 8.6.10? print(ascii("😀")) -- nosy: +serhiy.storchaka versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python t

[issue42246] Implement PEP 626

2020-11-13 Thread Mark Shannon
Mark Shannon added the comment: New changeset fd009e606a48e803e7187983bf9a5682e938fddb by Mark Shannon in branch 'master': bpo-42246: Fix memory leak in compiler (GH-23256) https://github.com/python/cpython/commit/fd009e606a48e803e7187983bf9a5682e938fddb --

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, it is likely the same syntax error. Then what will print print(ascii(input())) when you paste 😀 and press Enter? -- ___ Python tracker _

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22154 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23257 ___ Python tracker ___ _

[issue38823] Improve stdlib module initialization error handling.

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22155 pull_request: https://github.com/python/cpython/pull/23258 ___ Python tracker ___ __

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Jürgen Gmach
New submission from Jürgen Gmach : When tinkering around with `SimpleNamespace` I tried to figure out the reasons for using it over just the `class NS: pass` alternative. One reason is the comparison, which is not a plain `id` comparison, but an attribute comparison. When looking at the docum

[issue38823] Improve stdlib module initialization error handling.

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0cec97eb6a3e31493c29ef9398fcf39a5ec445a6 by Victor Stinner in branch 'master': bpo-38823: Fix compiler warning in _ctypes on Windows (GH-23258) https://github.com/python/cpython/commit/0cec97eb6a3e31493c29ef9398fcf39a5ec445a6 -- _

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset d96a7a83133250377219227b5cfab4dbdddc5d3a by Victor Stinner in branch 'master': bpo-42296: On Windows, fix CTRL+C regression (GH-23257) https://github.com/python/cpython/commit/d96a7a83133250377219227b5cfab4dbdddc5d3a -- __

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +22156 pull_request: https://github.com/python/cpython/pull/23259 ___ Python tracker

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: If the implementation compares the classes, then I think the "roughly equivalent" version should, too. -- nosy: +eric.smith ___ Python tracker __

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread Eryk Sun
Eryk Sun added the comment: > always interrupt and let the thread decide if it has something to do. SIGNAL_PENDING_CALLS() is called on a Python thread via signal.raise_signal() or _thread.interrupt_main() / PyErr_SetInterrupt(). If you'd rather keep the COMPUTE_EVAL_BREAKER() call in that c

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread miss-islington
miss-islington added the comment: New changeset e5729aef6ff67ae7ed05dffc0855477823826191 by Miss Islington (bot) in branch '3.9': bpo-42296: On Windows, fix CTRL+C regression (GH-23257) https://github.com/python/cpython/commit/e5729aef6ff67ae7ed05dffc0855477823826191 -- ___

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22157 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23260 ___ Python tracker ___ __

[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-13 Thread Dominik V.
New submission from Dominik V. : [PEP 586](https://www.python.org/dev/peps/pep-0586/#shortening-unions-of-literals) specifies that Literal[v1, v2, v3] is equivalent to Union[Literal[v1], Literal[v2], Literal[v3]] Since the equality of Unions doesn't take into account the order of a

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: > Unfortunately the patch ultimately committed did not fix the build there. > Clang reports its version as "Apple LLVM version 4.2 (clang-425.0.28) (based > on LLVM 3.2svn)". __clang_major__ is 4 and __clang_minor__ is 2. Oh... I wrote PR 23260 which is base

[issue40989] [C API] Remove _Py_NewReference() and _Py_ForgetReference() from the public C API

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: See also "Removal of _Py_ForgetReference from public header in 3.9 issue" thread on python-dev list: https://mail.python.org/archives/list/python-...@python.org/thread/CQYVR7TZZITURBZKVWIEOBGF343GI52W/#CQYVR7TZZITURBZKVWIEOBGF343GI52W And "Re: [Python-Dev] Re

[issue42346] [subinterpreters] Deny os.fork() in subinterpreters?

2020-11-13 Thread STINNER Victor
New submission from STINNER Victor : _PyInterpreterState_DeleteExceptMain() contains the following check: PyThreadState *tstate = _PyThreadState_Swap(gilstate, NULL); if (tstate != NULL && tstate->interp != runtime->interpreters->main) { return _PyStatus_ERR("not main interprete

[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-13 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: > SIGNAL_PENDING_CALLS() is called on a Python thread via signal.raise_signal() > or _thread.interrupt_main() / PyErr_SetInterrupt(). If you'd rather keep the > COMPUTE_EVAL_BREAKER() call in that case, the console control-event case can > be distinguished v

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: > This code cannot be interrupted with ^C on Windows (e.g. in the REPL) I tested manually: it's now fixed in 3.9 and master branches. Thanks for the bug report Guido. Signal handling is hard. Threads + signals is worse! :-) I modified _PyEval_SignalReceive

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +3.9regression -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset b3b98082c5431e77c64cab2c85525a804436b505 by Victor Stinner in branch 'master': bpo-41617: Add _Py__has_builtin() macro (GH-23260) https://github.com/python/cpython/commit/b3b98082c5431e77c64cab2c85525a804436b505 -- ___

[issue42347] loop.call_exception_handler documentation is lacking

2020-11-13 Thread Ash Holland
New submission from Ash Holland : The call_exception_handler documentation lists seven permissible context keys, but the docstring lists nine, and there are two keys referred to in the default_exception_handler implementation that aren't listed in either. The docstring (but not the documentat

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +22158 pull_request: https://github.com/python/cpython/pull/23262 ___ Python tracker ___ __

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 09490a109faaee9cc393b52742a8575c116c56ba by Dong-hee Na in branch 'master': bpo-42042: Use ids attribute instead of names attribute (GH-22739) https://github.com/python/cpython/commit/09490a109faaee9cc393b52742a8575c116c56ba -- _

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 5.0 -> 6.0 pull_requests: +22159 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23263 ___ Python tracker _

[issue38914] Clarify wording for warning message when checking a package

2020-11-13 Thread Jürgen Gmach
Change by Jürgen Gmach : -- pull_requests: +22160 pull_request: https://github.com/python/cpython/pull/23264 ___ Python tracker ___ _

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Jürgen Gmach
Jürgen Gmach added the comment: Thanks for your feedback. I created a PR on github. -- keywords: +patch message_count: 2.0 -> 3.0 pull_requests: +22161 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23264 ___ Python trac

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +22162 pull_request: https://github.com/python/cpython/pull/23265 ___ Python tracker ___ _

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +lukasz.langa versions: +Python 3.8, Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread miss-islington
miss-islington added the comment: New changeset 5ad468d4a8cfeb8a320659016964c23735c12a07 by Miss Islington (bot) in branch '3.8': bpo-42042: Use ids attribute instead of names attribute (GH-22739) https://github.com/python/cpython/commit/5ad468d4a8cfeb8a320659016964c23735c12a07 --

[issue40968] urllib does not send http/1.1 ALPN extension

2020-11-13 Thread Christian Heimes
Christian Heimes added the comment: New changeset f97406be4c0a02c1501c7ab8bc8ef3850eddb962 by Christian Heimes in branch 'master': bpo-40968: Send http/1.1 ALPN extension (#20959) https://github.com/python/cpython/commit/f97406be4c0a02c1501c7ab8bc8ef3850eddb962 -- _

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: New changeset ec306a2fd91d8b961b2a80c080dd2262bb17d862 by Victor Stinner in branch '3.9': bpo-41617: Add _Py__has_builtin() macro (GH-23260) (GH-23262) https://github.com/python/cpython/commit/ec306a2fd91d8b961b2a80c080dd2262bb17d862 -- ___

[issue42348] Language Reference: Set items

2020-11-13 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- assignee: -> docs@python components: +Documentation nosy: +docs@python, rhettinger ___ Python tracker ___ __

[issue41617] __builtin_bswap16 is used without checking it is supported

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: Ok, I hope that this issue it's really fixed ;-) Thanks again Joshua Root. -- stage: patch review -> resolved status: open -> closed ___ Python tracker _

[issue42348] Language Reference: Set items

2020-11-13 Thread Batuhan Taskaya
New submission from Batuhan Taskaya : The data types section of the language reference (https://docs.python.org/3.10/reference/datamodel.html#the-standard-type-hierarchy) has this description directly under the Set type (which has 2 childs, set and frozenset). > These represent unordered, f

[issue42042] sphinx3 renders diffrently docs.python.org for 3.10

2020-11-13 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 0f4dd87a31130b245ec4c6ded9fd6f247e700c0d by Dong-hee Na in branch '3.9': [3.9] bpo-42042: Use ids attribute instead of names attribute (GH-22739) (GH-23265) https://github.com/python/cpython/commit/0f4dd87a31130b245ec4c6ded9fd6f247e700c0d --

[issue42345] Equality of typing.Literal depends on the order of arguments

2020-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Probably the implementation focused on static typing, not runtime checking. Can you come up with a PR for a fix? -- stage: -> needs patch versions: +Python 3.10, Python 3.8 ___ Python tracker

[issue42348] Language Reference: Set items

2020-11-13 Thread Yash Shete
Yash Shete added the comment: Should it be "These represents hashable objects" -- nosy: +Pixmew ___ Python tracker ___ ___ Python-b

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: With 8.6.8 both "hang", in that the Shell window no longer accepts input. I've checked that ``print(input())`` works when I don't use an emoji. Interestingly enough, pasting ``print(ascii("😀"))`` into an edit window does work, I can continue editing, but th

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Yash Shete
Yash Shete added the comment: Well for me in Python 3.9.0 print("😀") prints 😀 and print(ascii("😀")) prints '\U0001f600' It does not Raises error "utf-8' codec can't encode characters in position 7-12: surrogates not allowed." as you are suggesting -- nosy: +Pixmew

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: With 8.6.10: >>> print(ascii("😀")) raises the SyntaxError mentioned earlier >>> print(ascii(input())) works and prints: '\udced\udca0\udcbd\udced\udcb8\udc84' In an editor window I don't get spurious text, but syntax colouring is a bit off: The text after th

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: @Pixmew: I get this error with Tk 8.6.10 on macOS 11. With Tk 8.6.8 on macOS 10.15 (from the python.org installer) I get the behaviour described in msg380906. 8.6.10 is the version of Tk we'd like to switch to for the "universal2", it is the latest release

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. The unicodeFromTclStringAndSize() basically undoes the special treatment of \0 in Modified UTF-8 [1]. That page says that all known implementation of MUTF-8 treat surrogate pairs the same as CESU-8 [2], which is UTF-8 with characters outside of the BMP

[issue42349] Compiler front-end produces a broken CFG

2020-11-13 Thread Mark Shannon
New submission from Mark Shannon : The front-end of the bytecode compiler produces a broken CFG. A number of "basic-block"s have terminators before their end. This makes the back-end optimizations unsafe as they rely of a well-formed CFG. The fix is simple. Insert a check that the CFG is well-f

[issue42349] Compiler front-end produces a broken CFG

2020-11-13 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +22163 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23267 ___ Python tracker ___ ___

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

2020-11-13 Thread STINNER Victor
New submission from STINNER Victor : The following code logs an error: --- Exception ignored in: Traceback (most recent call last): File "/home/vstinner/python/master/Lib/threading.py", line 1508, in _after_fork thread._reset_internal_locks(True) File "/home/vstinner/python/master/Lib/

[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-13 Thread E. Paine
New submission from E. Paine : When compiling the master branch (i.e. running 'make'), I get a UnicodeDecodeError as follows: Traceback (most recent call last): File "/home/elisha/Documents/Python/cp0/cpython/./setup.py", line 2619, in main() File "/home/elisha/Documents/Python/cp0/cp

[issue42350] Calling os.fork() at Python exit logs: AttributeError: 'NoneType' object has no attribute '_at_fork_reinit'

2020-11-13 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +22164 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23268 ___ Python tracker ___ _

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3 by Jürgen Gmach in branch 'master': bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) https://github.com/python/cpython/commit/bbeb2d266d6fc1ca9778726d0397d9d6f7a946e3 -- __

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +22165 pull_request: https://github.com/python/cpython/pull/23269 ___ Python tracker _

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +22166 pull_request: https://github.com/python/cpython/pull/23270 ___ Python tracker ___ __

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset cb2b2035ca752529755440990c4073d5164e80df by Miss Islington (bot) in branch '3.8': bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23269) https://github.com/python/cpython/commit/cb2b2035ca752529755440990c4073d5164e80d

[issue42344] SimpleNamespace: update documentation regarding comparison

2020-11-13 Thread Eric V. Smith
Eric V. Smith added the comment: New changeset 4defeb007195d2d17ea404b0b6291d1d233010f4 by Miss Islington (bot) in branch '3.9': bpo-42344: Improve pseudo implementation for SimpleNamespace (GH-23264) (GH-23270) https://github.com/python/cpython/commit/4defeb007195d2d17ea404b0b6291d1d233010f

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Well, try copy 😀 (or other text with color emoji) to clipboard and run the following code: import tkinter root = tkinter.Tk() print(ascii(root.clipboard_get())) -- ___ Python tracker

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: When I assign root.clipboard_get() to "v" I get: >>> print(ascii(v)) '\udced\udca0\udcbd\udced\udcb8\udc84' >>> print(v) ?? This is with Tk 8.6.10. -- ___ Python tracker

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You can ignore msg380917. It was written before I read msg380908. Now I have the needed information. Thank you. -- ___ Python tracker ___

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And yet one question. What do you see if you print '\udcf0\udc9f\udc98\udc80' in IDLE? -- ___ Python tracker ___ _

[issue42352] A string representation of slice objects with colon syntax

2020-11-13 Thread Ross Barnowski
New submission from Ross Barnowski : It would be nice if there were a way to get a string representation of a slice object in extended indexing syntax, e.g. ``` >>> myslice = slice(None, None, 2) >>> print(myslice) '::2' ``` One motivating use-case is in descriptive error messages, e.g. ```

[issue41001] Provide wrapper for eventfd

2020-11-13 Thread Christian Heimes
Change by Christian Heimes : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue41001] Provide wrapper for eventfd

2020-11-13 Thread Christian Heimes
Christian Heimes added the comment: New changeset cd9fed6afba6f3ad2e7ef723501c739551a95fa8 by Christian Heimes in branch 'master': bpo-41001: Add os.eventfd() (#20930) https://github.com/python/cpython/commit/cd9fed6afba6f3ad2e7ef723501c739551a95fa8 -- _

[issue42318] [tkinter] surrogate pairs in Tcl/Tk string when pasting an emoji in a text widget

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: > And yet one question. What do you see if you print '\udcf0\udc9f\udc98\udc80' > in IDLE? This prints a smiley emoji, likewise for printing chr(128516) -- ___ Python tracker

[issue40485] Provide an abstraction for a select-able Event

2020-11-13 Thread Christian Heimes
Christian Heimes added the comment: os.eventfd() has landed in Python 3.10. -- nosy: +christian.heimes versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ __

[issue41611] IDLE: problems with completions on Mac

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: It looks like the lack of completions in msg375769 is a problem with Tk 8.6.8 as used by the python.org installers. I have a build of master with Tk 8.6.10 on my DTK system and with that Edit->Show completions works in a shell window. However: Ctrl+s does

[issue37737] mmap module track anonymous page on macOS

2020-11-13 Thread Ronald Oussoren
New submission from Ronald Oussoren : I've closed the PR because I don't think this is a useful feature. -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker _

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread Eryk Sun
Eryk Sun added the comment: > That sounds like a micro-optimization which is not worth it. In the back of my mind I was also thinking to generalize the behavior at runtime whenever a signal is tripped by a non-Python thread (e.g. a thread created by an extension module or ctypes), instead of

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread Eryk Sun
Change by Eryk Sun : -- priority: release blocker -> stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue42353] Proposal: re.prefixmatch method (alias for re.match)

2020-11-13 Thread Gregory P. Smith
New submission from Gregory P. Smith : A well known anti-pattern in Python is use of re.match when you meant to use re.search. re.fullmatch was added in 3.4 via https://bugs.python.org/issue16203 for similar reasons. re.prefixmatch would be similar: we want the re.match behavior, but want th

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-13 Thread Daniel Hrisca
Daniel Hrisca added the comment: I'm actually surprised that this problem gets so little interest. It's probably so obscure that most people don't even realize it. Why isn't it implemented using winapi calls for the windows platform? I took inspiration from this SO thread https://stackoverf

[issue41552] uuid.uuid1() on certain Macs does not generate unique IDs

2020-11-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: the most recent UUID implementation on opensource.apple.com: https://opensource.apple.com/source/Libc/Libc-1353.100.2/uuid/uuidsrc/gen_uuid.c.auto.html The implementation of get_node_id() doesn't ignore the iBridge interface, which means uuid_generate_time(

[issue42348] Language Reference: Set items

2020-11-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: I recommend leaving the text as is, and possibly creating a new FAQ entry discussing the relationship between immutability and hashability (something that I consider to be an intermediate or advanced topic). Other thought: * The set discussion should rem

[issue42354] Tuple unpacking with * causes SyntaxError in with ... as ...

2020-11-13 Thread Trey Hunner
New submission from Trey Hunner : The below code worked on Python 3.5, 3.6, 3.7, and 3.8, but it now crashes on Python 3.9. from contextlib import contextmanager @contextmanager def open_files(names): yield names # This would actually return file objects with open_files(['file1.txt',

[issue42354] Tuple unpacking with * causes SyntaxError in with ... as ...

2020-11-13 Thread Raymond Hettinger
Change by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-13 Thread STINNER Victor
STINNER Victor added the comment: Since I added time.perf_counter_ns() to Python 3.7, it would be acceptable to reduce the "t0" variable and suggest to use time.perf_counter_ns() instead of time.perf_counter() for best precision. -- ___ Python tra

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +22168 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23271 ___ Python tracker ___

[issue42339] official embedded Python fails to import certain modules

2020-11-13 Thread Steve Dower
Change by Steve Dower : -- keywords: +patch pull_requests: +22167 stage: -> patch review pull_request: https://github.com/python/cpython/pull/23271 ___ Python tracker ___

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-13 Thread Daniel Hrisca
Daniel Hrisca added the comment: That would be perfect and would help a lot with timings/synchronization across multiple processes. Which Pyhton version will get this fix? -- ___ Python tracker ___

[issue42339] official embedded Python fails to import certain modules

2020-11-13 Thread Steve Dower
Change by Steve Dower : -- pull_requests: -22167 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread Steve Dower
Steve Dower added the comment: New changeset 9b6934230c35e24d8582ea8c58456fa8eab72ae2 by Steve Dower in branch 'master': bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271) https://github.com/python/cpython/commit/9b6934230c35e24d8582ea8c58456fa8eab72ae2 ---

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread miss-islington
Change by miss-islington : -- pull_requests: +22170 pull_request: https://github.com/python/cpython/pull/23274 ___ Python tracker ___ __

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 9.0 -> 10.0 pull_requests: +22169 pull_request: https://github.com/python/cpython/pull/23273 ___ Python tracker

[issue42339] official embedded Python fails to import certain modules

2020-11-13 Thread Steve Dower
Steve Dower added the comment: Sorry about the PR mess - copied the wrong issue number down, though I am looking at this one right now. My suspicion is something in the newer vcruntime140_1.dll is to blame - does it work with Python 3.9? You might need to update to KB3118401 [1], though I w

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread miss-islington
miss-islington added the comment: New changeset 8a4557240b98c322d611bfbba3ea51eac3fb841a by Miss Islington (bot) in branch '3.8': bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271) https://github.com/python/cpython/commit/8a4557240b98c322d611bfbba3ea51eac3fb841a

[issue40754] Test installers before releasing (ModuleNotFoundErrors)

2020-11-13 Thread miss-islington
miss-islington added the comment: New changeset faadc52e755cdb316a53f3db5aa11cb97f1c4b87 by Miss Islington (bot) in branch '3.9': bpo-40754: Adds _testinternalcapi to Windows installer for test suite (GH-23271) https://github.com/python/cpython/commit/faadc52e755cdb316a53f3db5aa11cb97f1c4b87

[issue32803] smtplib: LMTP broken in the case of multiple RCPT

2020-11-13 Thread Jacob Middag
Jacob Middag added the comment: It would be nice if someone could take a look. -- versions: +Python 3.10, Python 3.9 ___ Python tracker ___ ___

[issue42131] [zipimport] Update zipimport to use specs

2020-11-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset d2e94bb0848e04a90efa51be401f0ce8a9e252f2 by Brett Cannon in branch 'master': bpo-42131: Add PEP 451-related methods to zipimport (GH-23187) https://github.com/python/cpython/commit/d2e94bb0848e04a90efa51be401f0ce8a9e252f2 -- ___

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2020-11-13 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue37205] time.perf_counter() is not system-wide on Windows, in disagreement with documentation

2020-11-13 Thread Eryk Sun
Eryk Sun added the comment: > suggest to use time.perf_counter_ns() instead of time.perf_counter() > for best precision. QPC typically has a frequency of 1e7, which requires 24 bits for the fraction of a second. So a system can be up for years before the 53-bit precision of a float is an is

  1   2   >