[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

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

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

[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 : -- priority: normal -> deferred blocker ___ Python tracker <https://bugs.python.org/issue47061> ___ ___ Python-bugs-list mai

[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

[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

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

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

[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

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

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

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

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

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

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

[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
Change by Brett Cannon : -- pull_requests: +30402 pull_request: https://github.com/python/cpython/pull/32350 ___ 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/32b33879c2e19cde735c1971b06869

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

[issue37813] PEP 7 line-breaking with binary operations contradicts Knuth's rule

2019-08-13 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +barry ___ Python tracker <https://bugs.python.org/issue37813> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37860] Add netlify deploy preview for docs

2019-08-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue37860> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Brett Cannon
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

[issue37890] Modernize several tests in test_importlib

2019-08-21 Thread Brett Cannon
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

[issue37663] Making venv activation script prompts consistent

2019-08-21 Thread Brett Cannon
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

[issue37918] What about an enum for open() modes?

2019-08-22 Thread Brett Cannon
Change by Brett Cannon : -- priority: normal -> low type: -> enhancement ___ Python tracker <https://bugs.python.org/issue37918> ___ ___ Python-bugs-list

[issue37890] Modernize several tests in test_importlib

2019-08-22 Thread Brett Cannon
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

[issue37660] Drop support for Aspen magic directories in venv's activate scripts

2019-08-22 Thread Brett Cannon
Brett Cannon added the comment: Fixed by issue37663. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37663] Making venv activation script prompts consistent

2019-08-22 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37661] venv activation scripts erroneously check if __VENV_PROMPT__ is defined

2019-08-22 Thread Brett Cannon
Brett Cannon added the comment: Fixed by issue37663. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue34679] asyncio.add_signal_handler call fails if not on main thread

2019-08-23 Thread Brett Slatkin
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

[issue37935] Improve performance of pathlib.scandir()

2019-08-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue37935> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37936] gitignore file is too broad

2019-08-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue37936> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37941] python -m and runpy.run_module set different __name__ by default

2019-08-26 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +ncoghlan ___ Python tracker <https://bugs.python.org/issue37941> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35737] crypt AuthenticationError introduced with new Linux kernel

2019-08-30 Thread Brett R
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

[issue38000] importlib can not handle module file names with periods

2019-09-09 Thread Brett Cannon
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

[issue37683] Use importlib.resources in venv

2019-09-09 Thread Brett Cannon
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

[issue38086] Synchronize importlib.metadata with importlib_metadata 0.21

2019-09-10 Thread Brett Cannon
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

[issue38102] Document importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD

2019-09-11 Thread Brett Cannon
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

[issue37585] Comparing PyDictValues does not give expected results

2019-09-11 Thread 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

[issue37585] Comparing PyDictValues does not give expected results

2019-09-11 Thread Brett Cannon
Change by Brett Cannon : -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37585> ___ ___ Pyth

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Brett Cannon
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

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +15554 pull_request: https://github.com/python/cpython/pull/15913 ___ Python tracker <https://bugs.python.org/issue37

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Brett Cannon
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

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-09-11 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35943] PyImport_GetModule() can return partially-initialized module

2019-09-11 Thread Brett Cannon
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

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-11 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38102] Document importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: Forgot that this class is deprecated. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35923] Update the BuiltinImporter in importlib to use loader._ORIGIN instead of a hardcoded value

2019-09-11 Thread Brett Cannon
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

[issue37409] relative import without parent succeeds with builtins.__import__

2019-09-12 Thread Brett Cannon
Brett Cannon added the comment: Thanks for catching the warning and the fix, Karthikeyan! -- ___ Python tracker <https://bugs.python.org/issue37409> ___ ___

[issue37449] Move ensurepip off of pkgutil and to importlib.resources

2019-09-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue29652] Fix evaluation order of keys/values in dict comprehensions

2019-09-17 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: -> closed ___ Python tracker <https://bugs.python.org/issue29652> ___

[issue38215] Do not import modules in star-import when __all__ is not defined.

2019-09-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38215> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38222] pathlib Path objects should support __format__

2019-09-19 Thread Brett Cannon
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

[issue15902] imp.load_module won't accept None for the file argument for a C extension

2019-09-23 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue15902> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38297] Imports at top of module is often not used

2019-09-30 Thread Brett Cannon
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

[issue38342] ImportError: cannot import name 'MetadataPathFinder' from 'importlib.metadata'

2019-10-02 Thread Brett Cannon
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

[issue38357] print adding extra bytes in hex above x7F

2019-10-03 Thread Brett Cannon
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

[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

2019-10-03 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue37631> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26219] implement per-opcode cache in ceval

2019-10-07 Thread Brett Cannon
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

[issue38413] Remove or change "Multithreading" section

2019-10-09 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +ghaering ___ Python tracker <https://bugs.python.org/issue38413> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue38457> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue38457> ___ ___ Python-bugs-list mailin

[issue38457] __package__ is None in __init__.py until an import is used

2019-10-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue38457> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38551] lib2to3 Grammar.txt doesn't have Python 3.8 grammar changes

2019-10-23 Thread Brett Cannon
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

[issue38569] Unknown distribution option: 'license_files'

2019-10-24 Thread Brett Cannon
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

[issue38593] Python 3.7 does not catch infinite recursion for some values of sys.getrecursionlimit()

2019-10-28 Thread 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

[issue38611] ElementTree.ParseError does not implement SyntaxError interface as expected

2019-10-28 Thread 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

[issue38627] Add copy() method to pathlib

2019-10-29 Thread Brett Cannon
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

[issue38651] Add WolfSSL support

2019-10-31 Thread Brett Cannon
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

[issue38649] tkinter messagebox is sloppy

2019-10-31 Thread Brett Cannon
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

[issue38671] pathlib.Path.resolve(strict=False) returns relative path on Windows if the entry does not exist

2019-11-04 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38671> ___ ___ Python-bugs-list mailin

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
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

[issue38662] Decouple ensurepip from pip's internals using runpy

2019-11-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38662> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-04 Thread Brett Cannon
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

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
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

[issue37633] Py_CompileString and PyParser_SimpleParseString not exported in python38.dll

2019-11-04 Thread Brett Cannon
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

[issue38691] importlib: PYTHONCASEOK should be ignored when using python3 -E

2019-11-05 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +brett.cannon, eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue38691> ___ ___ Python-bugs-list mailin

[issue38500] Provide a way to get/set PyInterpreterState.frame_eval without needing to access interpreter internals

2019-11-07 Thread Brett Cannon
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

[issue43477] from x import * behavior inconsistent between module types.

2021-03-15 Thread Brett Cannon
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

[issue43477] from x import * behavior inconsistent between module types.

2021-03-16 Thread Brett Cannon
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 *`

[issue43477] from x import * behavior inconsistent between module types.

2021-03-17 Thread Brett Cannon
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

[issue43540] importlib: Document how to replace load_module() in What's New in Python 3.10

2021-03-18 Thread Brett Cannon
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

[issue42137] Raise an ImportWarning for calling module_repr() on loaders

2021-03-20 Thread Brett Cannon
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

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-20 Thread Brett Cannon
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

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
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

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: -[importlib] deprecate module_repr() methods ___ Python tracker <https://bugs.python.org/issue42137> ___ ___ Python-bug

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
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

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
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

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-22 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon stage: patch review -> ___ Python tracker <https://bugs.python.org/issue43573> ___ ___

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-22 Thread Brett Cannon
Brett Cannon added the comment: Meant to say, "existence of the _method_ isn't problematic". -- ___ Python tracker <https://bugs.python.org/issue42137> ___ _

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23752 pull_request: https://github.com/python/cpython/pull/24994 ___ Python tracker <https://bugs.python.org/issue43

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-23 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-24 Thread Brett Cannon
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

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-24 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42136] [importlib] deprecate module_repr() methods

2021-03-25 Thread Brett Cannon
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

[issue42136] [importlib] deprecate module_repr() methods

2021-03-26 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue42136> ___ ___ Python-bugs-list mailing list Unsubscrib

<    9   10   11   12   13   14   15   16   17   18   >