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
Change by Brett Cannon :
--
assignee: brett.cannon ->
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python
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
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue42134>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
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
Change by Brett Cannon :
--
assignee: brett.cannon -> docs@python
nosy: +docs@python
___
Python tracker
<https://bugs.python.org/issue43697>
___
___
Python-
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
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
title: [importlib] Deprecate find_module() implementations -> [importlib]
Deprecate find_module() & find_loader() mplementations
___
Python tracker
<https://bugs.python.org/
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
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
Brett Cannon added the comment:
find_spec() also supercedes find_loader().
--
___
Python tracker
<https://bugs.python.org/issue42135>
___
___
Python-bugs-list m
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue42135>
___
___
Python-bugs-list mailing list
Unsubscrib
Change by Brett Cannon :
--
pull_requests: +23910
pull_request: https://github.com/python/cpython/pull/25169
___
Python tracker
<https://bugs.python.org/issue2
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue43728>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
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
Brett Cannon added the comment:
Are you still planning to fix this, Barry?
--
___
Python tracker
<https://bugs.python.org/issue37741>
___
___
Python-bugs-list m
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
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
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue44070>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:/
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
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
Brett Cannon added the comment:
Did you mean to link to a fork, Irit?
--
status: pending -> open
___
Python tracker
<https://bugs.python.org/issue31772>
___
_
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
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue20109>
___
___
Python-bugs-list mailing list
Unsubscribe:
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.
--
_
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
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Brett Cannon added the comment:
Add Lukasz to get his opinion on this idea.
--
nosy: +lukasz.langa
___
Python tracker
<https://bugs.python.org/issue44
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
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
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
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
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue45183>
___
___
Python-bugs-list mailing list
Unsubscrib
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
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
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 (
Change by Brett Cannon :
--
pull_requests: +26843
pull_request: https://github.com/python/cpython/pull/28438
___
Python tracker
<https://bugs.python.org/issue45
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
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
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
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
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
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
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.
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
Brett Cannon added the comment:
I say make it writable.
--
___
Python tracker
<https://bugs.python.org/issue45540>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
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
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
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
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
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
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
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
Change by Brett Cannon :
--
pull_requests: +27450
pull_request: https://github.com/python/cpython/pull/29177
___
Python tracker
<https://bugs.python.org/issue45
Change by Brett Cannon :
--
pull_requests: +27455
pull_request: https://github.com/python/cpython/pull/29181
___
Python tracker
<https://bugs.python.org/issue45
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
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
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.
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
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 "
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
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.
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
Brett Cannon added the comment:
SGTM!
--
___
Python tracker
<https://bugs.python.org/issue45573>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
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
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue41498>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
1401 - 1500 of 5934 matches
Mail list logo