[issue47061] Deprecate modules listed in PEP 594

2022-04-07 Thread Brett Cannon


Change by Brett Cannon :


--
pull_requests: +30436
pull_request: https://github.com/python/cpython/pull/32410

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-04-06 Thread Brett Cannon


Change by Brett Cannon :


--
pull_requests: +30426
pull_request: https://github.com/python/cpython/pull/32392

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-04-06 Thread Brett Cannon


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/32b33879c2e19cde735c1971b06869976200e1d8


--

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-04-05 Thread Brett Cannon


Change by Brett Cannon :


--
pull_requests: +30402
pull_request: https://github.com/python/cpython/pull/32350

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-04-05 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-04-05 Thread Brett Cannon


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/c1d93b6411f975d67e43942f1a2745a22983c18c


--

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39090] Document various options for getting the absolute path from pathlib.Path objects

2022-04-01 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +barneygale

___
Python tracker 
<https://bugs.python.org/issue39090>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46390] Multiple test failures on Alpine 3.15 / musl-1.2.2-r7

2022-03-31 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue46390>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47176] Interrupt handling for wasm32-emscripten builds without pthreads

2022-03-31 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue47176>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45886] Fix Program/_freeze_module for cross compiling Python

2022-03-31 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue45886>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue23325] Turn SIG_DFL and SIG_IGN into functions

2022-03-31 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue23325>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-26 Thread Brett Cannon


Change by Brett Cannon :


--
pull_requests: +30214
pull_request: https://github.com/python/cpython/pull/32134

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-22 Thread Brett Cannon


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/cpython/commit/af341ebf00d9a45cadea4c07810564d8e8962b96


--

___
Python tracker 
<https://bugs.python.org/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-21 Thread Brett Cannon


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/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon


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/issue47026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47026] BytesWarning in zipimport paths on sys.path

2022-03-21 Thread Brett Cannon


Change by Brett Cannon :


--
dependencies: +bytes do not work on sys.path

___
Python tracker 
<https://bugs.python.org/issue47026>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
priority: normal -> deferred blocker

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


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 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


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/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47022] PEP 594: Document removal of asynchat, asyncore and smtpd

2022-03-18 Thread Brett Cannon


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/issue47022>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Deprecate modules listed in PEP 594

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
title: Document PEP 594 deprecations -> Deprecate modules listed in PEP 594

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Document PEP 594 deprecations

2022-03-18 Thread Brett Cannon


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 docs 
incorrect.

- [ ] aifc
- [ ] asynchat: https://bugs.python.org/issue47022
- [ ] asyncore: https://bugs.python.org/issue47022
- [ ] audioop
- [ ] cgi
- [ ] cgitb
- [ ] chunk
- [ ] crypt
- [ ] imghdr
- [ ] msilib
- [ ] nntplib
- [ ] nis
- [ ] ossaudiodev
- [ ] pipes
- [ ] smtpd: https://bugs.python.org/issue47022
- [ ] sndhdr
- [ ] spwd
- [ ] sunau
- [ ] telnetlib
- [ ] uu
- [ ] xdrlib

--
assignee: brett.cannon
components: Library (Lib)
messages: 415521
nosy: brett.cannon
priority: normal
severity: normal
stage: needs patch
status: open
title: Document PEP 594 deprecations
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47061] Document PEP 594 deprecations

2022-03-18 Thread Brett Cannon


Change by Brett Cannon :


--
dependencies: +PEP 594: Document removal of asynchat, asyncore and smtpd

___
Python tracker 
<https://bugs.python.org/issue47061>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47025] bytes do not work on sys.path

2022-03-17 Thread Brett Cannon


Brett Cannon  added the comment:

I think it depends on whether we want to say the standard/included/built-in 
import mechanisms don't support byte paths, or byte paths are entirely not 
supported even for 3rd-party code? I definitely think we should at least do the 
former, but I'm hesitant to close the door for those that need it by doing the 
latter.

--

___
Python tracker 
<https://bugs.python.org/issue47025>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue47025] bytes do not work on sys.path

2022-03-17 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue47025>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46566] Support -3.11-arm64 in py.exe launcher

2022-03-14 Thread Brett Cannon


Brett Cannon  added the comment:

"Practically nothing can be reused - there's no registry, no shebang handling, 
and our process launching on Windows is already very complex (and has to remain 
that way for compatibility)."

I do process the shebang to restrict searching, or did you mean something else?

And registry support [is 
planned](https://github.com/brettcannon/python-launcher/issues/15).

--

___
Python tracker 
<https://bugs.python.org/issue46566>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-03-04 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46860>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-03-02 Thread Brett Cannon


Change by Brett Cannon :


--
versions: +Python 3.11

___
Python tracker 
<https://bugs.python.org/issue46860>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-03-02 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 50ec3453c50c490eca7e990103c79671bd08ab2e by Brett Cannon in 
branch 'main':
bpo-46860: Respect `--with-suffix` on case-insensitive file systems (GH-31593)
https://github.com/python/cpython/commit/50ec3453c50c490eca7e990103c79671bd08ab2e


--

___
Python tracker 
<https://bugs.python.org/issue46860>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue44035] Regenerating the configure script fails even if dependencies are satisfied

2022-02-26 Thread Brett Cannon


Brett Cannon  added the comment:

For me it took `docker run -v (pwd):/src quay.io/tiran/cpython_autoconf` (on 
fish and didn't run `docker pull` ahead of time).

@tiran are you  okay if we document your image and how to run it at 
https://devguide.python.org/setup/?highlight=autoconf#regenerate-configure ?

--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue44035>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-02-25 Thread Brett Cannon


Change by Brett Cannon :


--
keywords: +patch
pull_requests: +29716
stage:  -> patch review
pull_request: https://github.com/python/cpython/pull/31593

___
Python tracker 
<https://bugs.python.org/issue46860>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46860] `--with-suffix` not respected on case-insensitive file systems

2022-02-25 Thread Brett Cannon


New submission from Brett Cannon :

If you use `--with-suffix` on a case-insensitive file system it is ultimately 
ignored and forced to `.exe`.

PR incoming.

--
assignee: brett.cannon
components: Build
messages: 414051
nosy: brett.cannon
priority: normal
severity: normal
status: open
title: `--with-suffix` not respected on case-insensitive file systems
type: behavior

___
Python tracker 
<https://bugs.python.org/issue46860>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46853] Python interpreter can get code from memory, it is not secure.

2022-02-25 Thread Brett Cannon


Brett Cannon  added the comment:

This is by design and thus not a security hole or bug.

Also, for any future security issues, please disclose them responsibly by 
following the instructions at https://www.python.org/dev/security/ .

--
nosy: +brett.cannon
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46853>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46835] ImportError: bad magic number in ... does not indicate where is that file located

2022-02-24 Thread Brett Cannon


Change by Brett Cannon :


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue46835>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue43275] [venv] Add a `.gitignore` file with content `*` in the root folder generated by venv module

2022-02-16 Thread Brett Cannon


Change by Brett Cannon :


--
superseder:  -> [venv] Adding a .gitignore file to virtual environments

___
Python tracker 
<https://bugs.python.org/issue43275>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46337] urllib.parse: Allow more flexibility in schemes and URL resolution behavior

2022-02-14 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 
<https://bugs.python.org/issue46337>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-08 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46678>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46678] Invalid cross device link in Lib/test/support/import_helper.py

2022-02-08 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset c2735b75afd530631efde4ddd3cb24bbdc285559 by Miss Islington (bot) 
in branch '3.10':
bpo-46678: Fix Invalid cross device link in Lib/test/support/import_helper.py 
(GH-31204) (GH-31207)
https://github.com/python/cpython/commit/c2735b75afd530631efde4ddd3cb24bbdc285559


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue46678>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-02-08 Thread Brett Cannon


Change by Brett Cannon :


--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46556>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46556] pathlib.Path.__enter__() should emit DeprecationWarning

2022-02-08 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 06e1701ad3956352bc0f42b8f51c2f8cc85bf378 by Barney Gale in branch 
'main':
bpo-46556: emit `DeprecationWarning` from `pathlib.Path.__enter__()` (GH-30971)
https://github.com/python/cpython/commit/06e1701ad3956352bc0f42b8f51c2f8cc85bf378


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue46556>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21762] update the import machinery to only use __spec__

2022-02-04 Thread Brett Cannon


Brett Cannon  added the comment:

Dumping my personal notes here as backup and in case anyone else wants to know 
how this is going.


1. `__package__`
- [x]  Make sure all uses of the attribute fall back on `__spec__` (done 
way back when)
- [x]  Add an `ImportWarning` when the attribute is used but it differs 
from `__spec__`  (3.6)
- [x]  Update code to prefer the spec over the attribute, raising 
`ImportWarning` when having to fall back to the attribute (3.10)
- [ ]  Change `ImportWarning` to `DeprecationWarning` when falling back to 
the attribute
- [ ]  Remove code in `importlib` that used the old attribute
2. `__loader__`
- [x]  Make sure all Python code uses of the attribute fall back on 
`__spec__` (3.10)
- [ ]  Update C code to fall back to using `__spec__` 
([issue](https://bugs.python.org/issue42132))
- [ ]  Add an `ImportWarning` when the attribute is used but it differs 
from `__spec__`
- [ ]  Update code to prefer the spec over the attribute, raising 
`ImportWarning` when having to fall back to the attribute
- [ ]  Change `ImportWarning` to `DeprecationWarning` when falling back to 
the attribute
- [ ]  Remove code in `importlib` that used the old attribute
3. `__cached__`
- [ ]  Make sure all uses of the attribute fall back on `__spec__`
- [ ]  Add an `ImportWarning` when the attribute is used but it differs 
from `__spec__`
- [ ]  Update code to prefer the spec over the attribute, raising 
`ImportWarning` when having to fall back to the attribute
- [ ]  Change `ImportWarning` to `DeprecationWarning` when falling back to 
the attribute
- [ ]  Remove code in `importlib` that used the old attribute

--

___
Python tracker 
<https://bugs.python.org/issue21762>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21762] update the import machinery to only use __spec__

2022-02-04 Thread Brett Cannon


Change by Brett Cannon :


--
dependencies: +Use specs instead of just __loader__ in C code

___
Python tracker 
<https://bugs.python.org/issue21762>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29688] Add support for Path.absolute()

2022-01-31 Thread Brett Cannon


Brett Cannon  added the comment:

@eryksun I'm not seeing what's wrong with your example. Would you mind pointing 
out what you expect the result to be?

And are you saying on Windows you have to resolve the drive separately from the 
working directory and then concatenate them?

--

___
Python tracker 
<https://bugs.python.org/issue29688>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29688] Add support for Path.absolute()

2022-01-28 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 18cb2ef46c9998480f7182048435bc58265c88f2 by Barney Gale in branch 
'main':
bpo-29688: document and test `pathlib.Path.absolute()` (GH-26153)
https://github.com/python/cpython/commit/18cb2ef46c9998480f7182048435bc58265c88f2


--

___
Python tracker 
<https://bugs.python.org/issue29688>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39602] importlib: lazy loading can result in reimporting a submodule

2022-01-17 Thread Brett Cannon


Change by Brett Cannon :


--
priority: normal -> low

___
Python tracker 
<https://bugs.python.org/issue39602>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29964] [doc] %z directive has no effect on the output of time.strptime

2022-01-14 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 305588c67cdede4ef127ada90c1557bc1ef7c200 by Hugo van Kemenade in 
branch 'main':
bpo-20281, bpo-29964: update datetime docs to refer %z and %Z to a pre-existing 
footnote (GH-30354)
https://github.com/python/cpython/commit/305588c67cdede4ef127ada90c1557bc1ef7c200


--

___
Python tracker 
<https://bugs.python.org/issue29964>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue20281] [doc] time.strftime %z format specifier is the same as %Z

2022-01-14 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 305588c67cdede4ef127ada90c1557bc1ef7c200 by Hugo van Kemenade in 
branch 'main':
bpo-20281, bpo-29964: update datetime docs to refer %z and %Z to a pre-existing 
footnote (GH-30354)
https://github.com/python/cpython/commit/305588c67cdede4ef127ada90c1557bc1ef7c200


--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue20281>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46360] Inconsistent import behavior for (unusual) submodules

2022-01-13 Thread Brett Cannon

Brett Cannon  added the comment:

So which inconsistency do you want to change because you listed three and this 
is only one issue. 

I'm going to assume the "even though sys.modules has `None`" case, which I 
think is an oversight and should probably get fixed, but I also don't know what 
promises the language spec makes around this.

As for the other two, you can open separate issues if you want to discuss them, 
but I double-check what the language spec says as I am tempted to say both are 
fine (and specifically in the latter case that's on you to have not messed up 
and left the attribute off).

--

___
Python tracker 
<https://bugs.python.org/issue46360>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46241] importlib.utils.find_spec() has issues with "tests" folder

2022-01-05 Thread Brett Cannon


Brett Cannon  added the comment:

This is working as intended. Because you don't have a `__init__.py` file in 
your `tests` directory, Python considers it a potential namespace package. As 
such, Python keeps searching for a "normal" package that defines `__init__.py` 
for the same package name. Since Astroid has one and seemingly has it on 
`sys.path` in such a way as to get discovered, it gets selected as the package 
to use for the name `test`.

If you add a `tests/__init__.py` file then your issue will go away.

--
resolution:  -> not a bug
stage:  -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46241>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-17 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset dbd1dc23f60a6883adf1d18e660f163fa76b8ba9 by Miss Islington (bot) 
in branch '3.10':
[3.10] bpo-46044: Annotate deprecated sdists formats (GH-30043) (#30154)
https://github.com/python/cpython/commit/dbd1dc23f60a6883adf1d18e660f163fa76b8ba9


--

___
Python tracker 
<https://bugs.python.org/issue46044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-17 Thread Brett Cannon


Brett Cannon  added the comment:


New changeset 8202a7e3dd55d551906390742fc748d0747256b8 by Miss Islington (bot) 
in branch '3.9':
[3.9] bpo-46044: Annotate deprecated sdists formats (GH-30043) (GH-30155)
https://github.com/python/cpython/commit/8202a7e3dd55d551906390742fc748d0747256b8


--

___
Python tracker 
<https://bugs.python.org/issue46044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue46044] Update distutils documentation to say PyPI only accepts tar.gz and zip.

2021-12-17 Thread Brett Cannon


Brett Cannon  added the comment:

Nah, I don't think setuptools cares about this doc update.

--
resolution:  -> fixed
stage: commit review -> resolved
status: open -> closed

___
Python tracker 
<https://bugs.python.org/issue46044>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40059] Provide a toml module in the standard library

2021-12-14 Thread Brett Cannon


Brett Cannon  added the comment:

I opened https://github.com/python/steering-council/issues/92 for the SC to 
discuss stdlib additions in case I am not re-elected.

--

___
Python tracker 
<https://bugs.python.org/issue40059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31370] Remove support for threads-less builds

2021-12-14 Thread Brett Cannon


Brett Cannon  added the comment:

I am not opening a new discussion; this is just recording this fact here as it 
has come up in other places on the internet.

--

___
Python tracker 
<https://bugs.python.org/issue31370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue40059] Provide a toml module in the standard library

2021-12-13 Thread Brett Cannon

Brett Cannon  added the comment:

> I just noticed that tomli has dropped support for Python 3.6. That's a road 
> block for general adoption of the package in the Python ecosystem.

It's already in pip, so I think it's already generally adopted . 
https://github.com/pypa/pip/tree/main/src/pip/_vendor/tomli

> Is my understanding correct that this issue is blocked on SC guidance?

Not officially, no. But I'm personally not going to bring it forward right now. 
If someone else wants to formulate a complete proposal for the SC on this then 
they are definitely welcome to! You will need to address where the code is 
coming from, why that code should be used, what's the API, etc.

The only reason the SC is mentioned here is there will be a discussion about 
how to maintain the stdlib, but it simply hasn't happened yet. You don't have 
to wait for it and asking for a TOML module might actually force the issue.

> Is there anything we could do in advance of SC guidance that would be 
> productive?

Nope, someone eventually has to have the time to make the proposal and manage 
the deluge of comments.

> Is there a good place to follow along or be notified of SC thoughts?

https://github.com/python/steering-council as you already pointed out through 
the issues and monthly summaries. Otherwise you just need to open an issue and 
ask. 

--

___
Python tracker 
<https://bugs.python.org/issue40059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31370] Remove support for threads-less builds

2021-12-13 Thread Brett Cannon

Brett Cannon  added the comment:

> https://web.dev/webassembly-threads/ suggests otherwise.

It actually doesn't as that post isn't for WASI, it's for WASM in the browser 
(I chose my acronyms carefully ).

WASI is like POSIX for WebAssembly, so it's meant for desktop usage and thus no 
browser or JS engine is involved to provide web workers.

--

___
Python tracker 
<https://bugs.python.org/issue31370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue31370] Remove support for threads-less builds

2021-12-10 Thread Brett Cannon


Brett Cannon  added the comment:

This has unfortunately turned out to be a blocker on getting WASI support as 
there's not direct threading support in WebAssembly.

--
nosy: +brett.cannon

___
Python tracker 
<https://bugs.python.org/issue31370>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21762] update the import machinery to only use __spec__

2021-12-07 Thread Brett Cannon


Change by Brett Cannon :


--
assignee:  -> brett.cannon

___
Python tracker 
<https://bugs.python.org/issue21762>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue21761] [doc] language reference describes the role of module.__file__ inaccurately

2021-12-06 Thread Brett Cannon


Brett Cannon  added the comment:

> "Ultimately, the loader set the values of __file__ and/or __cached__"

Change it to "sets" and +1 from me!

--

___
Python tracker 
<https://bugs.python.org/issue21761>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45902] Bytes and bytesarrays can be sorted with a much faster count sort.

2021-11-26 Thread Brett Cannon


Change by Brett Cannon :


--
nosy:  -brett.cannon

___
Python tracker 
<https://bugs.python.org/issue45902>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue40280>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue40280>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue40280>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue40280>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/cpython/commit/99aad31b7ad493d4feea04064bcd6b04061477f9


--

___
Python tracker 
<https://bugs.python.org/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/cpython/commit/be36e0634060c7d5dee8e8876fb888bbb53d992a


--

___
Python tracker 
<https://bugs.python.org/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the stdlib, so we need to be 
careful. Plus had you asked this question less than a year go the answer would 
have been pypi.org/p/toml and now you're suggesting something different, so the 
year matters. 

--

___
Python tracker 
<https://bugs.python.org/issue40059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-removals-to-the-stdlib/10681
 needs to be resolved by the steering council first (it's on our agenda).

> Several projects have switched to using tomli 
> (https://github.com/hukkin/tomli), which is fully compatible with TOML v1.0.0 
> and is maybe 800 LoC with claimed 100% branch coverage.

Part of the issue with tomli is how new it is; 
https://pypi.org/project/tomli/#history shows it is only 6 months old and we 
typically require a project be at least a year old before we consider pulling 
it in.

If you want to help you could ask the author of tomli what they think about it 
being added to the stdlib and whether they support that idea.

--

___
Python tracker 
<https://bugs.python.org/issue40059>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.python.org/issue45573>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45675>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue35829>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 instead of reusing a live iterator.

--

___
Python tracker 
<https://bugs.python.org/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ", or saying _json.c is for "json 
accelerator" which is obvious to me. Anything that seemed pertinent to 
compilation I left in.

So if there's something you specifically want to add back in that you think is 
important then please feel free to as I'm done editing the file for my purposes 
at the moment.

--

___
Python tracker 
<https://bugs.python.org/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 searching in. But searching for what? What if 
you want custom logic based on what package you're searching under?

Because the import system is designed to be flexible enough to let you import 
from a URL or SQLite database as well as DSL files, providing all of the 
available information becomes important.

--

___
Python tracker 
<https://bugs.python.org/issue45591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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. So the code 
does `fullname.rpartition(".")[-1]` to get the name of the module that you're 
looking for. So `PathFinder.find_spec('namespace.a', 
path=spec.submodule_search_locations)` should also work.

--

___
Python tracker 
<https://bugs.python.org/issue45591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker 
<https://bugs.python.org/issue45592>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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' is, so the search will fail to find anything, hence 
returning None.

--

___
Python tracker 
<https://bugs.python.org/issue45591>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 inaccurate.

--
stage: patch review -> 

___
Python tracker 
<https://bugs.python.org/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45250>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/01cf4fb9c1aa567484c2ffb1b11f9b3fe9949b05


--

___
Python tracker 
<https://bugs.python.org/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org/issue18056>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45540>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 documentation thing.

--

___
Python tracker 
<https://bugs.python.org/issue45547>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
- _decimal
- _multiprocessing
- _posixshmem
- _scproxy
- _sqlite3
- _uuid

--
stage: patch review -> 

___
Python tracker 
<https://bugs.python.org/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 issues:

- _weakref is listed twice
- _testcapi can't be statically compiled
- 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:
- _ctypes
- _decimal
- _lsprof
- _lzma
- _multiprocessing
- _opcode
- _posixshmem
- _queue
- _scproxy
- _sqlite3
- _testbuffer
- _testipmortmultiple
- _testmultiphase
- _uuid
- xxsubinterpreters
- xxtestfuzz
- ossaudiodev
- xxlimited
- xxlimited_35

--
assignee: brett.cannon
components: Build
messages: 404548
nosy: brett.cannon
priority: low
severity: normal
status: open
title: Update Modules/Setup
versions: Python 3.11

___
Python tracker 
<https://bugs.python.org/issue45548>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 modify it to influence reloading. There's a discussion 
somewhere where I talked about this with Nick and he agreed with me that trying 
to keep specs like receipts and all of these other attributes as mutable values 
had not really panned out after all of these years.

> +1 on a proxy (with read-only attrs) for everything but __name__, __file__, 
> and __path__ (which can all be different than the spec).

I'm -1 on a proxy as that doesn't simplify the situation. Having (nearly) 
duplicate attributes is confusing and I have yet to see it benefit anyone.

--

___
Python tracker 
<https://bugs.python.org/issue33277>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

https://bugs.python.org/issue38782 and I was trying to rope you into doing the 
work. 

--

___
Python tracker 
<https://bugs.python.org/issue35673>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue33277>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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/issue35673>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



  1   2   3   4   5   6   7   8   9   10   >