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 cc02b4f2e810ab524d845daa18bc94df5b092dd8 by Alex in branch
'master':
bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented
(#16459)
https://github.com/python/cpython/commit/cc02b4f2e810ab524d845daa18bc94df5b092dd8
Change by Brett Cannon :
--
pull_requests: +23367
pull_request: https://github.com/python/cpython/pull/24587
___
Python tracker
<https://bugs.python.org/issue38
Brett Cannon added the comment:
Since this is still open I would assume it never made it in.
--
___
Python tracker
<https://bugs.python.org/issue28007>
___
___
Brett Cannon added the comment:
I would harmonize towards what the concrete implementations are doing since
people who don't implement the defaults will get the appropriate results
regardless. An entry in What's New will cover any potential notification of the
change since you can't exactly
Brett Cannon added the comment:
I'm totally fine with pushing this until b1 since this has been broken for
ages.
--
___
Python tracker
<https://bugs.python.org/issue38
Brett Cannon added the comment:
Thanks for the idea, Stefan, but I'm going to close this as something we don't
want to do. `importlib.reload()` purposefully takes a module object as that's
what is going to get mutated/changed and it must already exist. The other
importlib functions take
Brett Cannon added the comment:
New changeset ca8e96d1edbeb536f58da91e607082463398fce1 by Miss Islington (bot)
in branch '3.8':
bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent
(GH-24100) (GH-24144)
https://github.com/python/cpython/commit
Brett Cannon added the comment:
importlib is probably not os.PathLike-clean due to its bootstrapping
restrictions of not getting to use anything implemented in Python from 'os'
(i.e. if it isn't being managed in posixmodule.c then it probably won't work).
If you follow the traceback it's
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
title: Update docs for importlib.util.resolve_name() to use __spec__ instead of
__package__ -> Update docs for importlib.util.resolve_name() to use
__spec__.parent instead of __package__
___
Python tracker
<
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue17343>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue29708>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
versions: -Python 3.10, Python 3.9
___
Python tracker
<https://bugs.python.org/issue40059>
___
___
Python-bugs-list mailin
New submission from Brett Cannon :
Since importlib now prefers `__spec__` over `__package__`,
https://docs.python.org/3/library/importlib.html#importlib.util.resolve_name
should be updated to use `__spec__.parent` instead in the. example.
--
assignee: brett.cannon
components
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42667>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Your question is best directed at https://discuss.python.org/c/core-workflow/8,
Daniel.
--
___
Python tracker
<https://bugs.python.org/issue39
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42125>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
What is "VendorImporter" (see the message of the ImportWarning)? That's not in
the stdlib, so it looks like your system is injecting something via some `.pth`
file or environment variable that doesn't define e
Brett Cannon added the comment:
You could propose your backwards-incompatible proposals on python-ideas, Greg,
and see if you get any uptake.
--
___
Python tracker
<https://bugs.python.org/issue42
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 2de5097ba4c50eba90df55696a7b2e74c93834d4 by Brett Cannon in
branch 'master':
bpo-26131: Deprecate usage of load_module() (GH-23469)
https://github.com/python/cpython/commit/2de5097ba4c50eba90df55696a7b2e74c93834d4
Brett Cannon added the comment:
I agree with Serhiy; don't do this. The only way we could fix this would be to
always set a `__init__` module for every package implicitly, but then that
would break anyone who wanted to clear out a package in sys.modules as the
`__init__` reference
Change by Brett Cannon :
--
nosy: +barry, jaraco -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42531>
___
___
Python-bugs-list mailing list
Unsub
Brett Cannon added the comment:
I think operator.index() should be brought to be inline with PyNumber_Index():
- If the argument is a subclass of int then return it.
- Otherwise call type(obj).__index__(obj)
- If not an int, raise TypeError
- If not a direct int, raise a DeprecationWarning
Change by Brett Cannon :
--
title: PyNumber_Index() is not int-subclass friendly (or operator.index() docos
lie) -> PyNumber_Index() is not int-subclass friendly (or operator.index() docs
lie)
___
Python tracker
<https://bugs.pyth
Change by Brett Cannon :
--
pull_requests: +22359
stage: commit review -> patch review
pull_request: https://github.com/python/cpython/pull/23469
___
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
Change by Brett Cannon :
--
resolution: fixed ->
status: closed -> open
___
Python tracker
<https://bugs.python.org/issue25710>
___
___
Python-bugs-list
Change by Brett Cannon :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue25710>
___
Brett Cannon added the comment:
New changeset d2e94bb0848e04a90efa51be401f0ce8a9e252f2 by Brett Cannon in
branch 'master':
bpo-42131: Add PEP 451-related methods to zipimport (GH-23187)
https://github.com/python/cpython/commit/d2e94bb0848e04a90efa51be401f0ce8a9e252f2
Brett Cannon added the comment:
You can ignore the half sentence. I was contemplating closing this issue when I
decided to leave it open in case someone wanted to propose something and
another core dev wanted to take it on. But everything is working as I expect it
to and you may want to do
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42273>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
resolution: not a bug ->
status: closed ->
___
Python tracker
<https://bugs.python.org/issue42273>
___
__
Brett Cannon added the comment:
The way import works,
--
resolution: -> not a bug
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42315>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
title: Update the stdlib to fall back to __spec__.parent if __loader__ isn't
defined -> Update the stdlib to fall back to __spec__.loader if __loader__
i
Brett Cannon added the comment:
New changeset 825ac383327255d38b69a753e5e41710bb3ed010 by Brett Cannon in
branch 'master':
bpo-42133: update parts of the stdlib to fall back to `__spec__.loader` when
`__loader__` is missing (#22929)
https://github.com/python/cpython/commit
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +22090
stage: resolved -> patch review
pull_request: https://github.com/python/cpython/pull/23187
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
assignee: -> brett.cannon
resolution: duplicate ->
status: closed -> open
superseder: zipimport is not PEP 3147 or PEP 488 compliant ->
___
Python tracker
<https://bugs.python
Change by Brett Cannon :
--
resolution: -> out of date
stage: needs patch -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
Not necessary to specify as InspectLoader also provides get_data() concretely
now.
--
___
Python tracker
<https://bugs.python.org/issue27
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue27387>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue27182>
___
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue27129>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue27226>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26394>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26388>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26285>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26300>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26031>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26153>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26137>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26205>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26216>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42131>
___
___
Change by Brett Cannon :
--
superseder: -> zipimport is not PEP 3147 or PEP 488 compliant
___
Python tracker
<https://bugs.python.org/issue42131>
___
___
Py
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue41490>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
dependencies: +[importlib] deprecate module_repr() methods
___
Python tracker
<https://bugs.python.org/issue42137>
___
___
Python-bug
New submission from Brett Cannon :
Once all traces of module_repr() are gone, raise an `ImportWarning` when using
`module_repr()`.
Once this is implemented and has been out in the wild for a sufficient amount
of time, it should be switching to a DeprecationWarning and then the fallback
New submission from Brett Cannon :
The import system handles what `module_repr()` was meant for.
--
components: Library (Lib)
messages: 379495
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: [importlib] deprecate module_repr() methods
type: behavior
versions
Change by Brett Cannon :
--
dependencies: +Raise ImportWarning when falling back to find_module()
___
Python tracker
<https://bugs.python.org/issue42135>
___
___
New submission from Brett Cannon :
find_spec() supersedes find_module() at this point.
--
components: Library (Lib)
messages: 379493
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: [importlib] Deprecate find_module() implementations
type: behavior
versions
New submission from Brett Cannon :
find_spec() has superseded find_module() since Python 3.4.
--
components: Interpreter Core
messages: 379492
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Raise ImportWarning when falling back to find_module()
versions
Brett Cannon added the comment:
It turns out that the import system itself doesn't use `__loader__` (it does
set it), but various parts of the stdlib do use `__loader__`. bpo-42133 updates
a bunch of stdlib modules to use `__spec__.loader` as a fallback. bpo-42132
tracks the fact
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +21851
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22929
___
Python tracker
<https://bugs.python.org/issu
New submission from Brett Cannon :
By making sure the stdlib can handle the case where __loader__ isn't defined
but __spec__.parent is, eventually the former could be dropped for the latter.
--
components: Library (Lib)
messages: 379486
nosy: brett.cannon
priority: normal
severity
New submission from Brett Cannon :
_warnings.c, pylifecycle.c, and pythonrun.c all either use or set `__loader__`
but without also falling back on `__spec__`.
--
components: Interpreter Core
messages: 379483
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Use
New submission from Brett Cannon :
zipimport only supports old PEP 302 APIs and not PEP 451 module specs (i.e. it
uses load_module() instead of create_module()/exec_module(), find_mdoule()
instead of find_spec()).
Uses of both load_module() and find_module() are documented as deprecated
Change by Brett Cannon :
--
stage: test needed -> commit review
___
Python tracker
<https://bugs.python.org/issue26131>
___
___
Python-bugs-list mai
Brett Cannon added the comment:
The docs for PyImport_ImportModule() is
https://docs.python.org/3/c-api/import.html?highlight=pyimport_importmodule#c.PyImport_ImportModule
and https://github.com/python/cpython/blob/master/Doc/c-api/import.rst.
--
keywords: +easy (C) -easy
Brett Cannon added the comment:
A PR is now up. I ended up deprecating the load_module() methods in importlib
itself and then raise ImportWarning in the import system itself when falling
back to load_module().
--
stage: patch review -> test nee
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +21837
stage: test needed -> patch review
pull_request: https://github.com/python/cpython/pull/22905
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
Thanks, Terry!
--
___
Python tracker
<https://bugs.python.org/issue41910>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
It turns out the "expressions" page of the language reference makes multiple
claims about types which do not hold, e.g. for multiplication, "The arguments
must either both be numbers, or one argument must be an integer and the other
mus
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +21816
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22874
___
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:
Yep, I think the example is enough to close this. Thanks!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
New changeset d02d824e05e2cb86f4df381be18832e76e2c475f by Brett Cannon in
branch 'master':
bpo-41584: clarify when the reflected method of a binary arithemtic operator is
called (#22505)
https://github.com/python/cpython/commit
Change by Brett Cannon :
--
stage: patch review -> commit review
___
Python tracker
<https://bugs.python.org/issue41584>
___
___
Python-bugs-list mai
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +21516
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/22505
___
Python tracker
<https://bugs.python.org/issu
New submission from Brett Cannon :
https://docs.python.org/3/reference/expressions.html#comparisons claims that
"Comparisons yield boolean values: True or False." But that's not necessarily
true:
```python
>>> class Spam:
... def __eq__(self, _): return 42
...
>&g
Change by Brett Cannon :
--
assignee: docs@python -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue41910>
___
___
Python-bugs-list mai
New submission from Brett Cannon :
If you look at the data model `for object.__eq__`
(https://docs.python.org/3.8/reference/datamodel.html#object.__eq__) you will
see that it doesn't mention any actual implementation (unlike for __ne__). But
https://github.com/python/cpython/blob/v3.8.3
Brett Cannon added the comment:
I wouldn't use pkgutil.get_data() -- or pkgutil, period -- and instead use
importlib.resources to read data files from a package (which is available as a
third-party package on PyPI if you need it for older versions of Python
Change by Brett Cannon :
--
resolution: fixed ->
status: closed -> open
versions: +Python 3.10 -Python 3.9
___
Python tracker
<https://bugs.python.org/i
Brett Cannon added the comment:
Probably making LazyLoader skip being lazy for non-source modules probably
makes the most sense and would be easiest to implement since it's an explicit
opt-out.
--
___
Python tracker
<https://bugs.python.
Change by Brett Cannon :
--
components: +Library (Lib) -XML
___
Python tracker
<https://bugs.python.org/issue40108>
___
___
Python-bugs-list mailing list
Unsub
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25963>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
Update: PEP 432 was withdrawn, so this issue is now languishing and not blocked
on something else.
--
___
Python tracker
<https://bugs.python.org/issue26
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25912>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26007>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26060>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
components: +Library (Lib) -Extension Modules
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25682>
___
___
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25343>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25702>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue25467>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/issue25509>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
versions: +Python 3.10 -Python 3.5
___
Python tracker
<https://bugs.python.org/issue25509>
___
___
Python-bugs-list mailing list
Unsub
1 - 100 of 5622 matches
Mail list logo