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

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

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

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

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

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

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

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

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

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

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

[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

[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

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

[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

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

[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

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

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

[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

[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

[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

[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

[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

[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

[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

[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

[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

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

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

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

[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

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

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

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

[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

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

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

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

[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

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

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

[issue42293] Installation of pyinstaller in Windows fails with utf8 error

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: A 'crash' is when the program hangs or stops unexpectedly *without* an Exception and message. Lib/site-packages/sitecustomize.py is an optional added module. https://docs.python.org/3/library/site.html#index-5 Apparently, attempted installation of

[issue17454] ld_so_aix not used when linking c++ (scipy)

2020-11-13 Thread Kevin
Kevin added the comment: This was fixed by https://github.com/python/cpython/pull/10437 -- nosy: +kadler ___ Python tracker ___

[issue42309] BUILD: AIX-64-bit segmentation fault

2020-11-13 Thread Kevin
Kevin added the comment: I have not encountered this problem when building Python 3.10 on AIX and PASE with GCC 6.3. -- nosy: +kadler ___ 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: Under the hood perf_counter_ns already uses the two winapi calls (see https://github.com/python/cpython/blob/41761933c1c30bb6003b65eef1ba23a83db4eae4/Python/pytime.c#L970) just that it also sets up a static variable as a time origin which makes it

[issue42328] ttk style.map function incorrectly handles the default state for element options.

2020-11-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue42348] Language Reference: Set items

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond's last point is that set objects should be immutably hashable. I would say 'must be' in the sense that mutably hashable objects break sets in various ways, starting with uniqueness. If we were to make a change, I think the replacement should be

[issue24886] open fails randomly on AIX

2020-11-13 Thread Kevin
Kevin added the comment: Given that the AIX bug has long been fixed and Python 2.7 is EOL we can probably close this bug. -- nosy: +kadler ___ Python tracker ___

[issue42302] [Turtle] Add clockwise and anticlockwise method as alias to right and left

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Clockwise' and 'counterclockwise'* refer to an object either continuously spinning on an axis or possibly moving in a circle. An object in linear motion turns right or left. This is especially true for an organism or object with left or right sides#, and

[issue24886] open fails randomly on AIX

2020-11-13 Thread Inada Naoki
Change by Inada Naoki : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue42336] Make PCbuild/build.bat build x64 by default

2020-11-13 Thread Steve Dower
Steve Dower added the comment: I hope you'll find that PR suitable ambitious :) It would really be nice to have proper Powershell scripts for these, but that would be a more significant rewrite (and probably require changing argument names...). I'm not *that* ambitious. --

[issue42290] Unicode inconsistent display after concencated

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Xia, when saying 'unexpected', one usually needs to also say what was expected. When discussing mixed direction chars, we need to be especially careful in describing what we see with different terminals, different browsers, and different OSes. Steven: On

[issue42290] Display of Unicode strings with bidi characters

2020-11-13 Thread Terry J. Reedy
Change by Terry J. Reedy : -- title: Unicode inconsistent display after concencated -> Display of Unicode strings with bidi characters ___ Python tracker ___

[issue42351] Setup.py: UnicodeDecodeError in grep_headers_for

2020-11-13 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I can also confirm the issue on our Arch Linux server [1]. The problematic file is also /usr/include/OMX_Other.h. Looks like it is a regression from https://github.com/python/cpython/pull/22855 (https://bugs.python.org/issue41100). Ronald Oussoren, mind to

[issue42325] UnicodeDecodeError executing ./setup.py during build

2020-11-13 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: I got a similar issue on Arch Linux - see issue42351. -- nosy: +yan12125 ___ Python tracker ___

[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

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

[issue24501] configure does not find (n)curses in /usr/local/libs

2020-11-13 Thread Kevin
Kevin added the comment: There error indicates it can't find ncurses.h configure:14223: xlc_r -c -qmaxmem=-1 -DSYSV -D_AIX -D_AIX71 -D_ALL_SOURCE -DFUNCPROTO=15 -O -I/usr/local/include -I/usr/include/ncursesw conftest.c >&5 "conftest.c", line 311.10: 1506-296 (S) #include file not found.

[issue27578] inspect.findsource raises exception with empty __init__.py

2020-11-13 Thread kernc
kernc added the comment: The proposed patch doesn't break any interfaces. `inspect.getsource/.getsourcelines()` still raise `OSError` if the source is unretrievable. `linecache.getlines()` is undocumented, but the change retains perfect compatibility with *docstrings* of both

[issue42338] Enable Debug Build For Python Native Modules in Windows, with Visual Studio Toolchain

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: This tracker is for developing patches to the cpython repository. Questions are better asked on the python-list and occasionally the pydev mailing lists. I am leaving this open in case there is a doc change request lurking somewhere. --

[issue42336] Make PCbuild/build.bat build x64 by default

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

[issue42296] Infinite loop uninterruptable on Windows in 3.10

2020-11-13 Thread Guido van Rossum
Guido van Rossum added the comment: Thanks for the quick fix. It works! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue24046] Incomplete build on AIX

2020-11-13 Thread Kevin
Kevin added the comment: Looks like RAND_egd was made optional in https://bugs.python.org/issue21356 Can this issue be closed? -- nosy: +kadler ___ Python tracker ___

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

2020-11-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yash, this is specifically a macOS issue. Printing astral chars in tkinter/IDLE on Windows and Linux has 'worked' (details not important) for over a year. -- nosy: +terry.reedy ___ Python tracker

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

[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: > QPC typically has a frequency of 1e7, Never mind. Apparently with some combinations of chipset, processor, and Windows version, the QPC frequency runs far beyond the 1-10 MHz range. I thought Windows divided by 1024 instead of letting it run in the GHz range,

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

[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

[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

[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

[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 Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

[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

[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

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

[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

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

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

[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

[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

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

[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

  1   2   >