[issue43347] IDLE crashes in macOS Apple chip, maybe completions

2021-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: This time I got a screen shot showing the gray completion box that appeared just as IDLE stopped responding and froze: https://www.dropbox.com/s/eu3wd13vytz6tt8/Screen%20Shot%202021-03-22%20at%209.37.56%20PM.png?dl=0 Am now running Python 3.10.0a6 on Big

[issue43601] Tools/c-analyzer/check-c-globals.py run throw exception err

2021-03-22 Thread junyixie
New submission from junyixie : how to use Tools/c-analyzer/check-c-globals.py? in readme, python3 Tools/c-analyzer/check-c-globals.py /Users/xiejunyi/cpython/Tools/c-analyzer/c_common/tables.py:236: FutureWarning: Possible nested set at position 12 _COLSPEC_RE =

[issue1634034] Show "expected" token on syntax error

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this issue should be closed as 'out of date' as it was pretty open-ended and it is unclear what request remains. For the specific case "for a in (8,9)", the suggested "expected ':'" has been added on another issue. I expect that there are

[issue20608] 'SyntaxError: invalid token' is unfriendly

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Fixed elsewhere. >>> 04208 File "", line 1 04208 ^ SyntaxError: leading zeros in decimal integer literals are not permitted; use an 0o prefix for octal integers >>> 0o38 File "", line 1 0o38 ^ SyntaxError: invalid digit '8' in

[issue25130] Make tests more PyPy compatible

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: With 2.7 EOL, is this still relevant? -- nosy: +terry.reedy ___ Python tracker ___ ___

[issue41064] Specialise syntax error of **dict in f-string field

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Cressey noted both a compile and IDLE Shell issue. They must be handled separately by different people in separate bpo issues. The first is about the helpful versus less helpful SyntaxError messages in the following (master compiled today). >>> f'{*x}'

[issue43600] IDLE: fix highlight locationfor f-string field errors

2021-03-22 Thread Terry J. Reedy
New submission from Terry J. Reedy : Spinoff from #41064. In current python, the f'{*x}' traceback ends with (*x) ^ SyntaxError: f-string: can't use starred expression here. For f'{**x}', the message is "f-string: invalid syntax" and the ^ is also under the 2nd character in the

[issue37405] socket.getsockname() returns string instead of tuple

2021-03-22 Thread FRANK BENNETT
FRANK BENNETT added the comment: $ make test TESTOPTS="-v test_socket" ERROR: testSendFrame (__main__.CANTest) -- Traceback (most recent call last): File "/s/opt/cpython/debug/test_socket.py", line 2052, in testSendFrame

[issue43599] Setting long domain of locale.dgettext() crashes Python interpreter

2021-03-22 Thread Xinmeng Xia
New submission from Xinmeng Xia : Setting the first argument of locale.dgettext() long string, Python interpreter crashes. == Python 3.10.0a6 (default, Mar 19 2021, 11:45:56) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or

[issue35118] Add peek() or first() method in queue

2021-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: >> FWIW, the standard library queue module doesn't have >> a straight-forward way to implement a peek() method. > I currently use `q.deque[0]` The Queue class is only allowed to call _init, _qsize, _put, and _get. It is not allowed to directly touch

[issue14364] Argparse incorrectly handles '--' as argument to option

2021-03-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Unassigning because I haven't been able to make time for this one. -- assignee: rhettinger -> ___ Python tracker ___

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43598] test_subprocess logs multiple ResourceWarning warnings

2021-03-22 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: len(sys.modules) of msg376374 test_sys_modules: * Python 3.6: 184 * Python 3.7: 183 * Python 3.8: 221 * Python 3.9: 233 * master: 131 The master branch imports 102 less modules than Python 3.9 (233 => 131)! Almost the half. asyncio, logging,

[issue43598] test_subprocess logs multiple ResourceWarning warnings

2021-03-22 Thread STINNER Victor
New submission from STINNER Victor : $ ./python -m test test_subprocess -v (...) test_send_signal_race2 (test.test_subprocess.POSIXProcessTestCase) ... /home/vstinner/python/master/Lib/subprocess.py:1062: ResourceWarning: subprocess 137193 is still running _warn("subprocess %s is still

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 9feae41c4f04ca27fd2c865807a5caeb50bf4fc4 by Victor Stinner in branch 'master': bpo-41718: libregrtest avoids importing datetime (GH-24985) https://github.com/python/cpython/commit/9feae41c4f04ca27fd2c865807a5caeb50bf4fc4 --

[issue10572] Move test sub-packages to Lib/test

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I added idlelib.idletest in May 2013 with the concurrence of Nick Coughlin, who also suggested 'idle_test' rather than just 'test'. It currently has 72 files (66 test_xyz files for idlelib modules). Foord's opening justification for moving package tests

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23747 pull_request: https://github.com/python/cpython/pull/24987 ___ Python tracker ___

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- pull_requests: +23746 pull_request: https://github.com/python/cpython/pull/24986 ___ Python tracker ___

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23745 pull_request: https://github.com/python/cpython/pull/24985 ___ Python tracker ___

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 30793e81bd90f3346e962435d49073bc588f067c by Victor Stinner in branch 'master': bpo-41718: Disable support.testresult XML output by default (GH-24982) https://github.com/python/cpython/commit/30793e81bd90f3346e962435d49073bc588f067c --

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0473fb222956063814b6beb5fd401f9eeaa8a56a by Victor Stinner in branch 'master': bpo-41718: libregrtest runtest avoids import_helper (GH-24983) https://github.com/python/cpython/commit/0473fb222956063814b6beb5fd401f9eeaa8a56a --

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- keywords: +patch pull_requests: +23744 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24984 ___ Python tracker

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Ammar Askar
Ammar Askar added the comment: > We should definitely document the column offset being 1-based Yes please, I remember working on that issue to make it consistently 1-based a while ago and I remember that the tooling was relying on 1-based indexes for column offsets. -- nosy:

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Guido van Rossum
Guido van Rossum added the comment: We should definitely document the column offset being 1-based, if it hasn't been already. But be careful, there are some APIs that are 0-based and others that are 1-based, for column offsets. I was quite surprised at some point to find out that we were

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23743 pull_request: https://github.com/python/cpython/pull/24983 ___ Python tracker ___

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23742 pull_request: https://github.com/python/cpython/pull/24982 ___ Python tracker ___

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
New submission from Tarun Chinmai Sekar : IMO this could be enhanced by adding a sslcontext parameter to read method a sample change would it could look like ``` def read(self, sslcontext=None): """Reads the robots.txt URL and feeds it to the parser.""" try: if sslcontext:

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Before the patch, IDLE highlighted the \n endline with a red background, which tk displays as red background from the blank space after the 4 to the right edge of the text widget, including in 3.8.8. The 3.8 result, different from REPL, is due the the

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 10417dd15f135c179cf4234d1abe506915d802ff by Victor Stinner in branch 'master': bpo-41718: Reduce libregrtest runtest imports (GH-24980) https://github.com/python/cpython/commit/10417dd15f135c179cf4234d1abe506915d802ff --

[issue43597] robotparser should support specifying SSL context

2021-03-22 Thread Tarun Chinmai Sekar
Change by Tarun Chinmai Sekar : -- nosy: Tchinmai7 priority: normal severity: normal status: open title: robotparser should support specifying SSL context type: enhancement versions: Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: > external_attr == 0 may cause issues with permissions. That may be true in some scenarios, but not being able to set it to 0 means you can't create identical files to those produced by other tools -- like those used to generate APKs -- which do in fact

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23741 pull_request: https://github.com/python/cpython/pull/24981 ___ Python tracker ___

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- components: -IO, Library (Lib) versions: -Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: I've closed the PR for now. Using a carefully crafted ZipInfo object doesn't work because ZipFile modifies its .external_attr when set to 0. Using something like this quickly hacked together ZipInfo subclass does work: class

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +23740 pull_request: https://github.com/python/cpython/pull/24980 ___ Python tracker ___

[issue41718] test.regrtest has way too many imports

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: New changeset 532e063fc2bf9e6e80550670ddc5dc5d2b1d2450 by Victor Stinner in branch 'master': bpo-41718: regrtest saved_test_environment avoids imports (GH-24934) https://github.com/python/cpython/commit/532e063fc2bf9e6e80550670ddc5dc5d2b1d2450 --

[issue40813] Line number of SyntaxError

2021-03-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whatever the situation was last May, current 3.10 now results in a correct and improved traceback ending in File "F:\Python\a\tem4.py", line 2 print("hello world" ^ SyntaxError: '(' was never closed Same if \n or additional text is added to

[issue39091] _PyErr_CreateException() must check that the result is an exception (CPython Segfault in 5 lines of code)

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2021-03-22 Thread Eryk Sun
Eryk Sun added the comment: In some cases, the problem can be worked around by setting the __PYVENV_LAUNCHER__ environment variable and executing the base executable. For example: import os import sys import subprocess def get_python_exe_env(): if sys.executable ==

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43594] A metaclass that inherits both `ABC` and `ABCMeta` breaks on `__subclasscheck__`

2021-03-22 Thread Kamil Turek
Change by Kamil Turek : -- nosy: +kamilturek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20692] Tutorial and FAQ: how to call a method on an int

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Mark Shannon
Mark Shannon added the comment: Numbers please. What is "non-negligible cost of allocation/initialization" mean as a fraction of runtime? What sort of speed up are you seeing on whole programs? -- ___ Python tracker

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Christian Heimes
Christian Heimes added the comment: zinfo = zipfile.ZipInfo() zinfo.date_time = (1980, 0, 0, 0, 0, 0) zinfo.create_system = 0 external_attr == 0 may cause issues with permissions. I do something like this in my reproducible tarfile code: if zinfo.isdir(): # 0755 + MS-DOS directory flag

[issue43420] Optimize rational arithmetics

2021-03-22 Thread Tim Peters
Tim Peters added the comment: This report is closed. Please open a different report. We've already demonstrated that, as predicted, nothing can be said here without it being taken as invitation to open-ended discussion. So it goes, but it doesn't belong on _this_ report anymore. --

[issue43492] Upgrade to SQLite 3.35.3 in macOS and Windows

2021-03-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: FYI: https://www.sqlite.org/cgi/src/info/8de4cb984a4b019f: "We anticipate 3.35.3 in a few days. Hopefully there will never be a need for 3.35.4." -- title: Upgrade to SQLite 3.35.2 in macOS and Windows -> Upgrade to SQLite 3.35.3 in macOS

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Guido van Rossum
Guido van Rossum added the comment: This looks like a sensible idea to me. The safeguards to ensure that customized 'super' still works seem reasonable to me. I have to admit that I sometimes refrain from using super() where I should because of the expense, so this would be welcome. I do

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Christian Heimes
Christian Heimes added the comment: Hi, thanks for looking into reproducible builds. I have a few suggestions: - since it's a new feature, it cannot go into older releases. - zeroed is not a self-explanatory term. I suggest to find a term that does describe the result, not the internal

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- keywords: +easy -patch stage: patch review -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23731 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread Eric V. Smith
Change by Eric V. Smith : -- pull_requests: -23730 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23739 pull_request: https://github.com/python/cpython/pull/24972 ___ Python tracker ___ ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23738 pull_request: https://github.com/python/cpython/pull/24971 ___ Python tracker ___ ___

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Felix C. Stegerman added the comment: I've created a draft PR; RFC :) Also: * setting the date to (1980,0,0,0,0,0) already works; * the main issue seems to be that external_attr cannot be 0 atm. -- ___ Python tracker

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-22 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- keywords: +patch pull_requests: +23737 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24979 ___ Python tracker

[issue2920] Patch to print symbolic value of errno in OSError.__str__()

2021-03-22 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Vladimir Matveev
Vladimir Matveev added the comment: >Currently, super() is decoupled from the core language. It is just a builtin >that provides customized attribute lookup. This PR makes super() more tightly >integrated with the core language, treating it as if it were a keyword and >part of the

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Thanks, Pablo! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 994a519915bff4901abaa7476e2b91682dea619a by Miss Islington (bot) in branch '3.9': bpo-43555: Report the column offset for invalid line continuation character (GH-24939) (#24975)

[issue43592] test_importlib: test_multiprocessing_pool_circular_import() fails with "Too many open files" error on os.pipe()

2021-03-22 Thread Ned Deily
Ned Deily added the comment: FWIW, I don't recall ever seeing a "too many open files" failure for test_importlib on any of my macOS systems. -- nosy: +ned.deily ___ Python tracker

[issue42444] pathlib.PurePath properties annotated with .. data directive

2021-03-22 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 6.0 -> 7.0 pull_requests: +23736 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24977 ___ Python tracker

[issue15751] [subinterpreters] Make the PyGILState API compatible with subinterpreters

2021-03-22 Thread Gabriel Amine Eddine
Change by Gabriel Amine Eddine : -- nosy: +gabrielhae ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17792] Unhelpful UnboundLocalError due to del'ing of exception target

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +23735 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24976 ___ Python tracker ___

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +23734 pull_request: https://github.com/python/cpython/pull/24975 ___ Python tracker

[issue43555] Location of SyntaxError with new parser missing (after continuation character)

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 96eeff516204b7cc751103fa33dcc665e387846e by Pablo Galindo in branch 'master': bpo-43555: Report the column offset for invalid line continuation character (GH-24939)

[issue43010] @functools.wraps and abc.abstractmethod interoperability

2021-03-22 Thread Dennis Sweeney
Dennis Sweeney added the comment: > other attributes will not be copied The signature of wraps() is wraps(wrapped, assigned=('__module__', '__name__', '__qualname__', '__doc__', '__annotations__'), updated=('__dict__',)) Passing the updated=() will prevent the __dict__ from being

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-22 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43181] Python macros don’t shield arguments

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Me: > I don't think that PR 24533 should be backported to Python 3.8 and Python > 3.9. I prefer to avoid any risk of regression, and so only change Python 3.10. Sometimes. I'm wise :-D This change broken 2 extension modules which rely on the fact that the

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12762] OSError msg should display symbolic error codes

2021-03-22 Thread Zackery Spytz
Zackery Spytz added the comment: This is a duplicate of bpo-2920 (which has a PR). -- nosy: +ZackerySpytz resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: -> Patch to print symbolic value of errno in OSError.__str__()

[issue26403] Catch FileNotFoundError in socketserver.DatagramRequestHandler

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10 -Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 123ff266cda9ad279106f20dca06ba114f6a9b8a by Pablo Galindo in branch 'master': bpo-43591: Fix error location in interactive mode for errors at the end of the line (GH-24973)

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread Nathaniel Manista
Change by Nathaniel Manista : -- nosy: +Nathaniel Manista ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43596] change assertRaises message when wrong exception is raised

2021-03-22 Thread R. Samuel Klatchko
New submission from R. Samuel Klatchko : Right now, this code: class FooError(Exception): pass class BarError(Exception): pass def test_me(self): with self.assertRaises(FooError): raise BarError("something") will have the error "BarError: something" with no

[issue12762] OSError msg should display symbolic error codes

2021-03-22 Thread Irit Katriel
Change by Irit Katriel : -- title: EnvironmentError_str contributes to unportable code -> OSError msg should display symbolic error codes versions: +Python 3.10 -Python 3.4 ___ Python tracker

[issue24147] Dialect class defaults are not documented.

2021-03-22 Thread Irit Katriel
Irit Katriel added the comment: Brandon's patch has not been applied, it needs to be converted into a git PR. -- keywords: +easy -patch nosy: +iritkatriel versions: +Python 3.10 -Python 3.4, Python 3.5 ___ Python tracker

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-22 Thread Brett Cannon
Brett Cannon added the comment: Meant to say, "existence of the _method_ isn't problematic". -- ___ Python tracker ___ ___

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon stage: patch review -> ___ Python tracker ___ ___

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23733 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24974 ___ Python tracker ___

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the report and the patch Erlend!. I have transformed it into a PR with attribution in PR 24973 -- ___ Python tracker ___

[issue43591] Parser aborts on incomplete/incorrect unicode literals in interactive mode

2021-03-22 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23732 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24973 ___ Python tracker ___

[issue43590] Collapse sidebar issue on https://docs.python.org/3/

2021-03-22 Thread Ned Deily
Change by Ned Deily : -- assignee: -> docs@python components: +Documentation nosy: +docs@python type: behavior -> ___ Python tracker ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: Until the PEP is accepted, you can start working on a branch if you want. You can post the link to your branch. -- ___ Python tracker ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread Dong-hee Na
Dong-hee Na added the comment: @JunyiXie Please wait your patch until the PEP is approved. -- nosy: +corona10 ___ Python tracker ___

[issue43588] [Subinterpreters]: use static variable under building Python with --with-experimental-isolated-subinterpreters cause crash.

2021-03-22 Thread junyixie
junyixie added the comment: I will fix the static variable problem of frequently used code -- ___ Python tracker ___ ___

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread junyixie
Change by junyixie : -- pull_requests: +23731 pull_request: https://github.com/python/cpython/pull/24972 ___ Python tracker ___ ___

[issue38905] venv python reports wrong sys.executable in a subprocess on Windows

2021-03-22 Thread Assaf
Assaf added the comment: The fact that now there is a redirector process seems to me like a regression issue. I have an application which Popen several processes and uses the Popen object in order to get the subprocesses pids and act upon this pids (i.e. looks for log files with associated

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-22 Thread Erez Zinman
Erez Zinman added the comment: This is actually a lot worse and unrelated to the aforementioned issue. The code ``` from typing import Union from abc import ABC Union[str, ABC] ``` raises the exception >>> TypeError: descriptor '__subclasses__' of 'type' object needs an argument

[issue42914] pprint numbers with underscore

2021-03-22 Thread Stéphane Blondon
Stéphane Blondon added the comment: I changed the default to be backward compatible (so underscore_numbers=False). I think it would be better with underscore_numbers enabled by default but I understand the need for stability. Perhaps such break could be done in the future (in version 3.12 or

[issue43558] The dataclasses documentation should mention how to call super().__init__

2021-03-22 Thread junyixie
Change by junyixie : -- keywords: +patch nosy: +JunyiXie nosy_count: 1.0 -> 2.0 pull_requests: +23730 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/24971 ___ Python tracker

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: A workaround is to disable pymalloc at runtime using PYTHONMALLOC=malloc environment variable. But it makes Python 10-20% slower. -- ___ Python tracker

[issue43595] Can not add a metclass that inherits both ABCMeta & ABC to a Union

2021-03-22 Thread Erez Zinman
New submission from Erez Zinman : Related to Issue #43594. When running the following code ``` from abc import ABCMeta, ABC from typing import Union class MetaclassMixin(ABC): pass class Meta(MetaclassMixin, ABCMeta): pass print(Union[str, Meta]) ``` An exception is raised >>>

[issue43593] pymalloc is not aware of Memory Tagging Extension (MTE) and crashes

2021-03-22 Thread STINNER Victor
STINNER Victor added the comment: > When Memory Tagging Extension (MTE) [0] is enabled on aarch64, python malloc > make programs to crash. Would you mind to elaborate what does crash exactly? Can you please test if https://github.com/python/cpython/pull/14474 fix your issue? --

[issue43538] [Windows] support args and cwd in os.startfile()

2021-03-22 Thread Jeremy Kloth
Change by Jeremy Kloth : -- nosy: +jkloth ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

  1   2   >