[issue31370] Remove support for threads-less builds

2021-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: https://web.dev/webassembly-threads/ suggests otherwise. -- ___ Python tracker <https://bugs.python.org/issue31370> ___ ___

[issue44938] Expose PyErr_ChainExceptions in the stable API

2021-12-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: related: https://www.python.org/dev/peps/pep-0490/ (rejected pep to auto-chain from C API calls) I don't come across it often, but I did just review some code at work today where the chain might have been nice (though not a big deal). -- nosy

[issue38884] __import__ is not thread-safe on Python 3

2021-12-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue38884> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22910] test_pydoc test_synopsis_sourceless is a flaky test

2021-12-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45829] Remove C stack use by specializing BINARY_SUBSCR, STORE_SUBSCR, LOAD_ATTR, and STORE_ATTR

2021-12-06 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue45829> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45256] Remove the usage of the C stack in Python to Python calls

2021-12-06 Thread pmp-p
Change by pmp-p : -- nosy: +pmpp ___ Python tracker <https://bugs.python.org/issue45256> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue45695] Out-of-tree builds are not tested.

2021-12-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: Nice trick with that RO bind mount. tests... yes we do have some writable source tree messes in there to be dealt with. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-27 Thread Gregory P. Smith
Gregory P. Smith added the comment: General consensus: There isn't a common need for this. -- nosy: +gregory.p.smith resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks malin! -- resolution: -> fixed stage: patch review -> commit review status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 86c1265cdc64030c8921e0da5fcae2ac64299c26 by Ma Lin in branch '3.9': [3.9] bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29588) https://github.com/python/cpython/commit/86c1265cdc64030c8921e0da5fcae2ac64299c26

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 7edb6270a78c695e4c2ae2432797dc18105374fc by Ma Lin in branch 'main': bpo-41735: Fix thread lock in zlib.Decompress.flush() may go wrong (GH-29587) https://github.com/python/cpython/commit/7edb6270a78c695e4c2ae2432797dc18105374fc

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-11-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: A new `intermediate_mode=` kwarg can't _default_ to `mode=` as that would flip flop the API's default behavior again and no doubt disrupt someone elses 3.7-3.10 authored code depending on it. :( Regardless I do somewhat like `intermediate_mode=` more than

[issue34592] cdll.LoadLibrary allows None as an argument

2021-11-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: We do need to document this in ctypes.rst. Quite a bit of code depends on ctypes.CDLL(None) and similar to get at symbols linked into the interpreter or already dlopened into the process these days. It works on Linux; I'm assuming it likely does

[issue41735] Thread locks in zlib module may go wrong in rare case

2021-11-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith resolution: later -> stage: resolved -> patch review ___ Python tracker <https://bugs.python.or

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-11-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: clarification after poking around: s/all/a lot/ - YouTube used it to help their Python 3 migration. Regardless, the env. var has been useful. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-11-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw, at work we modified our interpreter to treat PYTHONBYTESWARNING=1 or 2 as if -b or -bb were passed. All of our tests run by default with a PYTHONBYTESWARNING=2 in their environment. -- nosy: +gregory.p.smith

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: Joshua pointed out that https://bugs.python.org/issue26973 appears to cover this. we rejected the idea of changing it at the time. it'd still be nice. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45780] dict. keys view behaviour diverges from set()

2021-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: dict. keys view behavious diverges from set() -> dict. keys view behaviour diverges from set() ___ Python tracker <https://bugs.python.org/issu

[issue45780] dict. keys view behavious diverges from set()

2021-11-10 Thread Gregory P. Smith
New submission from Gregory P. Smith : Python 3.9.7 (default, Sep 24 2021, 09:43:00) [GCC 10.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> dict(a=3,b=5).keys() dict_keys(['a', 'b']) >>> dict(

[issue45780] dict. keys view behavious diverges from set()

2021-11-10 Thread Gregory P. Smith
Change by Gregory P. Smith : -- components: Interpreter Core nosy: gregory.p.smith priority: normal severity: normal stage: needs patch status: open title: dict. keys view behavious diverges from set() type: behavior versions: Python 3.11 ___ Python

[issue45695] Out-of-tree builds are not tested.

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

[issue45695] Out-of-tree builds are not tested.

2021-11-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: I always do out of tree builds _(I find people who build anything in tree to be very weird - it makes a mess)_. I intend to look into making sure a Linux buildbot runs this way but don't let that stop anyone else from doing so

[issue42367] Restore os.makedirs ability to apply mode to all directories created

2021-10-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.11 -Python 3.10 ___ Python tracker <https://bugs.python.org/issue42367> ___ ___ Python-bugs-list mailin

[issue11477] Incorrect operand precedence when implementing sequences in C

2021-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: Given that a lot of code is presumably relying on this (see the notes from 2015)... I wouldn't be surprised if this turns into a wart we document but not actually fix. :/ Or a conditional behavior we control via a `from __future__ import

[issue33439] python-config.py should be part of the stdlib

2021-10-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: `Misc/python-config.in` ultimately becomes a Python script that prints things to stdout. It isn't written to be a module as is. Any work to make it one is effectively writing entirely new code to do what it does. To keep a single source of truth

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: i'm considering this fixed based on my testing. we still lack buildbots using out of tree setup. i'll ponder that. But this issue need not track that infrastructure. -- assignee: -> eric.snow resolution: -> fixed stage: patch

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68 by Dennis Sweeney in branch 'main': bpo-30570: Use Py_EnterRecursiveCall() in issubclass() (GH-29048) https://github.com/python/cpython/commit/423fa1c1817abfa8c3d1bc308ddbbd8f28b69d68

[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 <https://bugs.python.or

[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

[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

[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 <https://bugs.python.org/issue43

[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: macOS often has an unreasonably low default max number of file descriptors. This is easy to raise from user code, it's a soft limit. https://github.com/python/cpython/pull/29127 is out to try that from regrtest itself. -- assignee

[issue31000] Test failure in resource module on ZFS

2021-10-21 Thread Gregory P. Smith
Gregory P. Smith added the comment: this is probably somewhat of an edge case. filesystems are presumably free to have their own concepts of granularity on size limit enforcement. zfs may become more popular in future ubuntu versions as they're offering it as a supported primary whole

[issue15317] Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle

2021-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: workaround: don't run make as root. run configure & make in a user account and only run your final make install as root after that. (sudo make install or whatnot) 2to3 and lib2to3 are deprecated so this won't be getting fixed (though it's

[issue36313] error: [Errno 13] Permission denied: '/usr/local/lib/python3.7/lib2to3/Grammar3.7.2.final.0.pickle'

2021-10-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Source installation sets incorrect permissions for Grammar3.2.3.final.0.pickle ___ Python tracker <https://

[issue42092] test_host_resolution_bad_address does not always fail as expected

2021-10-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Rule #1 for home users: Never use your ISPs DNS. Always configure a reputable one in your router. If you can't control your router, configure your computer to ignore the router's DNS. Classic best in breed non-ISP servers exist: 8.8.8.8 (google

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

2021-10-19 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +27331 pull_request: https://github.com/python/cpython/pull/29064 ___ Python tracker <https://bugs.python.org/issue40

[issue45493] str() and repr() of enum different in Python 3.11 from Python <= 3.10

2021-10-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: We just need https://github.com/python/cpython/pull/27010 to be done on main to roll it back. str and repr changes are quite painful to foist upon users existing code and tests. -- nosy: +gregory.p.smith

[issue21736] Add __file__ attribute to frozen modules

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: That appears to have caused https://bugs.python.org/issue45506 -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue21

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: git bisect on Linux yielded this culprit change: ``` 79cf20e48d0b5d69d9fac2a0204b5ac2c366066a is the first bad commit commit 79cf20e48d0b5d69d9fac2a0204b5ac2c366066a Author: Eric Snow Date: Thu Oct 14 15:32:18 2021 -0600 bpo-21736: Set __file__

[issue45020] Freeze all modules imported during startup.

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: could changes related to this be the cause of https://bugs.python.org/issue45506 ? out of tree builds in main usually cannot pass key tests today. they often hang or blow up with strange exceptions. -- nosy: +gregory.p.smith

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +eric.snow ___ Python tracker <https://bugs.python.org/issue45506> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: further down in the tracebacks in that situation: ``` File "/Users/greg/oss/python/upstream/Lib/importlib/_bootstrap.py", line 887, in _fix_up_module assert module.__file__ == __file__, (module.__file__

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: for easy pasting: git clone https://github.com/python/cpython.git upstream && \ mkdir b-u && cd b-u && \ ../upstream/configure --with-pydebug && make -j3 && \ ./python -m test.regrtest test_importlib [change p

[issue45506] Out of source tree builds failing on main - test_importlib others unreliable

2021-10-18 Thread Gregory P. Smith
New submission from Gregory P. Smith : The behavior is odd, I don't really know how to characterize it other than something serious has gone wrong. Memory corruption thus differing failures perhaps? it seems like maybe a race condition? on the main branch (i cannot reproduce this on 3.10

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +27291 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29017 ___ Python tracker <https://bugs.python.org/issu

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: Python metaprogramming allows type-like things to be bases, not just things that pass PyType_Check(). so being that strict isn't going to work. The other classic way to prevent this is to track what you're recursing on to avoid a loop. i.e. Keeping

[issue30570] issubclass segfaults on objects with weird __getattr__

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

[issue30570] issubclass segfaults on objects with weird __getattr__

2021-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: This is a stack overflow in Objects/abstract.c because we infinitely recurse within abstract_issubclass(). We should probably do some validity checking on the bases tuple that abstract_get_bases returns (ideally within abstract_get_bases?). The tuple

[issue39423] Process finished with exit code -1073741819 (0xC0000005) when trying to access data from a pickled file

2021-10-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: As your problem involves numpy and PyQt, both of which are very complicated third party extension module code, chances are there is a bug within those that is leading to memory corruption. -- nosy: +gregory.p.smith resolution: -> third pa

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Gregory P. Smith
Change by Gregory P. Smith : -- priority: normal -> high versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue45494> ___ ___ Python-bugs-lis

[issue45494] [fuzzer] Parser null deref with continuation characters and generator parenthesis error

2021-10-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: I confirmed that 3.9 does NOT seem to have the problem: Python 3.9.5 (default, May 19 2021, 11:32:47) [GCC 9.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> x = r''

[issue45353] sys.modules: dictionary changed size during iteration

2021-10-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: While arguably unnecessary as it is documented as a dictionary and this is a normal Python dict behavior, it is a global dict and it can be modified at times that are unintuitive to users of all experience levels. A note in the documentation makes sense

[issue45353] sys.modules: dictionary changed size during iteration

2021-10-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 3d1ca867ed0e3ae343166806f8ddd9739e568ab4 by Gregory P. Smith in branch 'main': bpo-45353: Remind sys.modules users to copy when iterating. (GH-28842) https://github.com/python/cpython/commit/3d1ca867ed0e3ae343166806f8ddd9739e568ab4

[issue45353] sys.modules: dictionary changed size during iteration

2021-10-09 Thread Gregory P. Smith
Change by Gregory P. Smith : -- keywords: +patch pull_requests: +27154 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/28842 ___ Python tracker <https://bugs.python.org/issu

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Marking release blocker as a crash is bad for a function that is documented as safe for use on untrusted input so long as it isn't large enough to overflow the stack. https://docs.python.org/3/library/ast.html#ast.literal_eval -- priority: normal

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: (unable to reproduce on 3.9) -- nosy: +gregory.p.smith versions: -Python 3.9 ___ Python tracker <https://bugs.python.org/issue45

[issue45408] [fuzzer] Weird input with continuation and newlines causes null deref in parser

2021-10-07 Thread Gregory P. Smith
Change by Gregory P. Smith : -- versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45408> ___ ___ Python-bugs-list mailin

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

2021-10-04 Thread Gregory P. Smith
Gregory P. Smith added the comment: I left some comments on the PR. We can at least make it detect musl libc and improve its default behavior there. FWIW CPython's recursionlimit and the C stack have long been a thorn in the side of many things. Even when Python's thread_pthread.h

[issue32307] Bad assumption on thread stack size makes python crash with musl libc

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

[issue38435] Start the deprecation cycle for subprocess preexec_fn

2021-10-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: Another use case someone had for preexec_fn popped up today: prctl(PR_SET_PDEATHSIG, SIGTERM) -- ___ Python tracker <https://bugs.python.org/issue38

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-25 Thread Gregory P. Smith
Gregory P. Smith added the comment: **If** we add a callback API for this, I agree with vstinner's https://bugs.python.org/issue42969#msg402558 commentary on the other callback APIs. We can do this one similarly and keep it simple. - Why? It's the initial simplicity that provides those

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: A PR adding a `Py_SetThreadExitCallback(func)` API guaranteeing the callback is called before `pthread_exit()` would allow anyone wanting to deal with their deadlocks to register `abort()` or `while(1) pause();` as their exit callback. I'd be okay

[issue42969] pthread_exit & PyThread_exit_thread from PyEval_RestoreThread etc. are harmful

2021-09-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: I believe jbms is right that pausing the threads is the only right thing to do when they see tstate_must_exit. The PR is likely correct. -- versions: +Python 3.11, Python 3.9 ___ Python tracker <ht

[issue45021] concurrent.futures race condition

2021-09-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: I expect the unittest for this might causes hangs on some platforms in the future as it mixes fork and threads which is a posix-nono. If so, we should just disable it on all but specific known-to-pass build configs as a future PR. 3.9 and 3.10 PRs

[issue45021] concurrent.futures race condition

2021-09-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0bfa1106acfcddc03590e1f5d6789dbad3affe70 by nullptr in branch 'main': bpo-45021: Fix a hang in forked children (GH-28007) https://github.com/python/cpython/commit/0bfa1106acfcddc03590e1f5d6789dbad3affe70 -- nosy: +gregory.p.smith

[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og: Cannot access memory at address 0xfffffedc

2021-09-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: although it looks like the 3.10 failure you linked to ran after that. so... the upgrade may not explain things. -- ___ Python tracker <https://bugs.python.org/issue40

[issue40746] test_gdb failing on 32-bit armv7l when built with GCC -Og: Cannot access memory at address 0xfffffedc

2021-09-15 Thread Gregory P. Smith
Gregory P. Smith added the comment: fwiw I updated my arm raspbian buildbot from raspbian Buster to raspbian Bullseye in the last few days. That could also explain the difference. More recent toolchain versions. -- ___ Python tracker <ht

[issue45196] macOS. ./configure --with-address-sanitizer; make test; cause test case crash.

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

[issue45196] macOS. ./configure --with-address-sanitizer; make test; cause test case crash.

2021-09-14 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue45196> ___ _

[issue45196] macOS. ./configure --with-address-sanitizer; make test; cause test case crash.

2021-09-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b668cdfa09e9bdfcfddaadd23dbd455d5f667383 by junyixie in branch 'main': bpo-45196: prevent unittest crash on address sanitizer builds (GH-28331) https://github.com/python/cpython/commit/b668cdfa09e9bdfcfddaadd23dbd455d5f667383

[issue45145] Case of headers in urllib.request.Request

2021-09-08 Thread E . M . P . Höller
New submission from E. M. P. Höller : urllib.request.Request internally .capitalize()s header names before adding them, as can be seen here: https://github.com/python/cpython/blob/3.9/Lib/urllib/request.py#L399 Since HTTP headers are case-insensitive, but dicts are not, this ensures

[issue44091] traceback & inspect modules should verify that the .py source file matches the one that the running process is using

2021-09-02 Thread Gregory P. Smith
Gregory P. Smith added the comment: FWIW I don't remember the context that led me to just file the issue this year. The most serious frequent instances of this I remember happening were all many years ago when a less capable software distribution mechanism was in use. A scenario where I

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

2021-09-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think we just forgot to make the change in time. 3.11 is fine. We're not _maintaining_ lib2to3 or describing it as fit for any modern purpose regardless. It's just code that'll sit around in the back of the 3.10 stdlib but not be able to parse

[issue38435] Start the deprecation cycle for subprocess preexec_fn

2021-08-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: A worthwhile general suggestion on a new path forward for the mess of things between (v)fork+exec from Victor is over in https://bugs.python.org/issue42736#msg383869 TL;DR creating a subprocess.Preexec() recording object with specific interfaces

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 245f1f260577a005fd631144b4377febef0b47ed by Gregory P. Smith in branch 'main': bpo-41818: ++ termios versionadded markers. (GH-27987) https://github.com/python/cpython/commit/245f1f260577a005fd631144b4377febef0b47ed

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Change by Gregory P. Smith : -- pull_requests: +26434 pull_request: https://github.com/python/cpython/pull/27987 ___ Python tracker <https://bugs.python.org/issue41

[issue41818] Lib/pty.py major revision

2021-08-26 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset ae224bb566301d3602e9b090e37c1dcf5a48c914 by Soumendra Ganguly in branch 'main': bpo-41818: Add termios.tcgetwinsize(), termios.tcsetwinsize(). (GH-23686) https://github.com/python/cpython/commit/ae224bb566301d3602e9b090e37c1dcf5a48c914

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 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

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset fa6304a5225787054067bb56089632146d288b20 by Idan Moral in branch 'main': bpo-44690: Adopt binacii.a2b_base64's strict mode in base64.b64decode (GH-27272) https://github.com/python/cpython/commit/fa6304a5225787054067bb56089632146d288b20

[issue44690] Adopt binacii.a2b_base64's strict mode in base64.b64decode

2021-08-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not worried about the regex vs binascii C implementation performance at all. -- nosy: +gregory.p.smith ___ Python tracker <https://bugs.python.org/issue44

[issue44173] Stored (uncompressed) ZipExtFile in zipfile can be seekable at lower cost

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

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> commit review status: open -> closed versions: -Python 3.9 ___ Python tracker <https://bugs.python.or

[issue44935] Solaris: enable posix_spawn in subprocess

2021-08-17 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset b1930bf75f276cd7ca08c4455298128d89adf7d1 by Jakub Kulík in branch 'main': bpo-44935: enable posix_spawn() on Solaris (GH-27795) https://github.com/python/cpython/commit/b1930bf75f276cd7ca08c4455298128d89adf7d1 -- nosy

[issue36050] Why does http.client.HTTPResponse._safe_read use MAXAMOUNT

2021-07-28 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: fixed -> stage: resolved -> needs patch ___ Python tracker <https://bugs.python.org/issue36050> ___ ___ Pyth

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 6564656495d456a1bcc1aaa06abfc696209f37b2 by Jakub Kulík in branch 'main': bpo-43219: skip Solaris in the test as well (GH-27257) https://github.com/python/cpython/commit/6564656495d456a1bcc1aaa06abfc696209f37b2

[issue44678] Seperate error message for discontinuous padding in binascii.a2b_base64 strict mode

2021-07-19 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 366fcbac18e3adc41e3901580dbedb6a91e41a10 by Idan Moral in branch 'main': bpo-44678: Separate error message for discontinuous padding in binascii.a2b_base64 strict mode (GH-27249) https://github.com/python/cpython/commit

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: I've merged Idan's PR adding a strict_mode parameter to a2b_base64. It defaults to False for backwards compatibility. >From a security perspective, it'd be _ideal_ if this were True. But I expect >doing that would break a bunch of existin

[issue43086] Excess data in not handled properly in binascii.a2b_base64()

2021-07-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 35b98e38b6edd63153fc8e092f94cb20725dacc1 by Idan Moral in branch 'main': bpo-43086: Add handling for out-of-spec data in a2b_base64 (GH-24402) https://github.com/python/cpython/commit/35b98e38b6edd63153fc8e092f94cb20725dacc1

[issue44644] Implement “Happy Eyeballs” algorithim (RFC 8503) in socket.create_connection()

2021-07-15 Thread origin400-p
New submission from origin400-p : While support for the so-called “Happy Eyeballs” algorithim described in RFC 8503 was implemented for asyncio in Issue #33530, socket's create_connection function remains left without it causing suboptimal performance in broken dual-stack environments

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Mark, that's a good real world experience example from the IPython side. -- ___ Python tracker <https://bugs.python.org/issue44

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> patch review type: behavior -> enhancement ___ Python tracker <https://bugs.python.org/issue44603> ___ ___ Pyth

[issue44603] REPL: exit when the user types exit instead of asking them to explicitly type exit()

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Agreed with Paul, this is a good idea UX wise for interactive interpreters. IPython proved that well over a decade ago. Thanks for the historical links! -- nosy: +gregory.p.smith ___ Python tracker <ht

[issue44630] Assertion failure in csv module

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks! Things like this both internal to CPython and in CPython API misuse in all sorts of third party extension modules are why i think we as a project really should to encourage more CI systems to have -UNDEBUG builds of CPython available and in use

[issue44630] Assertion failure in csv module

2021-07-13 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 0093876328afa330224c9d887c18dee0b3117852 by T. Wouters in branch 'main': bpo-44630: Fix assertion errors in csv module (GH-27127) https://github.com/python/cpython/commit/0093876328afa330224c9d887c18dee0b3117852

Roundup issue tracker 2.1.0 (20th anniversary edition) released

2021-07-12 Thread John P. Rouillard
racker.org/ Mailing lists - the place to ask questions: https://sourceforge.net/p/roundup/mailman/ About Roundup = Roundup is a simple-to-use and install issue-tracking system with command-line, web and e-mail interfaces. It is based on the winning design from Ka-Ping Yee in th

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

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

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 248173cc0483a9ad9261353302f1234cf9eb2ebe by andrei kulakov in branch 'main': bpo-43219: shutil.copyfile, raise a less confusing exception instead of IsADirectoryError (GH-27049) https://github.com/python/cpython/commit

[issue43219] shutil.copy raises IsADirectoryError when the directory does not actually exist

2021-07-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.11 -Python 3.8 ___ Python tracker <https://bugs.python.org/issu

[issue43895] Unnecessary Cache of Shared Object Handles

2021-07-07 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Ian! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 3.10 ___ Python tracker <https://bugs.python.or

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