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

2021-10-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +27414 pull_request: https://github.com/python/cpython/pull/29127 ___ Python tracker ___ ___

[issue19336] No API to get events from epoll without allocating a list

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bu

[issue45547] Modernize the importlib loaders

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: It's an interesting question. Probably should add the new APIs. As for dropping the old ones, we would have to check if we have been raising deprecation warnings as appropriate or if it's just a documentation thing. --

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: Sure, if you want to go full PEP on this I'm happy to be a co-author if the end goal is to ditch the (now) extraneous attributes. -- ___ Python tracker __

[issue18056] Document importlib._bootstrap.NamespaceLoader

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: This was taken care of by https://github.com/python/cpython/pull/29049/. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Andre Roberge
New submission from Andre Roberge : As stated in the documentation, sys.last_type, sys.last_value and sys.last_traceback ... are set when an exception is not handled and the interpreter prints an error message and a stack traceback. This is true whether the exception is a SyntaxError or some

[issue28375] cgi.py spam in Apache server logs

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: There's been quite a few changes in finalization (thanks to Victor) since 3.5/3.6. Are you seeing this problem on 3.9+? Can you provide instructions how to reproduce it? -- nosy: +iritkatriel, vstinner ___ Python

[issue45561] Run smelly.py and multissltests.py from $(srcdir)

2021-10-21 Thread Neil Schemenauer
New submission from Neil Schemenauer : Some makefile rules don't work if you build in a separate folder. -- messages: 404671 nosy: nascheme priority: normal severity: normal stage: patch review status: open title: Run smelly.py and multissltests.py from $(srcdir) type: behavior ___

[issue45561] Run smelly.py and multissltests.py from $(srcdir)

2021-10-21 Thread Neil Schemenauer
Change by Neil Schemenauer : -- keywords: +patch pull_requests: +27415 pull_request: https://github.com/python/cpython/pull/29138 ___ Python tracker ___ ___

[issue12675] tokenize module happily tokenizes code with syntax errors

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue45562] python -d creates lots of tokenizer messages

2021-10-21 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : python3.9 -d: Python 3.9.7 (default, Oct 21 2021, 20:51:19) [GCC 7.5.0] on linux Type "help", "copyright", "credits" or "license" for more information. Loaded pyinteractive.py. >>> python3.10 -d: Python 3.10.0 (default, Oct 21 2021, 23:13:32) [GCC 7.5

[issue45557] pprint -> underscore_numbers argument not working

2021-10-21 Thread Eric V. Smith
Change by Eric V. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker ___ ___

[issue45559] pprint tests do not test pprint.pprint()

2021-10-21 Thread Eric V. Smith
Change by Eric V. Smith : -- title: pprint module does not test pprint.pprint() -> pprint tests do not test pprint.pprint() ___ Python tracker ___

[issue16621] sched module enhancement request

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> sched.scheduler.run() blocks scheduler ___ Python tracker ___ _

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-21 Thread Marc-Andre Lemburg
New submission from Marc-Andre Lemburg : In Python 3.10, it seems that top-level frames generated by running exec() have their f_lineno attribute set to None. inspect.getframeinfo() tries to build context lines and fails on this line in such a case: start = lineno - 1 - context//2 b

[issue45562] python -d creates lots of tokenizer messages

2021-10-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: What's even worse is that those debug lines get written to stdout, not stderr. -- ___ Python tracker ___

[issue45562] python -d creates lots of tokenizer messages

2021-10-21 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- components: +Parser nosy: +lys.nikolaou, pablogsal ___ Python tracker ___ ___ Python-bugs-list mai

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-21 Thread Marc-Andre Lemburg
Change by Marc-Andre Lemburg : -- components: +Interpreter Core, Library (Lib), Parser nosy: +lys.nikolaou, pablogsal ___ Python tracker ___ ___

[issue17181] SSLContext.set_servername_callback should be able to set argument

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41983] Missing Documentation AF_PACKET

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset b26eae54e98f44eebc1599ca458228dae0568ffa by Miss Islington (bot) in branch '3.9': bpo-41983: add availability info to socket docs (GH-27519) (GH-29137) https://github.com/python/cpython/commit/b26eae54e98f44eebc1599ca458228dae0568ffa --

[issue41983] Missing Documentation AF_PACKET

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 8fd7e8965d0ff9f76401b86aec2166cc59a40637 by Miss Islington (bot) in branch '3.10': bpo-41983: add availability info to socket docs (GH-27519) (GH-29136) https://github.com/python/cpython/commit/8fd7e8965d0ff9f76401b86aec2166cc59a40637 --

[issue41983] Missing Documentation AF_PACKET

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Andrei! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.8 ___ Python tracker

[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 9b3cda56870d087cf50f605e91f3d26964868640 by Miss Islington (bot) in branch '3.10': bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) (GH-29135) https://github.com/python/cpython/commit/9b3cda56870d087cf50f

[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset c53428fe8980aab6eda3e573bafed657e6798e6e by Miss Islington (bot) in branch '3.9': bpo-44344: Document that pow can return a complex number for non-complex inputs. (GH-27853) (GH-29134) https://github.com/python/cpython/commit/c53428fe8980aab6eda3e

[issue44344] Documentation for pow() should include the possibility of complex numbers as a return type

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks, Mark! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10, Python 3.11 ___ Python tracker _

[issue44547] fraction.Fraction does not implement __int__.

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset d1b24775b462f4f28aa4929fd031899170793388 by Mark Dickinson in branch 'main': bpo-44547: Make Fractions objects instances of typing.SupportsInt (GH-27851) https://github.com/python/cpython/commit/d1b24775b462f4f28aa4929fd031899170793388 --

[issue44547] fraction.Fraction does not implement __int__.

2021-10-21 Thread Łukasz Langa
Łukasz Langa added the comment: Thanks for the patch, Mark! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39247] dataclass defaults and property don't work together

2021-10-21 Thread Thomas
Thomas added the comment: Agreed on everything but that last part, which I'm not sure I understand: > If we allow descriptor to accept an iterable as well you could have multiple > descriptors just like normal. Could you give an example of what you mean with a regular class? I've had a bit mo

[issue39247] dataclass defaults and property don't work together

2021-10-21 Thread Michael Robellard
Michael Robellard added the comment: An example of multiple descriptors would be to have: @cached_property @property def expensive_calc(self): #Do something expensive -- ___ Python tracker _

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- nosy: +Mark.Shannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue45563] inspect.getframeinfo() doesn't handle frames without lineno

2021-10-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- components: -Parser ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue29370] "./configure --enable-optimizations && make install" does not install files in ${BINDIR} and ${LIBDIR}

2021-10-21 Thread Zachary Ware
Zachary Ware added the comment: I can't reproduce this one with current main, so I'm closing as out of date. If someone can still reproduce with a current version, please reopen or leave a message with details. -- nosy: +zach.ware resolution: -> out of date stage: -> resolved stat

[issue45564] shutil.rmtree and os.walk are implemented using recursion, fail on deep hierarchies

2021-10-21 Thread Alexander Patrakov
New submission from Alexander Patrakov : It is possible to create deep directory hierarchies that cannot be removed via shutil.rmtree or walked via os.walk, because these functions exceed the interpreter recursion limit. This may have security implications for web services (e.g. various webdi

[issue17181] SSLContext.set_servername_callback should be able to set argument

2021-10-21 Thread Christian Heimes
Christian Heimes added the comment: As Antoine said, you can use a partial function, closure, or an instance method as a callable. Besides nobody else has requested an additional argument in the past eight years. I see this as a strong indication that an argument is not required. --

[issue45562] python -d creates lots of tokenizer messages

2021-10-21 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Yeah, those are expected in 3.10, but this should not appear in release versions (only on debug ones). Python -d is normally used to debug the parser: -d : turn on parser debugging output (for experts only, only works on debug builds); al

[issue20952] OpenSSL and RDRAND

2021-10-21 Thread Christian Heimes
Christian Heimes added the comment: Thankfully RDRAND is no longer a concern for us. All OpenSSL versions in official Python.org installers and supported by recent Python versions have a strong and fork-safe RNG. -- resolution: -> fixed stage: -> resolved status: open -> closed __

[issue45562] python -d creates lots of tokenizer messages

2021-10-21 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +27416 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29140 ___ Python tracker __

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2021-10-21 Thread STINNER Victor
STINNER Victor added the comment: I like calling .fileno() explicitly. It seems like it's not really needed to call it implicitly, since this issue doesn't get much activity. I suggest to reject it. -- status: pending -> open ___ Python tracker <

[issue18276] posixpath.c:_fd_converter() should use PyObject_AsFileDescriptor()

2021-10-21 Thread Christian Heimes
Christian Heimes added the comment: Fine with me! Thanks for your feedback. -- resolution: -> rejected stage: needs patch -> resolved status: open -> closed ___ Python tracker __

[issue5120] Change _tkinter initialization for new versions of Aqua Tk on OS X

2021-10-21 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue42413] Replace custom exceptions for timeouts with TimeoutError

2021-10-21 Thread Christian Heimes
Christian Heimes added the comment: Andrew, could you please rebase your PR and get it submitted? -- assignee: christian.heimes -> asvetlov versions: +Python 3.11 -Python 3.10 ___ Python tracker

[issue39247] dataclass defaults and property don't work together

2021-10-21 Thread Thomas
Thomas added the comment: Just to rephrase, because the explanation in my last message can be ambiguous: At dataclass construction time (when the @dataclass decorator inspects and enhances the class): for field in fields: if descriptor := getattr(field, 'descriptor'): setattr(cls

[issue42358] Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on bigendian system

2021-10-21 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> out of date stage: -> resolved status: open -> closed title: Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on nigendan system -> Python 3.9.0 unable to detect ax_cv_c_float_words_bigendian value on bigendian system

[issue42074] setup error on windows

2021-10-21 Thread Zachary Ware
Zachary Ware added the comment: Closing due to lack of response. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue31000] Test failure in resource module on some ZFS systems

2021-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: It doesn't happen on the zfs ubuntu 20.04 machine i've got. Figuring out an appropriate workaround when refactoring the test for this is best done by someone with a system it fails on. It'd be guesswork otherwise. -- title: Test failure in resour

[issue45395] Frozen stdlib modules are discarded if custom frozen modules added.

2021-10-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I have an initial version of PyRun for Python 3.10 running as well. This created a few more headaches in order to make it work with setuptools and some glitches which appear to be bugs in 3.10 (https://bugs.python.org/issue45563 and https://bugs.python.org/

[issue31382] CGI upload error when file ~< 10kb

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: There isn't enough information here to understand what your issue is. If you are still having this problem on a current python version (3.9+), please create a new issue and provide instructions how to reproduce it and information about the environment in which

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2021-10-21 Thread Zachary Ware
Change by Zachary Ware : -- keywords: +patch pull_requests: +27417 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/29141 ___ Python tracker

[issue1353344] python.desktop

2021-10-21 Thread Terry J. Reedy
Change by Terry J. Reedy : -- stage: patch review -> needs patch versions: +Python 3.11 -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue41104] IMAPlib debug errors

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: This function was rewritten in PR15206 and this line is no longer there. -- nosy: +iritkatriel resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue39247] dataclass defaults and property don't work together

2021-10-21 Thread Thomas
Thomas added the comment: > An example of multiple descriptors would be to have: > @cached_property > @property > def expensive_calc(self): > #Do something expensive That's decorator chaining. The example you gave is not working code (try to return something from expensive_calc and print(

[issue41592] Make _SubParsersAction public

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue45528] mmap: constants not listed in the documentation

2021-10-21 Thread Michael Wayne Goodman
Michael Wayne Goodman added the comment: Also, the first sentences of third paragraph have some problems: > For both the Unix and Windows versions of the constructor, > access may be specified as an optional keyword > parameter. access accepts one of four values: ACCESS_READ, > ACCESS_WRITE, o

[issue44019] operator.call/operator.__call__

2021-10-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 37fad7d3b7154c44b9902a2ab0db8641f1a0284b by Dong-hee Na in branch 'main': bpo-44019: Add test_all_exported_names for operator module (GH-29124) https://github.com/python/cpython/commit/37fad7d3b7154c44b9902a2ab0db8641f1a0284b --

[issue44019] operator.call/operator.__call__

2021-10-21 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +27418 pull_request: https://github.com/python/cpython/pull/29142 ___ Python tracker ___ _

[issue28375] cgi.py spam in Apache server logs

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue41050] class multiprocessing.Value calls set_start_method

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: Reproduced on 3.11. -- nosy: +iritkatriel versions: +Python 3.11 -Python 3.5, Python 3.8 ___ Python tracker ___ ___

[issue45548] Update Modules/Setup

2021-10-21 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27419 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29143 ___ Python tracker ___

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-21 Thread Stefan Pochmann
Stefan Pochmann added the comment: I see you mentioned that PyObject_RichCompareBool(..., Py_EQ) might be faster for example because it checks identity. Why not do an identity check before the ms->tuple_elem_compare calls? Too expensive and rarely successful? > Extending the idea to positio

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Dong-hee Na added the comment: See my last benchmark https://github.com/python/cpython/pull/25154#issuecomment-949061515 Same result in both Linux VM and Macbook pro. -- ___ Python tracker

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Dong-hee Na added the comment: New changeset 83f202a802b0810e2f0900c6d298fd104390f2ba by Dong-hee Na in branch 'main': bpo-43706: Use PEP 590 vectorcall to speed up enumerate() (GH-25154) https://github.com/python/cpython/commit/83f202a802b0810e2f0900c6d298fd104390f2ba -- _

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Dong-hee Na added the comment: Thanks Victor! -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue21358] Augmented assignment doc: clarify 'only evaluated once'

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.10, Python 3.11, Python 3.9 -Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___

[issue26597] Document how to cite Python

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 2.7, Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list m

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Change by Dong-hee Na : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21249] removing pythonXY.zip from sys.path results in additional test failures

2021-10-21 Thread Irit Katriel
Irit Katriel added the comment: This seems abandoned. Shall we close? -- nosy: +iritkatriel ___ Python tracker ___ ___ Python-bugs-

[issue27544] Document the ABCs for instance/subclass checks of dict view types

2021-10-21 Thread Irit Katriel
Change by Irit Katriel : -- versions: +Python 3.11 -Python 3.5, Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29844] Windows Python installers not installing DLL to System32/SysWOW64

2021-10-21 Thread Zachary Ware
Zachary Ware added the comment: New changeset 098a33f6a60ca2df88e03024ac9d8da507cfa5c8 by Zachary Ware in branch 'main': bpo-29844: Remove obsolete paragraph from Tools/msi/README.txt (GH-29141) https://github.com/python/cpython/commit/098a33f6a60ca2df88e03024ac9d8da507cfa5c8 -- __

[issue45548] Update Modules/Setup

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: New changeset 01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 by Brett Cannon in branch 'main': bpo-45548: Make `Modules/Setup` easier to read (GH-29143) https://github.com/python/cpython/commit/01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 -- __

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is most likely an oversight. It affects both normal and -n mode. The three sys attributes can be written. Given the error instance e caught in the IDLE process, we need to execute, *in the user namespace*, sys.last_type, sys.last_value, sys.tracebac

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Andre Roberge
Andre Roberge added the comment: If this can be implemented, then I believe that https://bugs.python.org/issue43476 could be closed as well. -- ___ Python tracker ___ ___

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The method to run just code in userspace, without involving the debugger or history list, is runcommand. It needs a code string. The hard part is the code needed to recreate the exception instance in the user space. It will be different for SyntaxError ve

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

2021-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 843b890334ca30cf6af27dffe29cecd06b49f7d9 by Gregory P. Smith in branch 'main': bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127) https://github.com/python/cpython/commit/843b890334ca30cf6af27dffe29cecd06b49f7d9 -- __

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

2021-10-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +27421 pull_request: https://github.com/python/cpython/pull/29145 ___ Python tracker ___ __

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

2021-10-21 Thread miss-islington
Change by miss-islington : -- message_count: 10.0 -> 11.0 nosy: +miss-islington nosy_count: 6.0 -> 7.0 pull_requests: +27420 pull_request: https://github.com/python/cpython/pull/29144 ___ Python tracker _

[issue45530] Improve listobject.c's unsafe_tuple_compare()

2021-10-21 Thread Tim Peters
Tim Peters added the comment: > I see you mentioned that PyObject_RichCompareBool(..., Py_EQ) might be > faster for example because it checks identity. For example, in tupsort.py replace xs = [random() for _ in range(length)] with xs = ['z' * 100 for _ in range(length)] Then sortin

[issue45560] sys.last_* not set for SyntaxErrors with IDLE

2021-10-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: #43476 is clearly an enhancement request. It proposes to stash info in the GUI process in a way that lets it be into from the other process by non-standard means. This is closer to a bugfix request in that successive lines have a different response in REPL

[issue43706] enumerate() instantiation time reducing by using PEP 590 vectorcall

2021-10-21 Thread Dong-hee Na
Dong-hee Na added the comment: @vstinner I noticed that the msg390083 was based on a non-optimized build. https://github.com/python/cpython/pull/25154#issuecomment-949061515 ran with the same build option condition. Here is the PGO + LTO based benchmark. Still fast. +-+-

[issue45545] chdir __exit__ is not safe

2021-10-21 Thread Eryk Sun
Eryk Sun added the comment: Sorry, I seem to have missed your post last month when I scanned over the thread on python-ideas [1]. In POSIX, it could try to handle ENAMETOOLONG by walking the path forward with a relative chdir(). This could try to consume as many components as possible in e

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

2021-10-21 Thread miss-islington
miss-islington added the comment: New changeset 8f6aa48cb2dc827a2cb76e35e91bf02d099875c5 by Miss Islington (bot) in branch '3.10': bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127) https://github.com/python/cpython/commit/8f6aa48cb2dc827a2cb76e35e91bf02d099875c5 --

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

2021-10-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker ___ ___

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

2021-10-21 Thread miss-islington
miss-islington added the comment: New changeset 216c040bb1fdf73e78d67ab82a43563d7593f874 by Miss Islington (bot) in branch '3.9': bpo-43592: Raise RLIMIT_NOFILE in test.libregrtest (GH-29127) https://github.com/python/cpython/commit/216c040bb1fdf73e78d67ab82a43563d7593f874 -- _

<    1   2   3