Change by Brett Cannon :
--
dependencies: +PEP 594: Document removal of asynchat, asyncore and smtpd
___
Python tracker
<https://bugs.python.org/issue47
New submission from Brett Cannon :
https://peps.python.org/pep-0594/
The SC has asked that all modules deprecated by PEP 594 have the documented
deprecation backported. The message should also not have any specific removal
version to avoid any potential delay, but then making the bugfix-only
Change by Brett Cannon :
--
title: Document PEP 594 deprecations -> Deprecate modules listed in PEP 594
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
Merged into `main`, but the backports to 3.10 and 3.9 failed.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue47
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +30074
stage: needs patch -> patch review
pull_request: https://github.com/python/cpython/pull/31984
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
The first PR for documenting the modules is up. Once this gets merged and
backported I will add a helper function in `warnings` and then make the
appropriate code changes.
--
___
Python tracker
<ht
Change by Brett Cannon :
--
priority: normal -> deferred blocker
___
Python tracker
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mai
Change by Brett Cannon :
--
dependencies: +bytes do not work on sys.path
___
Python tracker
<https://bugs.python.org/issue47026>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
bpo-47025 is a bigger discussion about bytes paths that probably needs to be
resolved first before worrying about zipimport.
--
___
Python tracker
<https://bugs.python.org/issue47
Brett Cannon added the comment:
One thing I forgot to mention is that I will be updating What's New as the code
deprecations land.
--
___
Python tracker
<https://bugs.python.org/is
Brett Cannon added the comment:
New changeset af341ebf00d9a45cadea4c07810564d8e8962b96 by Hugo van Kemenade in
branch '3.9':
[3.9] bpo-47022: Document asynchat, asyncore and smtpd removals in 3.12
(GH-31891) (#31998)
https://github.com/python/cpyt
Change by Brett Cannon :
--
pull_requests: +30214
pull_request: https://github.com/python/cpython/pull/32134
___
Python tracker
<https://bugs.python.org/issue47
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue23325>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue45886>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue47176>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue46390>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +barneygale
___
Python tracker
<https://bugs.python.org/issue39090>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
New changeset c1d93b6411f975d67e43942f1a2745a22983c18c by Brett Cannon in
branch 'main':
bpo-47061: deprecate the `aifc` module (GH-32134)
https://github.com/python/cpython/commit/c1d93b6411f975d67e43942f1a2745
Change by Brett Cannon :
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by Brett Cannon :
--
pull_requests: +30402
pull_request: https://github.com/python/cpython/pull/32350
___
Python tracker
<https://bugs.python.org/issue47
Brett Cannon added the comment:
New changeset 32b33879c2e19cde735c1971b06869976200e1d8 by Brett Cannon in
branch 'main':
bpo-47061: use `warnings._deprecated()` with asynchat, asyncore, and smtpd
(GH-32350)
https://github.com/python/cpython/commit/32b33879c2e19cde735c1971b06869
Change by Brett Cannon :
--
pull_requests: +30426
pull_request: https://github.com/python/cpython/pull/32392
___
Python tracker
<https://bugs.python.org/issue47
Change by Brett Cannon :
--
pull_requests: +30436
pull_request: https://github.com/python/cpython/pull/32410
___
Python tracker
<https://bugs.python.org/issue47
Change by Brett Cannon :
--
nosy: +barry
___
Python tracker
<https://bugs.python.org/issue37813>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue37860>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
What Serhiy said. :) There's code to be able to easily test both
builtins.__import__ and importlib.__import__ in tests so that there's no drift
between the two implementations.
--
___
Python track
Brett Cannon added the comment:
A key question here is why are you trying to avoid the AttributeError case so
much? If something has a bug and an attribute doesn't exist that should then
that's a bug and the test needs to catch that. Now whether that's via an error
from Attri
Brett Cannon added the comment:
New changeset 48ede6b8f685669f53d26ae8456647af42ae3dae by Brett Cannon in
branch 'master':
bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__
for prompt customization (GH-14941)
https://github.com/python/cpyt
Change by Brett Cannon :
--
priority: normal -> low
type: -> enhancement
___
Python tracker
<https://bugs.python.org/issue37918>
___
___
Python-bugs-list
Brett Cannon added the comment:
I would just read through the other tests files under test_importlib to see how
other tests were done.
--
___
Python tracker
<https://bugs.python.org/issue37
Brett Cannon added the comment:
Fixed by issue37663.
--
resolution: -> fixed
stage: -> 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
Brett Cannon added the comment:
Fixed by issue37663.
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Slatkin added the comment:
Maybe we should just roll back https://bugs.python.org/issue34687 to fix both
issues? Otherwise asyncio will be broken on Windows in 3.8. Is general API
stability more important than performance?
--
___
Python
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue37935>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue37936>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +ncoghlan
___
Python tracker
<https://bugs.python.org/issue37941>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett R added the comment:
I'm marking this closed. We're past the issue, and won't be providing any more
details or chasing this further. Feel free to reopen if others want to push it.
Thanks for the tips.
--
stage: -> resolved
stat
Brett Cannon added the comment:
This works as expected as nothing is inherently injected into your global
namespace in any of the other code that you are executing. Otherwise the fact
that the imported module is not being put into sys.modules also doesn't help if
you're trying to
Brett Cannon added the comment:
Since no one has ever asked for this I won't worry about it. This was mostly to
start using the proper API for reading data out of a package, but it isn't
critical.
--
resolution: -> rejected
stage: -> resolved
status
Brett Cannon added the comment:
New changeset 17499d82702432955d8e442a1871ff276ca64bc5 by Brett Cannon (Jason
R. Coombs) in branch 'master':
bpo-38086: Sync importlib.metadata with importlib_metadata 0.21. (GH-15840)
https://github.com/python/cpyt
New submission from Brett Cannon :
importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD has existed since Python
3.3
(https://hg.python.org/cpython/file/v3.3.0/Lib/importlib/_bootstrap.py#l1750).
--
assignee: docs@python
components: Documentation
messages: 351784
nosy: brett.cannon
Brett Cannon added the comment:
New changeset 6472ece5a0fe82809d3aa0ffb281796fcd252d76 by Brett Cannon (Kyle
Stanley) in branch 'master':
bpo-37585: Add clarification regarding comparing dict.values() (GH-14954)
https://github.com/python/cpyt
Change by Brett Cannon :
--
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.org/issue37585>
___
___
Pyth
Brett Cannon added the comment:
New changeset 92420b3e679959a7d0ce875875601a4cee45231e by Brett Cannon (Ben
Lewis) in branch 'master':
bpo-37409: fix relative import with no parent (#14956)
https://github.com/python/cpython/commit/92420b3e679959a7d0ce875875601a
Change by Brett Cannon :
--
pull_requests: +15554
pull_request: https://github.com/python/cpython/pull/15913
___
Python tracker
<https://bugs.python.org/issue37
Brett Cannon added the comment:
New changeset 0a6693a469cfb1dd5c8048d8cb4231a7b5883251 by Brett Cannon in
branch '3.8':
[3.8] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913)
https://github.com/python/cpython/commit/0a6693a469cfb1dd5c8048d8cb4231
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 37c22206981f52ae35c28b39f7530f8438afbfdb by Brett Cannon (Joannah
Nanjekye) in branch 'master':
bpo-35943: Prevent PyImport_GetModule() from returning a partially-initialized
module (GH-15057)
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:
Forgot that this class is deprecated.
--
resolution: -> rejected
stage: -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Brett Cannon added the comment:
New changeset 145cf1f50c8a8e8233e641f345cd5e25ee69190a by Brett Cannon
(Dong-hee Na) in branch 'master':
bpo-35923: Update the BuiltinImporter to use loader._ORIGIN instead of a
hard-coded value (GH-15651)
https://github.com/python/cpyt
Brett Cannon added the comment:
Thanks for catching the warning and the fix, Karthikeyan!
--
___
Python tracker
<https://bugs.python.org/issue37409>
___
___
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
stage: -> resolved
status: -> closed
___
Python tracker
<https://bugs.python.org/issue29652>
___
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue38215>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I'm -1 as PEP 519 created __fspath__ specifically so that pathlib.Path wouldn't
be confused as a string by accident. You can also use os.fspath() to get a
string representation of the path itself.
I also don't know if Antoine wants to make th
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue15902>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
So it's a bit misleading to use the stdlib as a guideline because there are
reasons we do this in certain spots. E.g. the os module purposefully does
function-level imports to make startup cheaper. importlib does this to minimize
how many modules need
Brett Cannon added the comment:
Closing as not a bug as this seems to be an issue from installing over a b3 or
earlier build where the importlib/metadata/ directory gets left behind and thus
take priority in import over importlib/metadata.py.
--
nosy: +brett.cannon
resolution
Brett Cannon added the comment:
@Artificial please see the various blog posts and explanations about why the
clear separation between bytes and text came to be and thus this change isn't
"unnecessarily complicated".
--
nosy
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue37631>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
I personally think it would be fine to change the wording to say "measurable
speed-up" and not attribute a specific number.
--
___
Python tracker
<https://bugs.python.o
Change by Brett Cannon :
--
nosy: +ghaering
___
Python tracker
<https://bugs.python.org/issue38413>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue38457>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Brett Cannon :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<https://bugs.python.org/issue38457>
___
___
Python-bugs-list mailin
Change by Brett Cannon :
--
nosy: -brett.cannon
___
Python tracker
<https://bugs.python.org/issue38457>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
@Peter you can close this if issue36541 will fix your issue (i.e. both
assignment expressions and positional-only parameters).
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue38
Brett Cannon added the comment:
Why do you think the warning can be removed? Is it documented as supported in
distutils? If setuptools supports that argument but not distutils then that
would be a bug against them.
--
nosy: +brett.cannon
Brett Cannon added the comment:
Can you provide a small reproducer? Otherwise the recursion check is mostly
best effort if you have recursion in C code which never goes out to Python code
where the recursion check is implemented.
--
nosy: +brett.cannon
Change by Brett Cannon :
--
title: Bug in traceback.py -> ElementTree.ParseError does not implement
SyntaxError interface as expected
___
Python tracker
<https://bugs.python.org/issu
Brett Cannon added the comment:
And just to add Serhiy's logic, think of pathlib more as an equivalent to
os.path than a be-all solution to anything path-related.
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/is
Brett Cannon added the comment:
My guess is we won't want to take code specific to WolfSSL due to maintenance
overhead of trying to support another SSL library. There has been talk about
trying to move away from our OpenSSL dependency and switch to using the OS's
native secu
Brett Cannon added the comment:
Please note that calling something "sloppy" and that somehow its development
was done in some "carelessness" fashion to the point of being "egregious" is
not motivating to others to try and help. Trying to support all of this code
Change by Brett Cannon :
--
components: +Library (Lib)
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue38671>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
Can you trace this to actually being Python's fault? Unfortunately you're using
two extension modules who both could be at fault with this.
--
nosy: +brett.cannon
___
Python tracker
<https://bu
Change by Brett Cannon :
--
nosy: +brett.cannon
___
Python tracker
<https://bugs.python.org/issue38662>
___
___
Python-bugs-list mailing list
Unsubscribe:
Brett Cannon added the comment:
@Mark are you strongly opposed because we're providing an API for changing the
eval function in the CPython API and you think it should be in the private API?
Or you objecting to PEP 523 all-up (based on your list of objections)? Either
way the PE
Brett Cannon added the comment:
Basically you have to figure out where that bad memory came from and that's
just plain hard in C short of slowly cutting out code until you get a small
reproducer. Typically these sorts of issues are almost always in the extension
modules, but your ca
Brett Cannon added the comment:
I've flagged this as a release blocker so the Release Manager can make a call
about whether this should hold up future releases.
--
nosy: +brett.cannon
priority: normal -> release blocker
___
Python tracker
Change by Brett Cannon :
--
nosy: +brett.cannon, eric.snow, ncoghlan
___
Python tracker
<https://bugs.python.org/issue38691>
___
___
Python-bugs-list mailin
Brett Cannon added the comment:
PEP 523 was to give user code the ability to change the eval function. While
the work was motivated by our JIT work, supporting debugging was another
motivating factor: https://www.python.org/dev/peps/pep-0523/#debugging. There's
no C API because at the
Brett Cannon added the comment:
Sorry, I'm having a hard time following what you've written and I unfortunately
don't have time to examine your (I assume) .tar.xz file. When you say
"directory-based-module", do you mean a package (e.g. `__init__.py` in a
directo
Brett Cannon added the comment:
Thanks for the clarification! I think I understand what's going on now, and the
logic is actually expected.
When you do `from .test_submodule import *`, Python must first import
`test_pkg.test_submodule` in order to get you the object for the `import *`
Brett Cannon added the comment:
Having `test_pkg.test_submodule` be set after your import based on the sequence
of imports your example executes is entirely expected and a side-effect of how
import is (at least now) designed. So I disagree with the assessment "that
nothing her
Brett Cannon added the comment:
The documentation states in the deprecation notice for
https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
that create_module() and exec_module() are what are necessary. But the it
isn't a direct 1:1 replacement and peopl
Brett Cannon added the comment:
Should try to use __spec__ first, but if it isn't set then fall back on
module_repr() and raise an ImportWarning. See
Lib/importlib/_bootstrap.py:_module_repr.
--
___
Python tracker
<https://bugs.py
New submission from Brett Cannon :
https://docs.python.org/3/library/types.html#types.ModuleType does not document
__spec__.
--
assignee: docs@python
components: Documentation
messages: 389204
nosy: brett.cannon, docs@python
priority: normal
severity: normal
status: open
title: [types
Brett Cannon added the comment:
Thinking about it more, raising ImportWarning (or DeprecationWarning) is
unnecessarily noisy as the existence of the module isn't problematic, it just
won't be used anymore in the future. So updating the code to use __spec__ first
and then document
Change by Brett Cannon :
--
dependencies: -[importlib] deprecate module_repr() methods
___
Python tracker
<https://bugs.python.org/issue42137>
___
___
Python-bug
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +23711
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24953
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
keywords: +patch
pull_requests: +23733
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24974
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
assignee: docs@python -> brett.cannon
stage: patch review ->
___
Python tracker
<https://bugs.python.org/issue43573>
___
___
Brett Cannon added the comment:
Meant to say, "existence of the _method_ isn't problematic".
--
___
Python tracker
<https://bugs.python.org/issue42137>
___
_
Change by Brett Cannon :
--
pull_requests: +23752
pull_request: https://github.com/python/cpython/pull/24994
___
Python tracker
<https://bugs.python.org/issue43
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 9cb31d671646a5ff0901f79d2d61022621447190 by Brett Cannon in
branch 'master':
bpo-42137: have ModuleType.__repr__ prefer __spec__ over module_repr()
(GH-24953)
https://github.com/python/cpython/commit/9cb31d671646a5ff0901f79d2d6102
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: +23772
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25022
___
Python tracker
<https://bugs.python.org/issu
Change by Brett Cannon :
--
assignee: -> brett.cannon
___
Python tracker
<https://bugs.python.org/issue42136>
___
___
Python-bugs-list mailing list
Unsubscrib
1301 - 1400 of 5934 matches
Mail list logo