[issue26680] Incorporating float.is_integer into Decimal

2021-03-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- components: -2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, Extension Modules, asyncio, ctypes nosy: -Alex.Willmer, asvetlov, dstufft, eric.araujo, larry, yselivanov type:

[issue26680] Incorporating float.is_integer into Decimal

2021-03-21 Thread Raymond Hettinger
Change by Raymond Hettinger : Removed file: https://bugs.python.org/file49898/Mobile_Signup.vcf ___ Python tracker ___ ___ Python-bugs-list

[issue43420] Optimize rational arithmetics

2021-03-21 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Mon, Mar 22, 2021 at 04:34:32AM +, Tim Peters wrote: > For example, setting up a module global `_gcd` name for `math.gcd` Looking on the stdlib, I would just import gcd. > default `_gcd=math.gcd` arguments to the methods? Then it's > even faster

[issue43420] Optimize rational arithmetics

2021-03-21 Thread Tim Peters
Tim Peters added the comment: If experience is any guide, nothing about anything here will go smoothly ;-) For example, setting up a module global `_gcd` name for `math.gcd` is a very standard, widespread kind of micro-optimization. But - if that's thought to be valuable (who knows? maybe

[issue43586] sys.path is weird in Windows 10.

2021-03-21 Thread Shin Ryu
New submission from Shin Ryu : import sys print(sys.path) only on windows, they print sys.path[0] is python38.zip not "". (docs.python.org says "As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the

[issue43420] Optimize rational arithmetics

2021-03-21 Thread Sergey B Kirpichev
Sergey B Kirpichev added the comment: On Mon, Mar 22, 2021 at 02:35:59AM +, Tim Peters wrote: > Thanks, all! This has been merged now. If someone wants to > continue pursuing things left hanging, I'd suggest opening > a different BPO report. Tim, if you are about micro-optimizations for

[issue38428] Can't gracefully ctrl+C multiprocessing pool on Python3 & Windows

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: In bpo-29971 it was suggested to split the PyThread lock API in Windows into an "interruptible lock" API that's based on emulated condition variables and a "fast lock" API that's based on native condition variables and SRW locks. Maybe the only API change that's

[issue26680] Incorporating float.is_integer into Decimal

2021-03-21 Thread Max Prokop
Change by Max Prokop : -- components: +2to3 (2.x to 3.x conversion tool), Argument Clinic, Build, C API, Cross-Build, Demos and Tools, Distutils, Documentation, asyncio, ctypes nosy: +Alex.Willmer, asvetlov, dstufft, eric.araujo, larry, yselivanov type: enhancement -> compile error

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2021-03-21 Thread Vincent Pelletier
Vincent Pelletier added the comment: Added: affects Python 3.9 This bug is still preventing (...or shall I say "discourages", as the setter is effective but raises) server-side SSL certificate reloading on long-running services. This codepath on listening sockets is necessary for seamless

[issue43420] Optimize rational arithmetics

2021-03-21 Thread Tim Peters
Tim Peters added the comment: Thanks, all! This has been merged now. If someone wants to continue pursuing things left hanging, I'd suggest opening a different BPO report. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed

[issue43420] Optimize rational arithmetics

2021-03-21 Thread Tim Peters
Tim Peters added the comment: New changeset 690aca781152a498f5117682524d2cd9aa4d7657 by Sergey B Kirpichev in branch 'master': bpo-43420: Simple optimizations for Fraction's arithmetics (GH-24779) https://github.com/python/cpython/commit/690aca781152a498f5117682524d2cd9aa4d7657 --

[issue37860] Add deploy preview for docs

2021-03-21 Thread Ashwin Ramaswami
Change by Ashwin Ramaswami : -- nosy: +EWDurbin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37860] Add deploy preview for docs

2021-03-21 Thread Ashwin Ramaswami
Ashwin Ramaswami added the comment: I realized there's another alternative which is probably simpler. We can use Netlify to host the deploy previews, but we can use GitHub Actions to build the documentation. This way, we won't run into the build time limits for Netlify, and we can still use

[issue36860] Inconsistent/Undocumented behavior with pathlib resolve and absolute on Windows

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: The issue with non-strict resolution of relative paths that do not exist is being addressed in bpo-38671. The proposal to support and document the absolute() method is addressed in bpo-29688. -- resolution: -> duplicate stage: -> resolved status: open

[issue39920] os.stat() and os.lstat() fail with Windows device paths

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: 3.7.8, released on 2020-06-27, was the last bugfix release of Python 3.7, so I'm closing this issue as a duplicate of bpo-33898, which is about supporting device paths correctly in pathlib. -- resolution: -> duplicate stage: -> resolved status: open ->

[issue38188] Incorrect Argument Order for Calls to _winapi.DuplicateHandle() in multiprocessing.reduction.DupHandle

2021-03-21 Thread Eryk Sun
Change by Eryk Sun : -- components: +Library (Lib) stage: -> needs patch type: -> behavior versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue35754] [Windows] I/O on a broken pipe may raise an EINVAL OSError instead of BrokenPipeError

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: It's still the case that we have to guess that a generic EINVAL (22) is actually EPIPE. Low-level wrapper functions in Python/fileutils.c, such as _Py_read() and _Py_write_impl(), should try to get a better error code by calling Python's custom

[issue27823] Change bare AttributeError messages to be more informative

2021-03-21 Thread Irit Katriel
Irit Katriel added the comment: -1 As Anilyka wrote: "it (AttributeError) doesn't even mean the attribute doesn't exist, as it may". So it's not safe to fill in a missing message based on the assumption that we know what it should be. -- nosy: +iritkatriel

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

2021-03-21 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-21 Thread Irit Katriel
Irit Katriel added the comment: I think the issue is that the error message for UnboundLocalError is wrong, see this example: >>> def g(): ...x = 42 ...del x ...print(x) ... >>> g() Traceback (most recent call last): File "", line 1, in File "", line 4, in g

[issue15286] normpath does not work with local literal paths

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: This old issue still needs to be fixed. The check for special_prefixes in ntpath.normpath() must be removed in order to be consistent with WinAPI GetFullPathNameW(). In Windows, one can just call ntpath.abspath() to ensure that nt._getfullpathname() is called.

[issue15286] normpath does not work with local literal paths

2021-03-21 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg338058 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43585] perf_counter() returns computers uptime

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: For Windows, starting with Python 3.10, the value of time.perf_counter[_ns]() is system wide instead of relative to the first time it's accessed in the current process. This allows comparing the counter value across processes. See bpo-37205. -- nosy:

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: The callback from context.alpn_callback would fire when OpenSSL handles the ALPN extension. Since the callback is triggered in the ClientHello phase of the handshake, you'll be able to replace the socket's context with another context. The OpenSSL codes

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

2021-03-21 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg380941 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-03-21 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg380944 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39484] [time] document that integer nanoseconds may be more precise than float

2021-03-21 Thread Eryk Sun
Change by Eryk Sun : -- assignee: -> docs@python components: +Documentation, Extension Modules -Library (Lib) nosy: +docs@python title: time_ns() and time() cannot be compared on windows -> [time] document that integer nanoseconds may be more precise than float type: behavior ->

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-21 Thread Zachary Ware
Change by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware stage: -> needs patch ___ Python tracker ___

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Andrew Dailey
Andrew Dailey added the comment: Yea, I noticed that through some of my digging. The ALPN callback is used to implement SSLContext.set_alpn_protocols() but full control of the callback isn't exposed. Aside from adjusting how the ALPN callback used, do you know of any other way to swap

[issue37891] Exceptions tutorial page does not mention raise from

2021-03-21 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +easy versions: +Python 3.10 -Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker ___

[issue14189] C API documentation must document if returned object is a borrowed reference or strong reference

2021-03-21 Thread Irit Katriel
Irit Katriel added the comment: This was fixed for all the functions listed by the OP, except a few that no longer exist AFAICT: Doc/c-api/import.rst: _PyImport_FindExtension Doc/c-api/import.rst: _PyImport_FixupExtension Doc/c-api/init.rst: PyEval_GetCallStats Doc/c-api/int.rst:

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Assuming Antoine is correct (a likely story), I'm closing and will only re-open if a subsequent failure is confirmed to have run and failed after the submission. Sorry for the noise. -- resolution: -> fixed status: open -> closed

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Okay, I think you may be right. I saw your name on the build and assumed that meant the merge triggered that build. I'll trigger a build now. -- ___ Python tracker

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think that build includes your change. Here are the builds that have been triggered (the list seems incomplete for now): https://buildbot.python.org/all/#/changes/3355 -- ___ Python tracker

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Unfortunately, it seems the patch didn't have the intended effect. The [build is still failing](https://buildbot.python.org/all/#/builders/14/builds/810). So I'm left without a way to test without committing code to the main branch. -- resolution:

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: SSLContext.set_alpn_protocols() is a high level interface on top of SSL_CTX_set_alpn_select_cb(). Python doesn't directly expose the ALPN selector callback. The ssl module only provides a way to set a hard-coded callback that wraps

[issue43060] Convert _decimal C API from pointer array to struct

2021-03-21 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Closing, as the C API was removed in GH-24960. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 9a50ef43e42ee32450a81ce13ed5a0729d3b84e8 by Jason R. Coombs in branch 'master': bpo-43569: Add test/test_importlib/namespacedata01 to TESTSUBDIRS (GH-24952) https://github.com/python/cpython/commit/9a50ef43e42ee32450a81ce13ed5a0729d3b84e8

[issue43569] test_importlib failed on installed Python

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: You can find your submitted change here by looking here: https://buildbot.python.org/all/#/changes For some reason, though, it seems that no build was triggered: https://buildbot.python.org/all/#/changes/3344 In any case, the fix is a no-brainer. --

[issue41701] Buildbot web page: connection lost after 1 minute, then display "Connection restored" popup

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Andrew Dailey
Andrew Dailey added the comment: Yea, I'm still on the hunt for a better way to solve my primary problem: detect an acme-tls/1 ALPN protocol request during the TLS handshake so that I can swap out the context to one with the cert chain that Let's Encrypt is expecting to see. It seems like

[issue43585] perf_counter() returns computers uptime

2021-03-21 Thread Dennis Sweeney
Dennis Sweeney added the comment: Can you explain why you think this is the wrong behavior, and what operating system and version of Python you're using? from https://docs.python.org/3/library/time.html#time.perf_counter Return the value (in fractional seconds) of a performance counter,

[issue41369] Update to libmpdec-2.5.1

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23719 pull_request: https://github.com/python/cpython/pull/24962 ___ Python tracker ___

[issue43585] perf_counter() returns computers uptime

2021-03-21 Thread Tobi
New submission from Tobi : perf_counter() does not behave as expected -- messages: 389248 nosy: txhx38 priority: normal severity: normal status: open versions: Python 3.10 ___ Python tracker

[issue43422] Revert _decimal C API changes

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43422] Revert _decimal C API changes

2021-03-21 Thread miss-islington
miss-islington added the comment: New changeset cdddc2b742750e3f289305cf276433a8170c32c1 by Antoine Pitrou in branch 'master': bpo-43422: Revert _decimal C API addition (GH-24960) https://github.com/python/cpython/commit/cdddc2b742750e3f289305cf276433a8170c32c1 -- nosy:

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

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

[issue43584] Doc description of str.title() upper case vs. title case.

2021-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: There was recent change to str.capitalize. I am not sure if Serhiy was referring to this doc change in https://bugs.python.org/issue36549#msg339570 -- nosy: +serhiy.storchaka, xtreak ___ Python tracker

[issue43581] array assignment error

2021-03-21 Thread John Cena
John Cena added the comment: You are actually creating 4 references to the same list(See the ending *4). This is how python behaves. See the below link as well https://stackoverflow.com/questions/240178/list-of-lists-changes-reflected-across-sublists-unexpectedly -- nosy:

[issue43581] array assignment error

2021-03-21 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue41324] Add a minimal decimal capsule API

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, this is going to be reverted at Stefan's request in issue43422. -- ___ Python tracker ___

[issue43581] array assignment error

2021-03-21 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: By using * 4 in the end you are making four lists having same reference. Hence change in one causes change in other 4 lists. Relevant FAQ : https://docs.python.org/3/faq/programming.html#how-do-i-create-a-multidimensional-list -- nosy:

[issue43584] Doc description of str.title() upper case vs. title case.

2021-03-21 Thread Grant Edwards
New submission from Grant Edwards : The documentation for str.title() states that the first character in each world is converted to upper case. That is not correct for recent versions of Python. The first character in each word is converted to title case. Title and upper may be the same for

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: I'm also -1 and would prefer something like Grégory's proposal instead. -- nosy: +christian.heimes ___ Python tracker ___

[issue43422] Revert _decimal C API changes

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23718 pull_request: https://github.com/python/cpython/pull/24960 ___ Python tracker ___

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: The fix will be available in next 3.9 and 3.8 release. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.10 ___ Python tracker

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: I don't see any way to fix the issue with our current API. OpenSSL 1.1.1 provides a new API SSL_client_hello_get0_ext() to access raw extension during early stage of ClientHello phase.

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread miss-islington
miss-islington added the comment: New changeset c145c03281af850130dd7f75abc19c6ea49626e6 by Miss Islington (bot) in branch '3.9': bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)

[issue43583] make test failures, 2 tests failed: test_embed test_tabnanny

2021-03-21 Thread Pattesvador
New submission from Pattesvador : I'm trying to install python 3.9.2 on a 18.04.5 ubuntu. I downloaded the Python-3.9.2.tar.xz and followed the readme.txt installation instructions. When executing the "make test" command I get this error : == Tests result: FAILURE then FAILURE == 397 tests

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: I analysed the issue in comment https://bugs.python.org/issue43577#msg389222 -- nosy: +alex, dstufft, janssen, njs versions: +Python 3.10 ___ Python tracker

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: No, there is no check for that. This kind of deadlock should never occur. The problem was an implementation bug in low-level C code that had bad interaction with the global interpreter lock. Python releases the GIL around OpenSSL calls. Callbacks have to

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread miss-islington
miss-islington added the comment: New changeset 93b0da7527ae1b7d705052cf352ef9da81e608ec by Miss Islington (bot) in branch '3.8': bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)

[issue43581] array assignment error

2021-03-21 Thread Vedran Čačić
Vedran Čačić added the comment: All three words in the title are wrong. :-D -- nosy: +veky ___ Python tracker ___ ___

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread miss-islington
Change by miss-islington : -- pull_requests: +23717 pull_request: https://github.com/python/cpython/pull/24959 ___ Python tracker ___

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: New changeset 77cde5042a2f1eae489c11a67540afaf43cd5cdf by Christian Heimes in branch 'master': bpo-43577: Fix deadlock with SSLContext._msg_callback and sni_callback (GH-24957)

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 2.0 -> 3.0 pull_requests: +23716 pull_request: https://github.com/python/cpython/pull/24958 ___ Python tracker

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Andrew Dailey
Change by Andrew Dailey : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43582] SSLContext.sni_callback docs inaccurately describe available handshake info

2021-03-21 Thread Andrew Dailey
New submission from Andrew Dailey : Hello, The documentation for SSLContext.sni_callback [0] seems to incorrectly describe the information available at that stage of the TLS handshake. According to the docs: Due to the early negotiation phase of the TLS connection, only limited methods and

[issue43581] array assignment error

2021-03-21 Thread Wen Hao
New submission from Wen Hao : >>>mat = [[0]*4]*4 >>> mat [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] >>> mat[1][2]=1 >>> mat [[0, 0, 1, 0], [0, 0, 1, 0], [0, 0, 1, 0], [0, 0, 1, 0]] -- components: Build messages: 389230 nosy: haowenqi.zz priority: normal severity: normal

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Andrew Dailey
Andrew Dailey added the comment: I'm glad that the info I provided was helpful! I'll go ahead and create another issue for the misleading docs surrounding SSLContext.sni_callback. Thanks for looking into this and coming up with a fix so quickly. I do have one more question: does python

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-21 Thread Grégory Starck
Grégory Starck added the comment: FWIW -1 from me too. That should be solved by creating a new function IMO : def joinstr(sep, *seq): return sep.join(str(i) for i in seq) -- nosy: +g.sta...@gmail.com ___ Python tracker

[issue19124] os.execv executes in background on Windows

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: > On Windows, the new process is executed in the background but > can send output to a console if the original process was > started in a console. C execv[e]() is a mess for console applications. The child process is competing for console input with an ancestor

[issue33140] shutil.chown should not be defined in Windows

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

[issue43535] Make str.join auto-convert inputs to strings.

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

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-21 Thread Mark Dickinson
Mark Dickinson added the comment: Hi Victor, I just noticed the change to dtoa.c in GH-24821. Please could you explain what the benefit of this change was? In general, we need to be very conservative with changes to dtoa.c: it's a complex, fragile, performance-critical piece of code, and

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: As a data point, my Windows development VM uses Windows 7. It would be a major annoyance for me to reinstall a new development VM from scratch (going through the usual hurdles to have a usable development environment would probably be a full day of work,

[issue43572] "Too many open files" on macOS buildbot

2021-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43572] "Too many open files" on macOS buildbot

2021-03-21 Thread Antoine Pitrou
Change by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue31863] Inconsistent exitcode for terminated child processes on Windows

2021-03-21 Thread Eryk Sun
Eryk Sun added the comment: > I'm not actually sure what the proposal here is. Are we suggesting > that all Python's means of terminating a process should use the > same exit code? That's how I read it, but I don't agree if it means always pretending that a process was killed by a SIGTERM

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the excellent bug report and reproducer! I have identified the issue and submitted a fix for review. OpenSSL copies the internal msg_callback to SSL struct, but SSL_set_SSL_CTX() does not update the msg_callback with value from new context.

[issue43580] A Question about List Slice

2021-03-21 Thread Mark Dickinson
Change by Mark Dickinson : -- components: -Regular Expressions ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43580] A Question about List Slice

2021-03-21 Thread Mark Dickinson
Mark Dickinson added the comment: It's behaving as designed and documented; see the docs here: https://docs.python.org/3/library/stdtypes.html#sequence-types-list-tuple-range (and particularly note 3). In your first example, the first `-1` in `x[1:-1:-1]` is interpreted relative to the end

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-21 Thread Christian Heimes
Change by Christian Heimes : -- keywords: +patch pull_requests: +23715 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24957 ___ Python tracker

[issue43580] A Question about List Slice

2021-03-21 Thread LittleGuy
New submission from LittleGuy <674980...@qq.com>: # There is a question when I use list. # If I run this following code: x = list(range(10)) a = x[1 : -1 : -1] print(a) # the answer will be: [] # the right answer should be: [1, 0] # But in some cases, it works well, like: a = x[4 : 2 : -1]

[issue43579] Leak in asyncio.selector_events._SelectorSocketTransport

2021-03-21 Thread begnac
New submission from begnac : Hello, Even after close()ing, asyncio.selector_events._SelectorSocketTransport keeps a reference to itself via self._read_ready_cb. should probably add def close(self): super().close() self._read_ready_cb = None Cheers ! Itaï. -- components:

[issue43578] With asyncio subprocess, send_signal() and the child process watcher will both call waitpid()

2021-03-21 Thread lincheney
New submission from lincheney : Under unix, when creating a asyncio subprocess, the child process watcher will call waitpid() to reap the child, but if you call send_signal() (or terminate() or kill() ) on the asyncio subprocess, this will also call waitpid(), causing exactly one of these to