[issue42136] [importlib] deprecate module_repr() methods

2021-03-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset 1899087b21119c5c64cd41619b542c0bf0ab5751 by Brett Cannon in branch 'master': bpo-42136: Deprecate module_repr() as found in importlib (GH-25022) https://github.com/python/cpython/commit/1899087b21119c5c64cd41619b542c

[issue42136] [importlib] deprecate module_repr() methods

2021-03-26 Thread Brett Cannon
Change by Brett Cannon : -- assignee: brett.cannon -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-27 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23792 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25044 ___ Python tracker <https://bugs.python.org/issu

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-29 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue42134> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon
Brett Cannon added the comment: New changeset a7ff6df60c05e1b69fca743573b1e118bebf121d by Brett Cannon in branch 'master': bpo-42134: Raise ImportWarning when calling find_module() in the import system (GH-25044) https://github.com/python/cpyt

[issue43672] Raise ImportWarning when calling find_loader()

2021-03-30 Thread Brett Cannon
New submission from Brett Cannon : Using find_loader() in the import system should raise ImportWarning to start transitioning people over to find_spec() who haven't migrated since Python 3.4. -- assignee: brett.cannon components: Interpreter Core messages: 389834 nosy: brett.c

[issue42134] Raise ImportWarning when falling back to find_module()

2021-03-30 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue43672] Raise ImportWarning when calling find_loader()

2021-03-31 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23863 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25119 ___ Python tracker <https://bugs.python.org/issu

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: There is no mechanism as the entire concept of a namespace package is implemented in importlib.machinery.PathFinder itself and not the generic import system (see https://github.com/python/cpython/blob/652bfdee9495dca241d48278742fe035b7a82bdb/Lib/importlib

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > I'm not sure where namespace packages are documented https://docs.python.org/3/reference/import.html#namespace-packages > I'm not at all sure what would happen if we have meta path finders A and B > on sys.meta_path in that order, and A

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Change by Brett Cannon : -- assignee: brett.cannon -> docs@python nosy: +docs@python ___ Python tracker <https://bugs.python.org/issue43697> ___ ___ Python-

[issue43697] Importlib documentation does not cover how meta path finders should handle namespace packages

2021-04-01 Thread Brett Cannon
Brett Cannon added the comment: > What I've never really got clear in my mind is how dotted names get handled. Essentially: 1. Check if parent is imported; if not then import (working your way all the way back to the top if necessary) 2. Ask the sys.meta_path finders if they can ha

[issue43672] Raise ImportWarning when calling find_loader()

2021-04-02 Thread Brett Cannon
Brett Cannon added the comment: New changeset f97dc800689ba98783dac8dc51f87f7c6f413ac6 by Brett Cannon in branch 'master': bpo-43672: raise ImportWarning when calling find_loader() (GH-25119) https://github.com/python/cpython/commit/f97dc800689ba98783dac8dc51f87f

[issue43672] Raise ImportWarning when calling find_loader()

2021-04-02 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-02 Thread Brett Cannon
Change by Brett Cannon : -- title: [importlib] Deprecate find_module() implementations -> [importlib] Deprecate find_module() & find_loader() mplementations ___ Python tracker <https://bugs.python.org/

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
New submission from Brett Cannon : The following module's have preexisting deprecations with no slated removal version. Since so much of import is getting cleaned up in Python 3.12, these should finally go as well so the APIs are consistent across Python. - imp - pkgutil - importlib

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23908 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25167 ___ Python tracker <https://bugs.python.org/issu

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-03 Thread Brett Cannon
Brett Cannon added the comment: find_spec() also supercedes find_loader(). -- ___ Python tracker <https://bugs.python.org/issue42135> ___ ___ Python-bugs-list m

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue42135> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue2135] Restructure import.c into PEP 302 importer objects

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23910 pull_request: https://github.com/python/cpython/pull/25169 ___ Python tracker <https://bugs.python.org/issue2

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Brett Cannon added the comment: New changeset dc6d3e1e4c0c1e4b2210edab8fb4762569dc2936 by Brett Cannon in branch 'master': bpo-43720: Update import-related stdlib deprecation messages to say they will be removed in Python 3.12 (GH-25167) https://github.com/python/cpyt

[issue43720] Document various preexisting stdlib deprecations related to import for removal in Python 3.12

2021-04-03 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-05 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23935 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25169 ___ Python tracker <https://bugs.python.org/issu

[issue43728] Change the exception type and message raised when _curses is not found.

2021-04-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue43728> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 57c6cb5100d19a0e0218c77d887c3c239c9ce435 by Brett Cannon in branch 'master': bpo-42135: Deprecate implementations of find_module() and find_loader() (GH-25169) https://github.com/python/cpython/commit/57c6cb5100d19a0e0218c77d887c3c

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-04-06 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42134] Raise ImportWarning when falling back to find_module()

2021-04-08 Thread Brett Cannon
Brett Cannon added the comment: > would you accept a PR that changes the changelog entry to contain the > ".find_spec() not found; falling back to find_module()" message, for better > search-ability? Sure! > Also, could you please explain how to migrate to f

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-04-08 Thread Brett Cannon
Brett Cannon added the comment: Much like the question about load_module(), replacing find_module() with find_spec() can be helped with things like importlib.util.spec_from_file_location() and .spec_from_loader() (https://docs.python.org/3/library/importlib.html

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

2021-04-14 Thread Brett Cannon
Brett Cannon added the comment: Are you still planning to fix this, Barry? -- ___ Python tracker <https://bugs.python.org/issue37741> ___ ___ Python-bugs-list m

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-16 Thread Brett Cannon
Brett Cannon added the comment: Darn, forgot about Windows when I hunted down all the warnings on macOS. -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issu

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-19 Thread Brett Cannon
Brett Cannon added the comment: It might be time to just kill the coverage report since people are obviously not looking at the results. -- ___ Python tracker <https://bugs.python.org/issue43

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

2021-04-23 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +24283 stage: -> patch review pull_request: https://github.com/python/cpython/pull/25563 ___ Python tracker <https://bugs.python.org/issu

[issue43864] [Windows] test_importlib logs: DeprecationWarning: WindowsRegistryFinder.find_module() is deprecated and slated for removal in Python 3.12; use find_spec() instead

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

[issue43888] GitHub Actions CI/CD `Coverage` job is broken on master

2021-04-30 Thread Brett Cannon
Brett Cannon added the comment: New changeset 726c931b3896dc73fd156e2340b5ef0b8f55cfb7 by Ammar Askar in branch 'master': bpo-43888: Remove coverage builds from CI (GH-25679) https://github.com/python/cpython/commit/726c931b3896dc73fd156e2340b5ef

[issue44070] __file__ is now fully qualified in 3.8 and 3.9

2021-05-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue44070> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1717] Get rid of more references to __cmp__

2021-05-26 Thread Brett Cannon
Brett Cannon added the comment: > Has there been any resolution regarding `sortTestMethodsUsing`? My suspicion is if the docs don't suggest there's something else then nothing has been changed. -- ___ Python tracker <https:/

[issue44340] Add support for building cpython with clang thin lto

2021-06-07 Thread Brett Holman
New submission from Brett Holman : The existing --with-lto argument could be extended to pass through a value to select non-default lto compiler options: CC=clang ./configure --with-lto=thin This would allow default behavior to remain unchanged, while allowing those that want to use thin

[issue44340] Add support for building cpython with clang thin lto

2021-06-07 Thread Brett Holman
Change by Brett Holman : -- keywords: +patch pull_requests: +25169 stage: -> patch review pull_request: https://github.com/python/cpython/pull/26585 ___ Python tracker <https://bugs.python.org/issu

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2021-06-17 Thread Brett Cannon
Brett Cannon added the comment: Did you mean to link to a fork, Irit? -- status: pending -> open ___ Python tracker <https://bugs.python.org/issue31772> ___ _

[issue31772] SourceLoader uses stale bytecode in case of equal mtime seconds

2021-06-18 Thread Brett Cannon
Brett Cannon added the comment: No idea, I was just trying to understand what the link was meant to point at. :) -- ___ Python tracker <https://bugs.python.org/issue31

[issue20109] TestProgram is mentioned in the unittest docs but is not documented

2021-06-22 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue20109> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10572] Move test sub-packages to Lib/test

2021-07-16 Thread Brett Cannon
Brett Cannon added the comment: > After so long a reason came up that prevents the movement of tests of ctypes, > lib2to3, and idlelib (which even continues in the same folder, only the > nomenclature was changed)? Time and energy. -- _

[issue33277] Deprecate __loader__, __package__, __file__, and __cached__ on modules

2021-08-04 Thread Brett Cannon
Brett Cannon added the comment: > Maybe this can be revisited now. I've started the work already (albeit rather slowly 😄). Importlib has been updated to prefer __spec__.parent of __package__ and warns when the values are not equal. Next step will be to raise an ImportWarn

[issue41706] docs: operator dunder (`__add__`, et al.) invocations described incorrectly

2021-08-04 Thread Brett Cannon
Brett Cannon added the comment: New changeset 80f33f266b4ad5925a3e58ea3a54ae139a6b6f0e by William Chargin in branch 'main': bpo-41706: Fix special method invocation docs to mention using type() (GH-22084) https://github.com/python/cpython/commit/80f33f266b4ad5925a3e58ea3a54ae

[issue41706] docs: operator dunder (`__add__`, et al.) invocations described incorrectly

2021-08-04 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue44916] Random behaviour when importing two modules with the same name but different source files

2021-08-16 Thread Brett Cannon
Brett Cannon added the comment: So first, don't import from threads. It's non-deterministic as you have seen. You should do all imports **before** you start running multi-threaded code if multiple threads are going to access the Second, tossing in pickle is just asking for more t

[issue44972] Add workflow_dispatch trigger for GitHub Actions jobs

2021-08-23 Thread Brett Cannon
Brett Cannon added the comment: Add Lukasz to get his opinion on this idea. -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue44

[issue45020] Freeze all modules imported during startup.

2021-08-31 Thread Brett Cannon
Brett Cannon added the comment: > set __file__ (and __path__) on frozen modules? See https://bugs.python.org/issue21736 -- ___ Python tracker <https://bugs.python.org/issu

[issue40059] Provide a toml module in the standard library

2021-09-08 Thread Brett Cannon
Brett Cannon added the comment: No progress as I've been swamped with higher-priority things and the bigger discussion about how we want to manage the stdlib going forward has not started yet (once again, not had the time to start

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset 9f93018b69d72cb48d3444554261ae3b0ea00c93 by Hugo van Kemenade in branch 'main': bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) https://github.com/python/cpython/commit/9f93018b69d72cb48d3444554261ae

[issue42135] [importlib] Deprecate find_module() & find_loader() mplementations

2021-09-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset a390bb6d66027517498e75b6b91a91be5f136d28 by Miss Islington (bot) in branch '3.10': bpo-42135 Correct version slated for importlib.find_loader removal (GH-28312) (GH-28321) https://github.com/python/cpyt

[issue45183] Unexpected exception with zip importer

2021-09-15 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue45183> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +26840 stage: -> patch review pull_request: https://github.com/python/cpython/pull/28435 ___ Python tracker <https://bugs.python.org/issu

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: The proposed fix seems to be the right one based on my reading of the code. -- keywords: -patch stage: patch review -> ___ Python tracker <https://bugs.python.org/issu

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: New changeset 209b7035f714dcc41df054b0b023e0b955d7e1a2 by Brett Cannon in branch 'main': bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been reset (

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +26843 pull_request: https://github.com/python/cpython/pull/28438 ___ Python tracker <https://bugs.python.org/issue45

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: New changeset e1bdecb6dc7ac33256d5fa875d45634512d2a90e by Brett Cannon in branch '3.10': [3.10] bpo-45183: don't raise an exception when calling zipimport.zipimporter.find_spec() when the zip file is missing and the internal cache has been

[issue45183] Unexpected exception with zip importer

2021-09-17 Thread Brett Cannon
Brett Cannon added the comment: I decided that find_spec() saying something wasn't available in a finder made sense even though it was because a zip file no longer existed as the loader would still fail as appropriate. -- resolution: -> fixed stage: patch review -> reso

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-09-20 Thread Brett Cannon
New submission from Brett Cannon : There's some inaccuracies when it comes to iterable and iterators (async and not). See https://mail.python.org/archives/list/python-...@python.org/thread/3W7TDX5KNVQVGT5CUHBK33M7VNTP25DZ/#3W7TDX5KNVQVGT5CUHBK33M7VNTP25DZ for background. Should pro

[issue45020] Freeze all modules imported during startup.

2021-09-22 Thread Brett Cannon
Brett Cannon added the comment: What about if there isn't a pre-computed location for __file__? I could imagine a self-contained CPython build where there is no concept of a file location on disk for anything using this. -- ___ Python tr

[issue35673] Loader for namespace packages

2021-10-19 Thread Brett Cannon
Brett Cannon added the comment: Should we register with the ABC or is it time to do proper typing.Protocol classes and have the ABCs inherit from those? -- ___ Python tracker <https://bugs.python.org/issue35

[issue33277] Deprecate __loader__, __package__, and __cached__ on modules

2021-10-19 Thread Brett Cannon
Change by Brett Cannon : -- title: Deprecate __loader__, __package__, __file__, and __cached__ on modules -> Deprecate __loader__, __package__, and __cached__ on modules ___ Python tracker <https://bugs.python.org/issu

[issue35673] Loader for namespace packages

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: > What benefit would be gained? The ABCs are broader than what the import system actually requires due to their helper methods. So for typing purposes they are actually not a perfect fit. > That should probably be a separate issue/PR in either case.

[issue33277] Deprecate __loader__, __package__, and __cached__ on modules

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: > The spec identifies how a module should be loaded (or how it was loaded and > should be reloaded). We should be careful to preserve that identify and not > invite uses to modify the spec after (or while) the module is loaded. But they may want to

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: I say make it writable. -- ___ Python tracker <https://bugs.python.org/issue45540> ___ ___ Python-bugs-list mailing list Unsub

[issue45548] Update Modules/Setup

2021-10-20 Thread Brett Cannon
New submission from Brett Cannon : `Modules/Setup` is currently incomplete/broken. Some things are completely missing from it, while others won't work if you uncomment them in the file. When trying to compile a completely static CPython interpreter I ran into the following i

[issue45548] Update Modules/Setup

2021-10-20 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +27391 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29115 ___ Python tracker <https://bugs.python.org/issu

[issue45548] Update Modules/Setup

2021-10-20 Thread Brett Cannon
Brett Cannon added the comment: Status is now: - math/cmath conflict with a build rule in Makefile.pre.in - _dbm needs more logic/comments (at least on macOS) - nis needs more logic/comments (at least on macOS) And the following modules are completely missing from the file: - _bz2 - _ctypes

[issue45547] Modernize the importlib loaders

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: It's an interesting question. Probably should add the new APIs. As for dropping the old ones, we would have to check if we have been raising deprecation warnings as appropriate or if it's just a documenta

[issue45540] module.__package__ and module.__spec__.parent have different semantics

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: Sure, if you want to go full PEP on this I'm happy to be a co-author if the end goal is to ditch the (now) extraneous attributes. -- ___ Python tracker <https://bugs.python.org/is

[issue18056] Document importlib._bootstrap.NamespaceLoader

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: This was taken care of by https://github.com/python/cpython/pull/29049/. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45548] Update Modules/Setup

2021-10-21 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27419 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29143 ___ Python tracker <https://bugs.python.org/issu

[issue45548] Update Modules/Setup

2021-10-21 Thread Brett Cannon
Brett Cannon added the comment: New changeset 01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05 by Brett Cannon in branch 'main': bpo-45548: Make `Modules/Setup` easier to read (GH-29143) https://github.com/python/cpython/commit/01cf4fb9c1aa567484c2ffb1b11f9b

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +27443 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29170 ___ Python tracker <https://bugs.python.org/issu

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Brett Cannon added the comment: > One thing I would strongly suggest for consistent terminology: Make > "iterator" mean an object that has both "__next()__" and "__iter()__". The point of this issue, though, is to not make that claim as it's in

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-10-22 Thread Brett Cannon
Brett Cannon added the comment: I also need to leave a comment on https://github.com/python/typeshed/issues/6030 if/when this is fixed. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45548] Update Modules/Setup

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27450 pull_request: https://github.com/python/cpython/pull/29177 ___ Python tracker <https://bugs.python.org/issue45

[issue45548] Update Modules/Setup

2021-10-22 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27455 pull_request: https://github.com/python/cpython/pull/29181 ___ Python tracker <https://bugs.python.org/issue45

[issue45591] PathFinder does not find namespace packages children

2021-10-25 Thread Brett Cannon
Brett Cannon added the comment: You didn't specify the path to search in to find `a`. https://docs.python.org/3/library/importlib.html#importlib.machinery.PathFinder.find_spec says that PathFinder only has class methods, which means find_spec() won't know where 'namespace

[issue45592] NamespaceLoader does not implement create_module or exec_module

2021-10-25 Thread Brett Cannon
Brett Cannon added the comment: create_module() being empty is on purpose: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.create_module . You only define create_module() if you need a specific type of object for the module instance

[issue45591] PathFinder does not find namespace packages children

2021-10-26 Thread Brett Cannon
Brett Cannon added the comment: > I am curious, what is `fullname` supposed to mean then? "full" in what sense? You can still specify the full name of the module you're trying to import, but you also need to pass in the location information for that module.

[issue45591] PathFinder does not find namespace packages children

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: The full name argument approach comes from PEP 302. But you want the full name as you are otherwise missing potentially key information for the finder. For instance, if you manipulate __path__, then it's just some random directory you're searchi

[issue45548] Update Modules/Setup

2021-10-27 Thread Brett Cannon
Brett Cannon added the comment: > Could Brett or you please add those notes back ? There's no other place where such details are documented. It really depends on what "details" you're referring to. Most of what I removed were things like "Module by "

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-11-01 Thread Brett Cannon
Brett Cannon added the comment: > Wouldn't a nicer resolution for this be to change `iter` Unfortunately that isn't backwards-compatible. Some people may explicitly want their iterators to not be iterables to guarantee that people who want an iterator get a fresh/new one inste

[issue35829] datetime: parse "Z" timezone suffix in fromisoformat()

2021-11-04 Thread Brett Cannon
Brett Cannon added the comment: I also support the idea of adding an `allow_Z` or some equivalent keyword parameter to isoformat() and then allowing for `Z` in `fromisoformat()`. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.

[issue45675] pkgutil.get_data() doesn't add subpackages to parent packages when importing

2021-11-05 Thread Brett Cannon
Brett Cannon added the comment: FYI the long-term plan is to deprecate pkgutil, so I would use newer APIs as provided by importlib. -- ___ Python tracker <https://bugs.python.org/issue45

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-10 Thread Brett Cannon
Brett Cannon added the comment: SGTM! -- ___ Python tracker <https://bugs.python.org/issue45573> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

2021-11-15 Thread Brett Cannon
Brett Cannon added the comment: > Is traditional cross-compiling work still useful these days anyway? Yes for things like WebAssembly where there is no equivalent of an emulated CPU under QEMU. -- ___ Python tracker <https://bugs.pyth

[issue40059] Provide a toml module in the standard library

2021-11-17 Thread Brett Cannon
Brett Cannon added the comment: > I'd love it if we could make this happen for Python 3.11. What can I do to > help, e.g. would it be helpful if I drafted a PEP? A PEP isn't necessarily required right now as https://discuss.python.org/t/how-do-we-want-to-manage-additions

[issue40059] Provide a toml module in the standard library

2021-11-18 Thread Brett Cannon
Brett Cannon added the comment: > Hopefully tomli being less than a year old should not be a blocker, after > all, TOML v1.0.0 is itself less than a year old. It's actually rather important as the semantics of how things work will effectively be locked in once a module is added to

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-11-19 Thread Brett Cannon
Brett Cannon added the comment: New changeset be36e0634060c7d5dee8e8876fb888bbb53d992a by Brett Cannon in branch 'main': bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170) https://github.com/python/cpyt

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-11-19 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +27888 stage: -> patch review pull_request: https://github.com/python/cpython/pull/29650 ___ Python tracker <https://bugs.python.org/issu

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-11-22 Thread Brett Cannon
Brett Cannon added the comment: New changeset 99aad31b7ad493d4feea04064bcd6b04061477f9 by Brett Cannon in branch '3.10': [3.10] bpo-45250: fix docs regarding `__iter__` and iterators being inconsistently required by CPython (GH-29170) (GH-29650) https://github.com/python/cpyt

[issue45250] Make sure documentation is accurate for what an (async) iterable and (async) iterator are

2021-11-22 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue45548] Update Modules/Setup

2021-11-22 Thread Brett Cannon
Brett Cannon added the comment: @christian are you using this issue for your pkg-config work, or should I close this? -- ___ Python tracker <https://bugs.python.org/issue45

[issue41498] Undefinied _Py_Sigset_Converter function when HAVE_SIGSET_T not set

2021-11-25 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue41498> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: LLVM considers `was32-wasi` an alias for `wasm32-unknown-wasi`. Verified on the WebAssembly Discover server at https://discord.com/channels/453584038356058112/596492540388179976/898618010221310062. -- ___ Python

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: My last message had a couple of typos; should have been `wasm32-wasi` and "Discord", not "Discovery". -- ___ Python tracker <https://bug

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: Do we need to care about our `config.guess` being updated as well? This is a totally ignorant question based on https://github.com/WebAssembly/wasi-sdk#notes-for-autoconf mentioning `config.guess`. -- ___ Python

[issue40280] Consider supporting emscripten/webassembly as a build target

2021-11-25 Thread Brett Cannon
Brett Cannon added the comment: To help keep links up-to-date, Pyodide now lives at: https://github.com/pyodide/pyodide/tree/main/cpython -- ___ Python tracker <https://bugs.python.org/issue40

<    10   11   12   13   14   15   16   17   18   19   >