[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread Steven D'Aprano
Steven D'Aprano added the comment: Your module token.py "shadowed" the stdlib token.py, and prevented it from being seen until you changed the name. -- nosy: +steven.daprano resolution: -> not a bug stage: -> resolved status: open -> closed type: crash -> behavior

[issue46318] asyncio and ssl: ResourceWarning: unclosed transport

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46265] Error when cross compiling for hardfloat MIPS

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- components: +asyncio -Library (Lib) nosy: +kumaraditya303, yselivanov ___ Python tracker ___ ___

[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-01-09 Thread Kumar Aditya
Kumar Aditya added the comment: Targeting Python 3.11 as it a performance improvement. -- nosy: +kumaraditya303, vstinner versions: -Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker

[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread Kumar Aditya
Kumar Aditya added the comment: Python has a token module so you should use any other name for your module. -- nosy: +kumaraditya303 ___ Python tracker ___

[issue46325] Documentation for SubprocessTransport.get_pipe_transport return values readable/writable

2022-01-09 Thread xx11mz
New submission from xx11mz : SubprocessTransport.get_pipe_transport returns a "transport for the communication pipe corresponding to the integer file descriptor fd". Below that, it currently says fd 0 is readable and fd 1 and 2 are writable. But since it is referring to the subprocess' file

[issue46324] 'import traceback' Causes a Crash

2022-01-09 Thread bichanna
New submission from bichanna : I was developing a programming language using Python, and I had a 'token.py' file. After changing the name of the file, the issue was solved. I am sure that my 'token.py' caused the error. Here's the traceback I got: Traceback (most recent call last): File

[issue46275] caret location for syntax error pointing with f-strings

2022-01-09 Thread William Navaraj
William Navaraj added the comment: The variation in the caret position was also due to the trailing spaces. This is now sorted in this solution with a factored out function to find out the correct offset.

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-09 Thread Ethan Furman
Change by Ethan Furman : -- Removed message: https://bugs.python.org/msg410184 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue46323] Use _PyObject_Vectorcall in Modules/_ctypes/callbacks.c

2022-01-09 Thread hydroflask
New submission from hydroflask : _CallPythonObject() in Modules/_ctypes/callbacks.c still uses the old API (PyObject_CallObject()) to invoke methods. It should use _PyObject_Vectorcall(). Creating an issue for this since this method is a little more performance sensitive than normal Python

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-09 Thread Ethan Furman
Ethan Furman added the comment: Reverting. Nikita, you can use the command: ./python -m test.regrtest -R : test_enum to show the leaks and hopefully track them down. The half-hour I spent yielded no clues. -- ___ Python tracker

[issue46319] datetime.utcnow() should return a timezone aware datetime

2022-01-09 Thread Paul Ganssle
Paul Ganssle added the comment: Yes, this is the documented behavior, including a warning against using UTC now in the documentation! There is some possibility of removing utcnow entirely as an "attractive nuisance", but I suspect that this will lead to much consternation and

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 2e6798f35260ff90129861ef1f289ac40c0396c2 by Miss Islington (bot) in branch '3.10': bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504) (GH-30509)

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +28713 pull_request: https://github.com/python/cpython/pull/30509 ___ Python tracker

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset d24cd49acb25c36db31893b84d0ca4fe2f373b94 by Raymond Hettinger in branch 'main': bpo-46270: Describe the `in` and `not in` operators as membership tests. (GH-30504)

[issue23882] unittest discovery doesn't detect namespace packages when given no parameters

2022-01-09 Thread Inada Naoki
Inada Naoki added the comment: New changeset 0b2b9d251374c5ed94265e28039f82b37d039e3e by Inada Naoki in branch 'main': bpo-23882: unittest: Drop PEP 420 support from discovery. (GH-29745) https://github.com/python/cpython/commit/0b2b9d251374c5ed94265e28039f82b37d039e3e --

[issue46319] datetime.utcnow() should return a timezone aware datetime

2022-01-09 Thread Martin Panter
Martin Panter added the comment: Perhaps this is a duplicate of Issue 12756? -- nosy: +martin.panter superseder: -> datetime.datetime.utcnow should return a UTC timestamp ___ Python tracker

[issue46167] Parse assert (x == y, "Descriptive text") as statement params instead of a tuple

2022-01-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I created a PEP to formally propose the change: https://www.python.org/dev/peps/pep-0679/ -- ___ Python tracker ___

[issue46322] Invalid file path of SSLKEYLOGFILE throw FileNotFoundError

2022-01-09 Thread SinaGhaaf
New submission from SinaGhaaf : An existence check of 'keylogfile' is missed at https://github.com/python/cpython/blob/main/Lib/ssl.py#L779, if the file path does not exist, it tries to set 'context.keylog_filename' to an invalid file, and the result would be 'FileNotFoundError'. The

[issue1283110] Give __len__() advice for "don't know"

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46321] Don't need delineators on lists

2022-01-09 Thread Devin Harper
Devin Harper <345t...@gmail.com> added the comment: Had to look up tuple in documentation instead of list. Thanks for mentioning tuple! -- stage: -> resolved status: open -> closed ___ Python tracker

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: That doesn’t really seem like a Pythonic way of extracting that information? Nor does it seem like it would be an obvious trick for the average developer to come up with. A method that provides the information directly seems useful. --

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The simplest way of collecting template names is to use a defaultdict: >>> d = collections.defaultdict(str) >>> string.Template('$a $b').substitute(d) ' ' >>> d.keys() dict_keys(['a', 'b']) You can use a custom mapping if you need special handling of

[issue46301] Enum tests: One branch is not covered in `Enum._convert_`

2022-01-09 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Seems that this PR has broken the refleak buildbots: https://buildbot.python.org/all/#/builders/320/builds/269/ https://buildbot.python.org/all/#/builders/384/builds/255 According to our buildbot policy, if this is not fixed in 24h we will need to

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: The point is to be able to programmatically determine what is needed for a successful substitute() call. A basic use case for this is better error messages; calling substitute() with an incomplete mapping will tell you only the first missing identifier it

[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-01-09 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46321] Don't need delineators on lists

2022-01-09 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: As Dennis points out, this is not a bug, it's already valid Python syntax. -- nosy: +barry resolution: -> not a bug status: pending -> open ___ Python tracker

[issue43698] Use syntactically correct examples on abc package page

2022-01-09 Thread Alex Waygood
Change by Alex Waygood : -- stage: -> patch review type: compile error -> behavior ___ Python tracker ___ ___ Python-bugs-list

[issue46321] Don't need delineators on lists

2022-01-09 Thread Dennis Sweeney
Dennis Sweeney added the comment: What you typed is already valid syntax, it's just that `a, b, c` makes a tuple, not a list. Changing that now would be backwards-incompatible. Is this a request for some kind of tweak to some documentation, or is this a request for a different behavior?

[issue46321] Don't need delineators on lists

2022-01-09 Thread Devin Harper
New submission from Devin Harper <345t...@gmail.com>: a=1 b=2 c=3 list=a, b, c #Remove spaces at the end of lists. Because sometimes spaces are errors or not depending on the number of items in your list. Remove list delineators to save a little memory and time not typing those delineator

[issue46008] Prepare runtime/interp/thread state and init for upcoming changes.

2022-01-09 Thread Quentin Pradet
Quentin Pradet added the comment: For what it's worth, this refactoring led to a 100% reproducible crash on my Fedora laptop: https://bugs.python.org/issue46320. (And led to various crashes in urllib3's CI, but they were more random.) -- nosy: +Quentin.Pradet

[issue46320] runtime/interp/thread state refactoring leads to segmentation fault

2022-01-09 Thread Quentin Pradet
Quentin Pradet added the comment: Sorry, I pasted the same crash twice. Here's the segmentation fault in `selectors`: ``` = test session starts

[issue46320] runtime/interp/thread state refactoring leads to segmentation fault

2022-01-09 Thread Quentin Pradet
New submission from Quentin Pradet : Since https://github.com/python/cpython/commit/32a67246b0d1e08cd50fc3bfa58052cfeb515b2e which was introduced through https://bugs.python.org/issue46008 and shipped as part of alpha 3, the urllib3 test suite reliably crashes on Fedora 35 (ie. gives a

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: Good to see that this is being handled. I could try to write a patch to do what I suggested above, if you're willing to review it. -- ___ Python tracker

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Christian Heimes
Christian Heimes added the comment: Petr and Charis are aware that there are issues with OpenSSL 3.0 support. RHEL 9 FIPS support is broken as well. It's also documented in the release notes and I just wrote an email to python-dev, too. -- ___

[issue46285] http/server.py wont respect its protocol_version

2022-01-09 Thread Hugo Almeida
Hugo Almeida added the comment: Hi, buddy, there is no problem if invoke the http.server.test function as its designed, I mean the function iteself is okay, thus http/server.py invoked it via the functools.partial wrapper (handler_class) only will case this issue, which technically ignored

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: I hope the Fedora maintainers/packagers know this because on Rawhide, Python is being compiled against OpenSSL 3 (which is how we discovered the problem). F36 is due out in a little over 3 months. -- ___ Python

[issue46319] datetime.utcnow() should return a timezone aware datetime

2022-01-09 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +belopolsky, p-ganssle versions: -Python 3.7, Python 3.8 ___ Python tracker ___ ___

[issue46249] [sqlite3] lastrowid improvements

2022-01-09 Thread Mariusz Felisiak
Change by Mariusz Felisiak : -- nosy: +felixxm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46285] http/server.py wont respect its protocol_version

2022-01-09 Thread Éric Araujo
Éric Araujo added the comment: I am a bit confused! The script you attached is to show a problem, but you’re saying there is no problem? -- ___ Python tracker ___

[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-01-09 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +28712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30507 ___ Python tracker

[issue46319] datetime.utcnow() should return a timezone aware datetime

2022-01-09 Thread Tony Rice
New submission from Tony Rice : datetime.datetime.utcnow() returns a timezone naive datetime, this is counter-intuitive since you are logically dealing with a known timezone. I suspect this was implemented this way for fidelity with the rest of datetime.datetime (which returns timezone

[issue46309] Task created by StreamReaderProtocol gets garbage collected.

2022-01-09 Thread Simon Wrede
Change by Simon Wrede : -- keywords: +patch pull_requests: +28710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30505 ___ Python tracker ___

[issue46270] Comparison operators in Python Tutorial 5.7

2022-01-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +28709 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30504 ___ Python tracker

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Christian Heimes
Christian Heimes added the comment: This is not a security issue because OpenSSL 3.0.0 is not officially supported yet. OpenSSL 3.0.0 support is prelimiary, experimental, and provisional. >From https://docs.python.org/3/whatsnew/3.10.html#ssl > The ssl module has preliminary support for

[issue46272] Fix bitwise and logical terminology in python.gram

2022-01-09 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue46272] Fix bitwise and logical terminology in python.gram

2022-01-09 Thread miss-islington
miss-islington added the comment: New changeset 1bee9a4625e101d3308831de37590f4e2f57c71c by Mark Dickinson in branch 'main': bpo-46272: Fix two heading comments in python.gram (GH-30499) https://github.com/python/cpython/commit/1bee9a4625e101d3308831de37590f4e2f57c71c -- nosy:

[issue43698] Use syntactically correct examples on abc package page

2022-01-09 Thread Nikita Sobolev
Nikita Sobolev added the comment: Thank you, I fully agree that this can be improved. Please, take a look at https://github.com/python/cpython/pull/30502 I will apprecaite your review! -- stage: patch review -> ___ Python tracker

[issue43698] Use syntactically correct examples on abc package page

2022-01-09 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 2.0 -> 3.0 pull_requests: +28708 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30502 ___ Python tracker

[issue46316] Optimize pathlib.Path.iterdir()

2022-01-09 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +28707 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30501 ___ Python tracker ___

[issue46318] asyncio and ssl: ResourceWarning: unclosed transport

2022-01-09 Thread Julien Palard
New submission from Julien Palard : Originally opened at: https://github.com/aio-libs/aiohttp/issues/6071 Reproducer: import asyncio class DumbProtocol(asyncio.Protocol): def connection_made(self, transport): print("Connection made") self.transport =

[issue46317] Pathlib.rename isn't robust

2022-01-09 Thread Oz Tiram
New submission from Oz Tiram : Pathlib.rename will fail across file system with: OSError: [Errno 18] Invalid cross-device link e.g: -> path_dict["current_path"].rename(path_dict["destination"]) (Pdb) n OSError: [Errno 18] Invalid cross-device link:

[issue46316] Optimize pathlib.Path.iterdir()

2022-01-09 Thread Barney Gale
New submission from Barney Gale : pathlib.Path.iterdir() contains the following code: if name in {'.', '..'}: # Yielding a path object for these makes little sense continue This check is unnecessary as os.listdir() does not return entries for '.' or '..':

[issue46315] Add support for WebAssembly System Interface (wasm32-wasi)

2022-01-09 Thread Christian Heimes
New submission from Christian Heimes : WASI is another WebAssembly platform similar to Emscripten (bpo-40280). Simply speaking Emscripten binaries (wasm32-emscripten) run inside a browser while WASI binaries target standalone runtimes like wasmtime [2][3] on the host. The lines are a bit

[issue46225] f_lasti behaves differently for lambdas returned from loops

2022-01-09 Thread Ned Batchelder
Ned Batchelder added the comment: Thanks, it does help. While updating coverage.py to use the RESUME information, I found another problem: https://bugs.python.org/issue46314 -- ___ Python tracker

[issue46314] Stray RESUME opcode for unused lambda

2022-01-09 Thread Ned Batchelder
New submission from Ned Batchelder : This code seems to get a RESUME opcode where no function call is happening: a = 1 fn = lambda 2 b = 3 Here is the disassembly. Offset 6 has a RESUME opcode for line 2: Python 3.11.0a3+ (heads/main:0fc58c1e05, Jan 8 2022, 19:45:58) [Clang

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
Alex Grönholm added the comment: This is a security issue because it exposes users to TLS truncation attacks that weren't possible before because such attempts would raise SSLEOFError. -- ___ Python tracker

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Christian Heimes
Change by Christian Heimes : -- assignee: christian.heimes -> type: security -> behavior ___ Python tracker ___ ___

[issue46264] 'I'.lower() should give non dotted i for LANG=tr_TR

2022-01-09 Thread Frank Feuerbacher
Frank Feuerbacher added the comment: Using casefold did not help ubuntu Lang is en_US.UTF-8 [GCC 9.3.0] on linux >>> folded_1: str = "Turkish I: İı".casefold() >>> folded_2: str = "tUrkİsh i: iI".casefold() >>> print(folded_1) turkish i: i̇ı >>> print(folded_2) turki̇sh i: ii >>>

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are the use cases for this feature? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue46312] range() function could accept slice() objects as parameters

2022-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Accepting a slice directly in the range constructor is ambiguous. What to do if start or stop are negative or None? What if stop is less than start? You need to specify a sequence length to handle these cases. Maybe the following expressions work for you:

[issue46313] SSLObject does not raise SSLEOFError on OpenSSL 3

2022-01-09 Thread Alex Grönholm
New submission from Alex Grönholm : PR #25309 (https://github.com/python/cpython/pull/25309) changed OpenSSL behavior so that it ignores unexpected EOFs by default. This was detected by the test suites of both trio and AnyIO when running on OpenSSL 3. We worked around the problem by

[issue37295] Possible optimizations for math.comb()

2022-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 2d787971c65b005d0cce219399b9a8e2b70d4ef4 by Serhiy Storchaka in branch 'main': bpo-37295: Use constant-time comb() and perm() for larger n depending on k (GH-30305)

[issue46312] range() function could accept slice() objects as parameters

2022-01-09 Thread yota moteuchi
Change by yota moteuchi : -- components: +Interpreter Core -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue46307] string.Template should allow inspection of identifiers

2022-01-09 Thread Ben Kehoe
Ben Kehoe added the comment: Having slept on it, I realized that if I was presenting interactive prompts for a template, I would expect the prompts to be in order that the identifiers appear in the template. Accordingly, I've updated the PR to maintain ordering. --

[issue46312] range() function could accept slice() objects as parameters

2022-01-09 Thread yota moteuchi
Change by yota moteuchi : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46312] range() function could accept slice() objects as parameters

2022-01-09 Thread yota moteuchi
New submission from yota moteuchi : This improvement proposal is close to : https://bugs.python.org/issue42956 and also detailed in https://stackoverflow.com/questions/13855288/turn-slice-into-range to iterate over a slice, the recommended method seems to be : s = slice(5,100,3) for i in

[issue1598083] Top-level exception handler writes to stdout unsafely

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- stage: needs patch -> resolved status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue46272] Fix bitwise and logical terminology in python.gram

2022-01-09 Thread Mark Dickinson
Mark Dickinson added the comment: > So, the meaning of these names like this is, "lt followed by an optional > bitwise_or expression"? That's certainly how I was reading it. -- ___ Python tracker

[issue46272] Fix bitwise and logical terminology in python.gram

2022-01-09 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +28706 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30499 ___ Python tracker ___

[issue46311] Clean up PyLong_FromLong and PyLong_FromLongLong

2022-01-09 Thread Mark Dickinson
Change by Mark Dickinson : -- keywords: +patch pull_requests: +28705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30496 ___ Python tracker ___

[issue46311] Clean up PyLong_FromLong and PyLong_FromLongLong

2022-01-09 Thread Mark Dickinson
New submission from Mark Dickinson : PR GH-27832 inadvertently (I believe) introduced a couple of changes to PyLong_FromLong that didn't make a lot of sense: an (unsigned long) cast was replaced with (twodigits), and a digit count variable (counting number of PyLong digits in a C long) had

[issue40064] py38: document xml.etree.cElementTree will be removed in 3.9

2022-01-09 Thread Irit Katriel
Change by Irit Katriel : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: +kumaraditya303 type: -> behavior versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.5 ___ Python tracker ___

[issue46294] Integer overflow & Int values loaded into Bool detected via Libfuzzer & UndefinedBehaviorSanitizer

2022-01-09 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for checking, Steven. Your report also helped me to notice a minor portability bug (at Objects/longobject.c:288, where the wrong type is used in a cast); a fix is in GH-30496. -- ___ Python tracker

[issue28249] doctest.DocTestFinder reports incorrect line numbers with exclude_empty=False

2022-01-09 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch nosy: +sobolevn nosy_count: 2.0 -> 3.0 pull_requests: +28704 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30498 ___ Python tracker

[issue45569] Drop support for 15-bit PyLong digits?

2022-01-09 Thread Mark Dickinson
Mark Dickinson added the comment: First step in GH-30497, which changes the default to 30-bit digits unconditionally, instead of having the default be platform dependent. -- ___ Python tracker

[issue45569] Drop support for 15-bit PyLong digits?

2022-01-09 Thread Mark Dickinson
Change by Mark Dickinson : -- pull_requests: +28703 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30497 ___ Python tracker ___

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-09 Thread Christian Heimes
Christian Heimes added the comment: New changeset 5c66414b5561c54e7a0f4bde8cc3271908ea525e by Ethan Smith in branch 'main': bpo-40280: Disable epoll_create in Emscripten config.site (GH-30494) https://github.com/python/cpython/commit/5c66414b5561c54e7a0f4bde8cc3271908ea525e --

[issue46304] Unable to iterate over lines in a file without a block of code

2022-01-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The safe way of using read_lines() is: lines = read_lines() try: # use lines finally: lines.close() or with contextlib.closing(read_lines()) as lines: # use lines And it is in no way better than using "with open()"

[issue46203] Add timeout for Windows build steps

2022-01-09 Thread Mark Dickinson
Change by Mark Dickinson : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue40280] Consider supporting emscripten/webassembly as a build target

2022-01-09 Thread Ethan Smith
Change by Ethan Smith : -- pull_requests: +28702 pull_request: https://github.com/python/cpython/pull/30495 ___ Python tracker ___

[issue46148] Optimize pathlib

2022-01-09 Thread Kumar Aditya
Change by Kumar Aditya : -- nosy: -kumaraditya303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-09 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28701 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30334 ___ Python tracker ___

[issue46310] Simplify `for` loop in `.close()` method in `asyncio/windows_events`

2022-01-09 Thread Nikita Sobolev
New submission from Nikita Sobolev : This line https://github.com/python/cpython/blob/3d11c1b8b49800c5c4c295953cc3abf577f6065a/Lib/asyncio/windows_events.py#L842 uses `.items()`, but the key seems unsused. It would be better to use `.values()` there. 1. It is slightly faster, very generic