Gregory P. Smith

Results 155 comments of Gregory P. Smith

(A) One could ask for this as a more general feature of namedtuple... https://github.com/python/cpython/compare/main...gpshead:cpython:namedtuple-with_replace_method?expand=1 would do that. But _that_ begs the question why `._source` and `._field_defaults` don't get the same...

SC discussion status: internal discussion ongoing - no updates to share yet.

We're going to do it as an after election thing - I just posted the details https://discuss.python.org/t/regularly-disabling-unused-commit-access-to-the-cpython-repo/105010 We can leave this issue open until after the first sweep has been...

We just patched our own vendored copy of poetry for this with: `core/spdx/helpers.py`: ```diff - licenses_file = Path(__file__).parent / "data" / "licenses.json" + licenses_file = importlib.resources.files("poetry.core.spdx").joinpath("data/licenses.json") ``` `core/json/__init__.py`: ```diff def...

(those patches appear to belong with the poetry-core repo rather than this one), also it appears the files APIs were introduced in 3.9 (also as noted in sinoroc's comment). An...

someone who understands the needs of the project should take over my PR.

> we have no way of knowing how many in-house private packages exist which don't use the standard naming This is what a warning can be used to find out?...

Let me go strace on my Raspbian bot to see what it says. This type of test is also okay to just restrict to a known set of platforms if...

Okay, I changed the new `assertEqual(count_similarname("fstat"), 1)` lines `assertEqual(count_similar("fstat"), 1, msg=f"set(syscalls)=")` to get useful info in the error message. Here's a couple examples: ``` ====================================================================== FAIL: test_syscalls_read (test.test_fileio.PyAutoFileTests.test_syscalls_read) (name='pathlib read_bytes')...

`statx` is indeed a valid Linux system call that could be used for the purpose.