[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/issue47

[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/issue47

[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

[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/issue47

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

[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

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

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

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

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

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

[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/issue47

[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

[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/issue47

[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/issue47

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

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

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

[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/issu

[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/issue47

[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/issu

[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

[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/issue47

[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

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

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

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

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

[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

[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

[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/issu

[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

[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

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

[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/issu

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

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

[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

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

[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

[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

[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> ___ ___ Pytho

[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

[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

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

[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

[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

[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

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

[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

[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

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

[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/issue40

[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/issue31

[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/s

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

[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/issue31

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

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

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

[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/issue40

[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

[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://bug

[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

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

[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/issue45

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

[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

[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/issu

[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

[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

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

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

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

[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/issue45

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

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

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

[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

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

[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

[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

[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/issue45

[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/issue45

[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/issue45

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

[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/issu

[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

[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/issu

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

[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/issue45

[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

[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

[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/issu

[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

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

[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

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

[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/issu

[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/issue35

  1   2   3   4   5   6   7   8   9   10   >