[issue42096] zipfile.is_zipfile incorrectly identifying a gzipped file as a zip archive

2020-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: for what it's worth: false positives are always going to be possible in any such "magic" check as is_zipfile is. we don't check the start of the file because zip files are defined by their end of file central directory which contains length i

[issue35823] Use vfork() in subprocess on Linux

2020-10-24 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +21863 pull_request: https://github.com/python/cpython/pull/22945 ___ Python tracker <https://bugs.python.org/issue35

[issue35823] Use vfork() in subprocess on Linux

2020-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: regarding excluding the setsid() case: I was being conservative as I couldn't find a reference of what was and wasn't allowed after vfork. I found one thing suggesting that on macOS setsid() was not safe after vfork(). But that appeared to be a Darwin

[issue35823] Use vfork() in subprocess on Linux

2020-10-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 473db47747bb8bc986d88ad81799bcbd88153ac5 by Alexey Izbyshev in branch 'master': bpo-35823: subprocess: Fix handling of pthread_sigmask() errors (GH-22944) https://github.com/python/cpython/commit/473db47747bb8bc986d88ad81799bcbd88153ac5

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thank you for taking this on! I'm calling it fixed for now as the buildbots are looking happy with it. If issues with it arise we can address them. -- resolution: -> fixed stage: commit review -> resolved status: open -&g

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: > * To avoid repeating long parameter lists in several functions, we can move > them to a struct. The downside is that we'd need to convert child_exec() to > use that struct all over the place. I don't have a strong preference here. Agreed that

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: now waiting to see how happy all of the buildbots are... We currently have a `__linux__` check in the code deciding VFORK_USABLE. >From what I can tell, vfork probably also works on macOS (darwin). Lets let this run for a bit on Linux and it

[issue35823] Use vfork() in subprocess on Linux

2020-10-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 976da903a746a5455998e9ca45fbc4d3ad3479d8 by Alexey Izbyshev in branch 'master': bpo-35823: subprocess: Use vfork() instead of fork() on Linux when safe (GH-11671) https://github.com/python/cpython/commit

[issue42097] Python 3.7.9 logging/threading/fork hang

2020-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: If you use os.fork() or any of the multiprocessing start methods that call os.fork() with a process involving threads, this is expected behavior. os.fork() cannot be used in processes that have threads without potential for deadlock. Specifically, make

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 786addd9d07b6c712b8ea9ee06e1f9f41c1b67a1 by Gregory P. Smith in branch 'master': bpo-41586: Attempt to make the pipesize tests more robust. (GH-22839) https://github.com/python/cpython/commit/786addd9d07b6c712b8ea9ee06e1f9f41c1b67a1

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +21793 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/22839 ___ Python tracker <https://bugs.python.org/issu

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: this caused a variety of buildbot failures. investigating. -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/i

[issue38456] Reduce the time test_subprocess takes to complete.

2020-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - handy command to get that python -m test.regrtest -v test_subprocess | ts '.%s' then process that using whatever you want to compute deltas and sort. i fed the output of that into: ``` #!/usr/bin/python3 """Parse `python -m test.r

[issue38456] Reduce the time test_subprocess takes to complete.

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: the slowest tests on Linux today (with number of seconds prepended on my system that runs the suite serially in 34 seconds on a debug build): 3.01 test_check_output_stdout_arg (test.test_subprocess.ProcessTestCaseNoPoll) ... ok 3.01

[issue40380] OS-related test failures on Linux in Python 3.8.2

2020-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue1260171] subprocess: more general (non-buffering) communication

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: since the time this was filed, subprocess has evolved a lot and third party options for child process have appeared as well as modern things like: https://docs.python.org/3/library/asyncio-subprocess.html (stdlib) https://trio.readthedocs.io/en/stable

[issue27898] regexp performance degradation between 2.7.6 and 2.7.12

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: 2.7 is end of life. if you have regular expression performance issues with something in 3, please open a new issue. -- nosy: +gregory.p.smith resolution: -> wont fix stage: -> resolved status: pending -&g

[issue13501] Make libedit support more generic; port readline / libedit to FreeBSD

2020-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue13501> ___ ___ Python-bugs-list mailin

[issue40133] Provide additional matchers for unittest.mock

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: based on the reaction from those who own mock at this point, i'm going to close this. shipping more handy mock matchers with mock makes sense to me as they belong together. but i'm not willing to argue it if anyone thinks it'll be a maintenance burden

[issue36541] Make lib2to3 grammar better match Python, support the := walrus

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Parsing support for `f(**mapping)` support is indeed still missing. as lib2to3 is pending deprecation at this point, i'm not going to work on this. anyone is welcome to pick it up. modifying the lib2to3 grammar, and any related code, and adding a test

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Ruben! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed type: -> enhancement ___ Python tracker <https://bugs.python

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 23c0fb8edd16fe6d796df2853a5369fd783e05b7 by Ruben Vorderman in branch 'master': bpo-41586: Add pipesize parameter to subprocess & F_GETPIPE_SZ and F_SETPIPE_SZ to fcntl. (GH-21921) https://github.com/python/cpython/co

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: status: lib2to3 PendingDeprecationWarning shipped in 3.9. Since we don't have a specific release planned for the final deprecation, I'll leave this issue open while we figure that out. Once we do, we should promote this to a regular DeprecationWarning

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: gregory.p.smith -> stage: patch review -> ___ Python tracker <https://bugs.python.org/issue40360> ___ ___ Pyth

[issue40423] Optimization: use close_range(2) if available

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks Kyle! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38693] Use f-strings instead of str.format within importlib

2020-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: Status: Waiting until after the importlib.metadata and importlib.resources backports drop support for both Python 2.7 and 3.5 as keeping them in sync would be a pain for maintainers (per jaraco on our sprint importlib-any chat today

[issue38693] Use f-strings instead of str.format within importlib

2020-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue38693> ___ ___ Python-bugs-list m

[issue36179] _hashopenssl has reference leaks in OOM case

2020-10-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I assume a rolling hash is linear at best, even if you do add some skip ahead checks. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another potential algorithm to consider in large needle situations is a Rabin-Karp rolling hash string search. If used, it's the kind of algorithm that I'd probably bail out to an alternate method on if a run of Rabin-Karp started having a high percentage

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW I think your numbers look good, a small needle cut-off is likely a good idea. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41972] bytes.find consistently hangs in a particular scenario

2020-10-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue41972> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-12 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 64eb259cc1e42a5f74b5911a518d2c50daa8d50b by Kyle Evans in branch 'master': bpo-40422: Move _Py_*_SUPPRESS_IPH bits into _Py_closerange (GH-22672) https://github.com/python/cpython/commit/64eb259cc1e42a5f74b5911a518d2c50daa8d50b

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Just reuse this bpo issue. I'll mark the PRs as "skip news"; don't worry about a new news blurb entry as it's all tied to the original one. -- status: closed -> open ___ Python tracker <https:/

[issue38110] Use fdwalk() within os.closerange() impl if available

2020-10-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40423] Optimization: use close_range(2) if available

2020-10-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith ___ Python tracker <https://bugs.python.org/issue40423> ___ ___ Python-bugs-list mailing list Un

[issue40423] Optimization: use close_range(2) if available

2020-10-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: Ah, yeah ENOSYS is it. I had to do this trick in older subprocess versions for something else. Still visible here in the old 2.7 backport: https://github.com/google/python-subprocess32/blob/main/_posixsubprocess.c#L801

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue40422> ___ ___ Pyth

[issue40422] Light refactor: create a common _Py_closerange API

2020-10-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue40422> ___ ___ Python-

[issue40423] Optimization: use close_range(2) if available

2020-10-11 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/issue40423> ___ ___ Python-bugs-list mailin

[issue40423] Optimization: use close_range(2) if available

2020-10-11 Thread Gregory P. Smith
Gregory P. Smith added the comment: for reference, very recent Linux kernels appear to have gained a close_range syscall. http://lkml.iu.edu/hypermail/linux/kernel/2008.0/02649.html Your diff isn't quite sufficient as is. When depending on a syscall that has a function provided by libc

[issue34706] Signature.from_callable sometimes drops subclassing

2020-10-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38153] Normalize hashing algorithm names

2020-10-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: looks like it, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue7946] Convoy effect with I/O bound threads and New GIL

2020-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: It's a known issue and has been outlined very well and still comes up from time to time in real world applications, which tend to see this issue and Dave's presentation and just work around it in any way possible for their system and move on with life

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2020-09-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: backport needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue9146> ___ ___

[issue37408] [DOC] Precise that Tarfile "format" argument only concerns writing.

2020-09-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: backport needed -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue19081] zipimport behaves badly when the zip file changes while the process is running

2020-09-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: On POSIX systems, keeping the file open means you will keep a handle to the original file in the case where something moves a new file into it's place (as is normal during software package updates) or otherwise unlinks the original. That is the situation

[issue29988] with statements are not ensuring that __exit__ is called if __enter__ succeeds

2020-09-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue29988> ___ ___ Python-bugs-list mailin

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: The gps-* bots have been updated. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue41642> ___ ___

[issue6721] Locks in the standard library should be sanitized on fork

2020-08-29 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -21110 ___ Python tracker <https://bugs.python.org/issue6721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36533] logging regression with threading + fork are mixed in 3.7.1rc2 (deadlock potential)

2020-08-29 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -2 ___ Python tracker <https://bugs.python.org/issue36533> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4356] Add "key" argument to "bisect" module functions

2020-08-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailin

[issue41586] Allow to set pipe size on subprocess.Popen.

2020-08-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue41586> ___ ___ Python-

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, no PEP is needed for things like this. it'd just be an alternative library implementing the core of the zlib and/or gzip modules behind the scenes. normally this kind of thing would be done using a check for the availability of the library

[issue41566] Include much faster DEFLATE implementations in Python's gzip and zlib libraries. (isa-l)

2020-08-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: -21037 ___ Python tracker <https://bugs.python.org/issue41566> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2020-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: While this is present in 3.7 (and earlier?), 3.7 is EOL - security fix only stage. the 3.8 and 3.9 PRs should automerge after CI finishes. please reopen the issue or ping me on those PRs if they somehow fail to do so. -- resolution: -> fi

[issue31122] SSLContext.wrap_socket() throws OSError with errno == 0

2020-08-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! fyi for confirmation incase anyone doubted: >>> issubclass(ssl.SSLEOFError, OSError) True So from a code point of view, anything already catching the error still catches the error. 100% bugfix. -- assignee: christi

[issue41406] subprocess: Calling Popen.communicate() after Popen.stdout.read() returns an empty string

2020-08-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: A workaround should be pass bufsize=0. There might be performance consequences. That depends on your read patterns and child process. If this is to be supported and fixed, the selectors used in POpen._communicate on the POSIX side presumably don't

[issue41355] os.link(..., follow_symlinks=False) without linkat(3)

2020-07-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the analysis Eryk! I think you are right, changing the default to match the behavior that people have actually been experiencing on `os.link(src, dst)` makes sense. Possible suggestion: We can go one step further if anyone believes

[issue41310] micro-optimization: increase our float parsing speed by Nx

2020-07-15 Thread Gregory P. Smith
New submission from Gregory P. Smith : See https://lemire.me/blog/2020/03/10/fast-float-parsing-in-practice/ for inspiration and a reference (possibly a library to use, but if not the techniques still apply). Primarily usable when creating the float objects from the string data as is common

[issue41293] fix confusing example in hashlib docs

2020-07-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: I probably I wrote these docs (a long time ago). The examples are being used to demonstrate different uses of the APIs including calling update multiple times, different algorithms, a binary digest and a hex digest. They weren't mean to show

[issue38980] Compile libpython with -fno-semantic-interposition

2020-07-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: Yes this should become part of --with-optimizations when building on a platform using a compiler that (a) supports it and (b) where it matters. If this is only relevant on --enable-shared builds (not the default), i'd assume also make it conditional

[issue38980] Compile libpython with -fno-semantic-interposition

2020-07-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: and to echo others: Do not worry about LD_PRELOAD users trying to override internals. That is not a supported use case. It is always a hack. anyone using it knows this. -- ___ Python tracker <ht

[issue41151] Support for new Windows pseudoterminals in the subprocess module

2020-06-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +steve.dower ___ Python tracker <https://bugs.python.org/issue41151> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35823] Use vfork() in subprocess on Linux

2020-06-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: No objections, it would be great to see this finished up and land. I've encountered a minority of users who are using a wrapped vfork-based C/C++ library for process spawning as fork+exec isn't fast enough for them

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: The 3.7 PR is up to the release manager to decide on, it probably isn't worth merging there as this i not security related. thanks for the fix Serhiy! -- nosy: +gregory.p.smith ___ Python tracker <ht

[issue41058] pdb reads source files using the locale encoding

2020-06-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41067] Haiku build fix - posix module

2020-06-21 Thread Gregory P. Smith
New submission from Gregory P. Smith : This type of change might make more sense to integrate into configure.ac and pyconfig.h.in. (does haiku use autoconf?) But even if not, lets not scatter haiku ifdef HAIKU references all over the codebase. Such ifdef's to redefine things should

[issue41059] Large number of Coverity reports for parser.c

2020-06-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +christian.heimes ___ Python tracker <https://bugs.python.org/issue41059> ___ ___ Python-bugs-list mailing list Unsub

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +20187 pull_request: https://github.com/python/cpython/pull/21013 ___ Python tracker <https://bugs.python.org/issue41

[issue41059] Large number of Coverity reports for parser.c

2020-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: +Interpreter Core ___ Python tracker <https://bugs.python.org/issue41059> ___ ___ Python-bugs-list mailing list Unsub

[issue41059] Large number of Coverity reports for parser.c

2020-06-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : Here's an example: *** CID 1464688: Control flow issues (DEADCODE) /Parser/parser.c: 24243 in _tmp_147_rule() 24237 && 24238 (z = disjunction_rule(p)) // disjunction 24239 ) 24240

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: those were the three in the email (20 of 106), i need to figure out how to login to coverity again to see the rest. -- ___ Python tracker <https://bugs.python.org/issue41

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +20185 pull_request: https://github.com/python/cpython/pull/21011 ___ Python tracker <https://bugs.python.org/issue41

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +20183 pull_request: https://github.com/python/cpython/pull/21009 ___ Python tracker <https://bugs.python.org/issue41

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +20181 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/21007 ___ Python tracker <https://bugs.python.org/issu

[issue41056] minor NULL pointer and sign issues reported by Coverity

2020-06-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : *** CID 1464693: Null pointer dereferences (REVERSE_INULL) /Modules/_zoneinfo.c: 1625 in parse_abbr() 1619 ptr++; 1620

[issue40133] Provide additional matchers for unittest.mock

2020-06-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I suggest waiting to see what I come up with as a proposal for what part(s) of this makes sense in the stdlib and why. I've closed the PR. Nothing is going to be added to mock without your agreement. This issue is not a high priority for me, but leaving

[issue37193] Memory leak while running TCP/UDPServer with socketserver.ThreadingMixIn

2020-06-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue37193> ___ ___ Python-bugs-list m

[issue40955] subprocess_fork_exec leaks memory when extra_groups are supplied

2020-06-12 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: subprocess_fork_exec leaks memory -> subprocess_fork_exec leaks memory when extra_groups are supplied ___ Python tracker <https://bugs.python.org/issu

[issue35823] Use vfork() in subprocess on Linux

2020-06-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue35823> ___ ___ Python-bugs-list mailin

[issue25782] CPython hangs on error __context__ set to the error itself

2020-05-30 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: -gregory.p.smith ___ Python tracker <https://bugs.python.org/issue25782> ___ ___ Python-bugs-list mailing list Unsub

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect the best decision to be to get rid of tempfile.tempdir entirely. That would need be its own issue with a deprecation period involved. A process global that alters behavior of all calls into a module that don't explicitly opt-out is a bad API

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'd feel fine doing that for 3.9 given 3.9.0 is only in beta and this changes no public APIs. For 3.8 and 3.7 i wouldn't. Be sure to update the versionchanged in the docs if you choose to do it for 3.9

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: We consider it closer to new feature as it changes existing behavior in a way that people cannot _depend_ on being present in older Python releases as it'd only appear in a bugfix release, so most people could never write code depending on it while

[issue40791] hmac.compare_digest could try harder to be constant-time.

2020-05-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: Christian - Devin could likely use some help with the build/ifdef plumbing required for (2) to use CRYPTO_memcmp from Modules/_operator.c when OpenSSL is available. -- assignee: -> christian.heimes ___ Pyt

[issue40133] Provide additional matchers for unittest.mock

2020-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I disagree. Many of these do belong in the stdlib and we don't need a python-ideas bike shedding 300 message thread about something so trivial. We've been using these internally at Google for years. Its on my plate to identify which ones to accept

[issue40701] tempfile mixes str and bytes in an inconsistent manner

2020-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Could you please turn that into a Github PR? -- ___ Python tracker <https://bugs.python.org/issue40701> ___ ___ Python-bug

[issue40746] test_gdb failing on Raspbian on 3.9, regression from 3.8

2020-05-23 Thread Gregory P. Smith
New submission from Gregory P. Smith : https://buildbot.python.org/all/#/builders/727 test_tuples (test.test_gdb.PrettyPrintTests) Verify the pretty-printing of tuples ... ok test_bt (test.test_gdb.PyBtTests) Verify that the "py-bt" command works ... FAIL Stderr: Python Excepti

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 6a5d3ff67644af42b1a781be2eacb2e82913441c by Gregory P. Smith in branch 'master': bpo-40636: Clarify the zip built-in docstring. (GH-20118) https://github.com/python/cpython/commit/6a5d3ff67644af42b1a781be2eacb2e82913441c

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
New submission from Gregory P. Smith : PEP 618 https://www.python.org/dev/peps/pep-0618 discussions are still on going. This issue is being filed to track an implementation, assuming the PEP is accepted and one is decided upon. I'm filing it now, as I can at least use the issue

[issue40636] Provide a strict form of zip (PEP-618) requiring same length inputs

2020-05-15 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +19422 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20118 ___ Python tracker <https://bugs.python.org/issu

[issue39946] Remove _PyThreadState_GetFrame

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! We use this function internally in some VM traceback grabbing code but the best solution looks to just be for us to adopt the patch to 3.9 on our interpreter until we're running on 3.9. -- nosy: +gregory.p.smith

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-05-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 18f1c60a1625d341a905c7e07367c32c08f222df by Miro HronĨok in branch 'master': bpo-40360: Add a What's New entry for lib2to3 pending deprecation (GH-19898) https://github.com/python/cpython/commit/18f1c60a1625d341a905c7e07367c32c08f222df

[issue40482] _hashlib: register Python names as OpenSSL aliases

2020-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Adding aliases in openssl is presumably process global right? Is that wise given it'd mean other openssl using c/c++ code in the process would now see the same aliases and could behave differently when used with python vs without? On Sun, May 3, 2020, 3:55

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think what we're doing with the documentation update is fine. We can add a warning on stderr to the tool in 3.11. But I don't expect people will be using the tool _from_ the latest CPython 3.x by then. 2to3 is already included with Python 2.7

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 503de7149d03bdcc671dcbbb5b64f761bb192b4d by Carl Meyer in branch 'master': bpo-40360: Deprecate lib2to3 module in light of PEP 617 (GH-19663) https://github.com/python/cpython/commit/503de7149d03bdcc671dcbbb5b64f761bb192b4d

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-24 Thread Gregory P. Smith
Gregory P. Smith added the comment: Okay,the pending deprecation is in. Keeping open as a reminder to turn that into a real DeprecationWarning in 3.10 after the 3.9 branch is cut. We'll then want to track reminding us to remove it in 3.12

[issue40360] Deprecate lib2to3 (and 2to3) for future removal

2020-04-21 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +18969 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/19645 ___ Python tracker <https://bugs.python.org/issu

<    2   3   4   5   6   7   8   9   10   11   >