[issue36274] http.client cannot send non-ASCII request lines

2019-09-21 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +15899 pull_request: https://github.com/python/cpython/pull/16321 ___ Python tracker <https://bugs.python.org/issue36

[issue30458] [security][CVE-2019-9740][CVE-2019-9947] HTTP Header Injection (follow-up of CVE-2016-5699)

2019-09-21 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +15900 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/16321 ___ Python tracker <https://bugs.python.org/issu

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've added PR 16321 illustrating my proposed solution. This solution, while more invasive than Tim's more surgical solution, addresses the concerns brought about by this issue as well as those articulated originally in issue36274. I'm sligh

[issue36274] http.client cannot send non-ASCII request lines

2019-09-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: I should say, though, this issue is a long-standing regression from Python 3.0. Although intentional, the inability for a client to override the encoding of the request line does make it impossible without replacing all of .putrequest to override that

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: In https://github.com/cherrypy/cherrypy/pull/1807, I discovered that there is already a fairly straightforward means for a third-party package to override the putrequest character validation (just monkeypatch http.client._contains_disallowed_url_pchar_re

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-22 Thread Jason R. Coombs
Jason R. Coombs added the comment: Also, with the CherryPy approach, the Python 2.7 story is more complicated. I haven't yet addressed that in the CherryPy 17 maintenance branch (which supports Python 2.7). -- ___ Python tracker &

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16027 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16448 ___ Python tracker <https://bugs.python.org/issu

[issue36274] http.client cannot send non-ASCII request lines

2019-09-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16028 pull_request: https://github.com/python/cpython/pull/16448 ___ Python tracker <https://bugs.python.org/issue36

[issue36274] http.client cannot send non-ASCII request lines

2019-09-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 7774d7831e8809795c64ce27f7df52674581d298 by Jason R. Coombs in branch 'master': bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) https://github.com/python/cpyt

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 7774d7831e8809795c64ce27f7df52674581d298 by Jason R. Coombs in branch 'master': bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) https://github.com/python/cpyt

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16044 pull_request: https://github.com/python/cpython/pull/16461 ___ Python tracker <https://bugs.python.org/issue38

[issue36274] http.client cannot send non-ASCII request lines

2019-09-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16045 pull_request: https://github.com/python/cpython/pull/16461 ___ Python tracker <https://bugs.python.org/issue36

[issue36274] http.client cannot send non-ASCII request lines

2019-09-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16047 pull_request: https://github.com/python/cpython/pull/16462 ___ Python tracker <https://bugs.python.org/issue36

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-28 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16046 pull_request: https://github.com/python/cpython/pull/16462 ___ Python tracker <https://bugs.python.org/issue38

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 80dd66ac278ecbabbf843526e3a56f5031da9562 by Jason R. Coombs in branch '3.7': [3.7] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) (GH-16461) https://github.com/python/cpyt

[issue36274] http.client cannot send non-ASCII request lines

2019-09-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 80dd66ac278ecbabbf843526e3a56f5031da9562 by Jason R. Coombs in branch '3.7': [3.7] bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448) (GH-16461) https://github.com/python/cpyt

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: > Someone should look at how to do similar in 2.7 _if_ the project(s) that > complained about the problem rely on such behavior in their last 2.7 > compatible releases. Looking at the history, it seems that only two projects were mentioned, Che

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-29 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16059 pull_request: https://github.com/python/cpython/pull/16475 ___ Python tracker <https://bugs.python.org/issue38

[issue36274] http.client cannot send non-ASCII request lines

2019-09-29 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16060 pull_request: https://github.com/python/cpython/pull/16475 ___ Python tracker <https://bugs.python.org/issue36

[issue36274] http.client cannot send non-ASCII request lines

2019-09-29 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16062 pull_request: https://github.com/python/cpython/pull/16476 ___ Python tracker <https://bugs.python.org/issue36

[issue38216] Fix for issue30458 (HTTP Header Injection) prevents crafting invalid requests

2019-09-29 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +16061 pull_request: https://github.com/python/cpython/pull/16476 ___ Python tracker <https://bugs.python.org/issue38

[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

2019-10-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: I believe importlib/metadata/__init__ was moved to importlib.metadata. I’ll inspect the repo for correctness, but there may be another issue with the old files lingering. -- ___ Python tracker <ht

[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

2019-10-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've confirmed that the `metadata` directory doesn't exist in the repo. It also doesn't appear on my Python 3.8.0b4 installation on macOS: ``` cpython master $ ls /Library/Frameworks/Python.framework/Versions/3.8/lib/pyth

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-13 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset f917efccf8d5aa2b8315d2a832a520339e668187 by Jason R. Coombs in branch 'master': bpo-43428: Sync with importlib_metadata 3.7. (GH-24782) https://github.com/python/cpython/commit/f917efccf8d5aa2b8315d2a832a520

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-14 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +23618 pull_request: https://github.com/python/cpython/pull/24858 ___ Python tracker <https://bugs.python.org/issue43

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 35d5068928ab5485e5f28b60b1e33062bc2c46cc by Jason R. Coombs in branch 'master': bpo-43428: Improve documentation for importlib.metadata changes. (GH-24858) https://github.com/python/cpython/commit/35d5068928ab5485e5f28b60b1e330

[issue43428] Sync importlib_metadata enhancements through 3.7.

2021-03-15 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco nosy: +jaraco ___ Python tracker <https://bugs.python.org/issue43569> ___ ___ Python-bugs-list mai

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Interestingly, the pull request never alerted to any buildbot failures. Any idea how I can reproduce the issue locally? Is there a docker image that would likely replicate the environment in which the tests are failing

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Oh, "installed python". So maybe Python requires one register files in more than one place to add them to the installation. -- ___ Python tracker <https://bugs.python.o

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +23710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24952 ___ Python tracker <https://bugs.python.org/issu

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've submitted a PR and triggered build by buildbots, but I don't see that the indicated builder is building the PR. Shall I just submit and see what happens? Any other ideas how to verify the installed builder

[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. --

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

[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 -

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
New submission from Jason R. Coombs : As reported in https://github.com/python/importlib_resources/issues/210, the `as_file` function of importlib.resources is undocumented in CPython. -- messages: 389624 nosy: jaraco priority: normal severity: normal status: open title

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco components: +Documentation type: -> enhancement versions: +Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/i

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +23796 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25048 ___ Python tracker <https://bugs.python.org/issu

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset af50c84643ce21cfbdfdabbdfae6bd5e1368c542 by Jason R. Coombs in branch 'master': bpo-43644: Add docs for importlib.resources.as_file. (#25048) https://github.com/python/cpython/commit/af50c84643ce21cfbdfdabbdfae6bd

[issue43644] importlib.resources.as_file undocumented

2021-03-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37788] fix for bpo-36402 (threading._shutdown() race condition) causes reference leak

2021-03-29 Thread Jason R. Coombs
Jason R. Coombs added the comment: No. The issue remains open. -- stage: -> needs patch versions: -Python 3.7 ___ Python tracker <https://bugs.python.org/issu

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-08 Thread Jason R. Coombs
New submission from Jason R. Coombs : Incorporate importlib_metadata changes from 3.8 through 3.10: https://importlib-metadata.readthedocs.io/en/latest/history.html#v3-10-0 Two main changes: - Add mtime-based caching during distribution discovery. - Flagged use of dict result from

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-08 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24028 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25297 ___ Python tracker <https://bugs.python.org/issu

[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows

2021-04-11 Thread Jason R. Coombs
Jason R. Coombs added the comment: At least I and Ethan and Martin have expressed a desire for the default, preferred usage work well in a portable environment. Requiring `delete_on_close=False` violates that expectation. How about something like this instead: - Add an `delete_when=None

[issue37741] importlib.metadata docs not showing up in the module index

2021-04-14 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24147 pull_request: https://github.com/python/cpython/pull/25415 ___ Python tracker <https://bugs.python.org/issue37

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-15 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco ___ Python tracker <https://bugs.python.org/issue43856> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-16 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24177 pull_request: https://github.com/python/cpython/pull/25448 ___ Python tracker <https://bugs.python.org/issue43

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24217 pull_request: https://github.com/python/cpython/pull/25494 ___ Python tracker <https://bugs.python.org/issue43

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24218 pull_request: https://github.com/python/cpython/pull/25495 ___ Python tracker <https://bugs.python.org/issue43

[issue43856] Docs for importlib.metadata should mention Python version

2021-04-23 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43926] Clean metadata (importlib_metadata 4.0)

2021-04-23 Thread Jason R. Coombs
New submission from Jason R. Coombs : [importlib_metadata 4.0](https://importlib-metadata.readthedocs.io/en/latest/history.html#v4-0-0) introduced these important changes to the `metadata` function: ``PackageMetadata`` as returned by ``metadata()`` and ``Distribution.metadata()`` now

[issue43926] Clean metadata (importlib_metadata 4.0)

2021-04-23 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24284 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25565 ___ Python tracker <https://bugs.python.org/issu

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset c6ca368867bd68d44f333df840aa85d425a51410 by Jason R. Coombs in branch 'master': bpo-43780: Sync with importlib_metadata 3.10 (GH-25297) https://github.com/python/cpython/commit/c6ca368867bd68d44f333df840aa85

[issue43780] Sync importlib_metadata enhancements through 3.10.

2021-04-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2021-04-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> duplicate stage: patch review -> resolved status: open -> closed superseder: -> Using zipfile.Path with several files prematurely closes zip ___ Python tracker <https://bugs.python

[issue41350] Use of zipfile.Path causes attempt to write after ZipFile is closed

2021-04-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Andrei -- ___ Python tracker <https://bugs.python.org/issue41350> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43958] Importlib.metadata docs claim PackagePath is a Path subclass

2021-04-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks Paul! -- nosy: +jaraco resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29753] [Linux] ctypes packs bitfields Incorrectly

2021-04-30 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 37e0c7850de902179b28f1378fbbc38a5ed3628c by Jason R. Coombs in branch 'master': bpo-43926: Cleaner metadata with PEP 566 JSON support. (GH-25565) https://github.com/python/cpython/commit/37e0c7850de902179b28f1378fbbc3

[issue43926] Clean metadata (importlib_metadata 4.0)

2021-05-02 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44095] Add suffix property to zipfile.Path

2021-05-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: Sounds good to me. In general, it's easier to contribute first to https://github.com/jaraco/zipp and those changes can be readily merged into CPython. No worries, though. If these changes can be accepted here, I should be able to graft them onto j

[issue44095] Add suffix property to zipfile.Path

2021-05-14 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks for the excellent patch. I've created https://github.com/jaraco/zipp/issues/74 to track the backport of these changes. -- resolution: -> fixed stage: patch review -> resolved status: ope

[issue37741] importlib.metadata docs not showing up in the module index

2021-05-19 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset ab1c3d99f51188d1a6b5f7797294b056279f62e0 by Miss Islington (bot) in branch '3.9': bpo-37741: make importlib.metadata docs discoverable through a module directive. (GH-25415) (GH-25417) https://github.com/python/cpyt

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-05-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: I'd intended for the changes in 5.1 to make it into CPython, but I've missed the deadline, so I've backported the referenced commits to importlib_resources 5.0.5 in order to sync into CPython. -- version

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-05-21 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24890 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26284 ___ Python tracker <https://bugs.python.org/issu

[issue44137] importlib.resources.path raises RuntimeError when FileNotFoundError is raise in context manager

2021-05-21 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks for tracking this down, Filipe. Agreed it sounds like it's fixed in Python 3.10. It's unlikely the fix will be backported to Python 3.9. Instead, if this behavior affects your usage, consider using the `importlib_resources` backport,

[issue44162] importlib.resources.path no longer supports directories

2021-05-21 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> not a bug ___ Python tracker <https://bugs.python.org/issue44162> ___ ___ Python-bugs-list mailing list Un

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-23 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24912 pull_request: https://github.com/python/cpython/pull/26317 ___ Python tracker <https://bugs.python.org/issue44

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: I don't believe a `TraversableReader` protocol was intended. Instead, the referenced change introduced the `TraversableResources` ABC. There's a typo in the docs. I created PR 26317 instead to correct the mis

[issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: After reviewing the PR, I'm not convinced the Traversable methods need any specification about when to raise FileNotFoundError (or other exceptions). Let's flesh out what conditions demand prescribed

[issue44196] Document that importlib.abc.Traversable's methods should raise FileNotFoundError

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: Having a look at the `open` function (https://docs.python.org/3/library/functions.html#open), it does not define which exceptions might be thrown. Similarly for pathlib.Path.open (https://docs.python.org/3/library/pathlib.html#pathlib.Path.open) and

[issue44200] Recommend importlib.abc.Traversable users to implement __fspath__

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: The problem with the `__fspath__` protocol is that it assumes a file system. The `importlib.resources` and `Traversable` protocols are trying to provide a lower-level interface that doesn't assume a file system. Fortunately, there already exists a h

[issue44202] Add errors argument to importlib.abc.Traversable.read_text

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: It would be straightforward to add that parameter to `read_text` but I'm uncertain if it will be needed. Since a Traversable already provides an open method which _does_ explicitly pass through keyword arguments to the underlying opener, perhaps it

[issue44164] Document what are resources in importlib.resources

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've not previously seen a definition of resources. The original implementation of importlib_resources excluded 'directories' as resources and excluded support for resources being in subdirectories (only files in packages were allowed). No

[issue43643] importlib.readers.MultiplexedPath.name is not a property

2021-05-23 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44200] Recommend importlib.abc.Traversable users to implement __fspath__

2021-05-23 Thread Jason R. Coombs
Jason R. Coombs added the comment: > I think `as_file` should learn to behave like `path`, if `__fspath__` is > available, it will use that path. Oh, that's an interesting idea. And that's effectively what happens [here](https://github.com/python/importli

[issue44195] importlib.abc.TraversableReader is not implemented

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: > are people supposed to be implementing readers with just files(), or are they > always expected to inherit TraversableResources? A resource provider could potentially implement only the `files()` method (what I think you're calling `Traver

[issue42043] zipfile.Path should support inheritance

2021-05-24 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: The patch for this change has broken code that relied on the old behavior. For example: ``` import fileinput import bz2 import pathlib target = pathlib.Path('data.bz2') target.write_bytes(bz2.compress(b'Foo\nBar\nBiz')) inp = file

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-24 Thread Jason R. Coombs
Jason R. Coombs added the comment: A backport now exists (https://pypi.org/project/backports.hook_compressed) and addresses the issue (https://github.com/jaraco/cmdix/actions/runs/873404846). -- ___ Python tracker <https://bugs.python.

[issue5758] fileinput.hook_compressed returning bytes from gz file

2021-05-25 Thread Jason R. Coombs
Jason R. Coombs added the comment: I did consider and confirm that mode="rb" does also provide a uniform solution, but it also regresses the behavior of uncompressed inputs, making them bytes where they were text. This approach feels like the "Python 1" compatibility ap

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- components: Library (Lib) nosy: jaraco priority: normal severity: normal status: open title: Sync importlib_metadata enhancements through 4.1. versions: Python 3.10, Python 3.11 ___ Python tracker <ht

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
New submission from Jason R. Coombs : Importlib_metadata 4.1.0 made some minor tweaks. Let's sync those. -- ___ Python tracker <https://bugs.python.org/is

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +24974 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26382 ___ Python tracker <https://bugs.python.org/issu

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

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco nosy_count: 6.0 -> 7.0 pull_requests: +24975 pull_request: https://github.com/python/cpython/pull/26383 ___ Python tracker <https://bugs.python.org/issu

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 06ac3a4742228b0230981720060248a7425b2486 by Jason R. Coombs in branch 'main': bpo-44241: Incorporate changes from importlib_metadata 4.1. (#26382) https://github.com/python/cpython/commit/06ac3a4742228b0230981720060248

[issue33693] test test_webbrowser failed

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- nosy: +jaraco nosy_count: 3.0 -> 4.0 pull_requests: +24979 pull_request: https://github.com/python/cpython/pull/26387 ___ Python tracker <https://bugs.python.org/issu

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

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: +24980 pull_request: https://github.com/python/cpython/pull/26387 ___ Python tracker <https://bugs.python.org/issue38

[issue33693] test test_webbrowser failed

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- pull_requests: -24979 ___ Python tracker <https://bugs.python.org/issue33693> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: New changeset 97b4576f655c09e32d2cbcdcdbda72b1bf9f438a by Miss Islington (bot) in branch '3.10': bpo-38693: Prefer f-strings in importlib.resources (importlib_resources 5.0.6). (GH-26387) (#26389) https://github.com/python/cpyt

[issue44241] Sync importlib_metadata enhancements through 4.1.

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43063] zipfile.Path / importlib.resources raises KeyError if a file wasn't found

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: If this issue affects you, please use the `zipp` backport. I realize there are some use-cases that aren't readily amenable to relying on the backport. Please report any such use-case here as they may provide a justification for back-porting the c

[issue41855] FastPath.zip_children can give duplicate results on Python 3.8

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43413] tuple subclasses allow arbitrary kwargs

2021-05-26 Thread Jason R. Coombs
Change by Jason R. Coombs : -- title: tuple subclasses allow kwargs -> tuple subclasses allow arbitrary kwargs ___ Python tracker <https://bugs.python.org/issu

[issue36128] ResourceReader for FileLoader inconsistently handles path separators

2021-05-26 Thread Jason R. Coombs
Jason R. Coombs added the comment: The preferred API as implemented in Python 3.9 and importlib_resources 1.1 is the `files()` API. This simpler API returns a Traversable object, a pathlib-like handle to the contents of a package. This approach side-steps the issues described above. In

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: This backward incompatibility was unintentionally introduced in importlib_metadata 3.6 (https://importlib-metadata.readthedocs.io/en/latest/history.html#v3-6-0, released Feb 23) and was previously reported in https://github.com/python/importlib_metadata

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Yes, perhaps the What's New could be refreshed. There is a Compatibility Note in the docs for `entry_points` about the deprecated usage (https://docs.python.org/3.10/library/importlib.metadata.html?highlight=importlib%20metadata#entry-points). I wan

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: In the What's New, I used :func:`importlib.metadata.entry_points`, but that doesn't seem to resolve to the docs for the function. I need to figure out how to link to the entry_points anchor th

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +25001 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26408 ___ Python tracker <https://bugs.python.org/issu

[issue44246] 3.10 beta 1: breaking change in importlib.metadata entry points

2021-05-27 Thread Jason R. Coombs
Jason R. Coombs added the comment: Although it feels the topic has shifted from the original concern (an unintentional incompatibility) to the broader topic of the API change to entry_points generally, I'm happy to address your comments: > - I don't think they were discussed th

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