Brett Cannon added the comment:
https://github.com/python/cpython/blob/45b34a04a577aa49fa4825421758c3e8eaa1625d/Python/import.c#L1474-L1485
shows that the docs could be simplified to point out that
`PyImport_ImportModule()` is a wrapper around `PyImport_Import()` which takes
`const char
Change by Brett Cannon :
--
versions: +Python 3.10 -Python 3.5
___
Python tracker
<https://bugs.python.org/issue25509>
___
___
Python-bugs-list mailing list
Unsub
Change by Brett Cannon :
--
keywords: +easy
___
Python tracker
<https://bugs.python.org/issue25509>
___
___
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 :
--
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/issue25343>
___
___
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/issue26060>
___
___
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:
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/issue25963>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
components: +Library (Lib) -XML
___
Python tracker
<https://bugs.python.org/issue40108>
___
___
Python-bugs-list mailing list
Unsub
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.py
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:
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 P
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/v
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 :
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
...
&
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
Change by Brett Cannon :
--
stage: patch review -> commit review
___
Python tracker
<https://bugs.python.org/issue41584>
___
___
Python-bugs-list mai
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/cpyt
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
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: +21816
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/22874
___
Python tracker
<https://bugs.python.org/issu
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
must be
Brett Cannon added the comment:
Thanks, Terry!
--
___
Python tracker
<https://bugs.python.org/issue41910>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
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
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
Change by Brett Cannon :
--
stage: test needed -> commit review
___
Python tracker
<https://bugs.python.org/issue26131>
___
___
Python-bugs-list mai
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 for
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 :
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
sev
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
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
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
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
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 :
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
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
Change by Brett Cannon :
--
dependencies: +[importlib] deprecate module_repr() methods
___
Python tracker
<https://bugs.python.org/issue42137>
___
___
Python-bug
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue41490>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
resolution: -> duplicate
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue42131>
___
___
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue26216>
___
___
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/issue26137>
___
___
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/issue26031>
___
___
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/issue26285>
___
___
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/issue26584>
___
___
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/issue27226>
___
___
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/issue27387>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 :
--
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 :
--
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
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/cpyt
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
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42315>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
resolution: not a bug ->
status: closed ->
___
Python tracker
<https://bugs.python.org/issue42273>
___
__
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue42273>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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/d2e94bb0848e04a90efa51be401f0c
Change by Brett Cannon :
--
resolution: -> fixed
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue25710>
___
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 :
--
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 :
--
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
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
Brett Cannon added the comment:
Sorry, been busy. I will definitely get to it this week.
On Sun, Jan 15, 2012 at 19:58, Berker Peksag wrote:
>
> Berker Peksag added the comment:
>
> Hi Brett, did you have a chance to review the patch
Brett Cannon added the comment:
Thanks for the patch, Berker! It's all committed.
--
___
Python tracker
<http://bugs.python.org/issue13588>
___
___
Pytho
Brett Cannon added the comment:
Can you isolate the cause? There is way too much in that core dump to try to
debug the problem. Without knowing what code in this Moviegrabber app caused
the bug we can't do anything to debug the issue.
--
nosy: +brett.cannon
status: open ->
Brett Cannon added the comment:
Then I'm going to assume the bug lies with Moviegrabber doing something wrong
and it isn't Python's direct fault.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
&l
Brett Cannon added the comment:
LGTM
--
assignee: -> pitrou
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue11235>
___
__
Brett Cannon added the comment:
Thanks for going to the trouble to report this, but this is working as intended
since bool is a subclass of int.
--
nosy: +brett.cannon
resolution: -> invalid
status: open -> closed
___
Python tracker
New submission from Brett Cannon :
The docs for PYTHONCASEOK say it is limited to Windows, but in actuality in
Python 3.x it applies to both Windows (including cygwin) and OS X. On Python
2.7 it applies to those plus RISCOS OS/2.
--
assignee: docs@python
components: Documentation
Changes by Brett Cannon :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13883>
___
___
Python-bugs-list
Brett Cannon added the comment:
I was getting that error the other day on my OS X laptop, but then I thought I
tweaked the code well enough to solve it (since I am running on a
case-insensitive filesystem as well). It seems to stem from what nt.environ
contains when the test sets
Brett Cannon added the comment:
Otherwise it's the nt.listdir() comparison that's failing. Probably should
check that is returning reasonable stuff as well.
--
___
Python tracker
<http://bugs.python.o
Brett Cannon added the comment:
Is there a technological reason environ is not updated, or is it simply
oversight?
Lib/os.py: under POXIX, os.environ reflects posix.environ (it uses the same
underlying dict), while under Windows, os.environ uses a distinct dict from
nt.environ
Changes by Brett Cannon :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13890>
___
___
Python-bugs-list
Brett Cannon added the comment:
You have a typo in a filename: it should be pkgB/__init__.py (not the missing
trailing underscores).
--
nosy: +brett.cannon
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.p
Brett Cannon added the comment:
I see your mistake now: you need to call it as __import__('pkgB', globals(),
index=1), else __import__ has no clue how to anchor your import in the relative
package space.
Try that and let me know if it makes it work.
And why exactly are you tryi
Brett Cannon added the comment:
On Mon, Jan 30, 2012 at 18:33, Eric Snow wrote:
>
> Eric Snow added the comment:
>
> Jason: just a warning. importlib_backport is a relatively naive tool for
> generating the backport from the py3k source. It's also relatively fragile
Brett Cannon added the comment:
OK, I'm down to a single bug to be solved to call this work a "success" (there
are other test failures, but they are not overtly difficult to solve).
At this point the bootstrapping is failing in the face of sub-interpreters.
Specifically, whe
Changes by Brett Cannon :
--
keywords: +patch
Added file: http://bugs.python.org/file24418/f0b459af26fb.diff
___
Python tracker
<http://bugs.python.org/issue2
Changes by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
New submission from Brett Cannon :
The idea is that if a test succeeded then it is written to a file commented
out(including skipped tests w/ the appropriate comment), and if a test failed
then it is left uncommented. This way the failing tests can simply be passed to
--fromfile for easy
Brett Cannon added the comment:
Thanks to Benjamin, the test_capi assert failure is fixed. At this point the
only failures are listed in the FAILING file and are (probably) minor.
--
___
Python tracker
<http://bugs.python.org/issue2
New submission from Brett Cannon :
A bunch of code in Python/import.c exists purely for the imp module, but a
large chunk of it does not need to be implemented in C but instead can be
implemented in Python code.
Once importlib is bootstrapped in then an attempt to scale back the C code
Changes by Brett Cannon :
--
dependencies: +Replace __import__ w/ importlib.__import__
___
Python tracker
<http://bugs.python.org/issue13959>
___
___
Python-bug
New submission from Brett Cannon :
The new os.replace() function should be used by importlib.
--
components: Library (Lib)
messages: 152810
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: Have importlib use os.replace()
versions: Python 3.3
1901 - 2000 of 5934 matches
Mail list logo