[issue38302] [3.10] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

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

[issue38302] [3.10] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2021-02-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset cc02b4f2e810ab524d845daa18bc94df5b092dd8 by Alex in branch 'master': bpo-38302: __pow__/__rpow__ now called when __ipow__ returns NotImplemented (#16459) https://github.com/python/cpython/commit/cc02b4f2e810ab524d845daa18bc94df5b092dd8

[issue38302] [3.10] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2021-02-19 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +23367 pull_request: https://github.com/python/cpython/pull/24587 ___ Python tracker <https://bugs.python.org/issue38

[issue28007] Bad .pyc files prevent import of otherwise valid .py files.

2021-02-19 Thread Brett Cannon
Brett Cannon added the comment: Since this is still open I would assume it never made it in. -- ___ Python tracker <https://bugs.python.org/issue28007> ___ ___

[issue42129] Support resources in namespace packages

2021-02-17 Thread Brett Cannon
Brett Cannon added the comment: I would harmonize towards what the concrete implementations are doing since people who don't implement the defaults will get the appropriate results regardless. An entry in What's New will cover any potential notification of the change since you can't exactly

[issue38302] [3.10] __pow__ and __rpow__ are not reached when __ipow__ returns NotImplemented for **=

2021-02-01 Thread Brett Cannon
Brett Cannon added the comment: I'm totally fine with pushing this until b1 since this has been broken for ages. -- ___ Python tracker <https://bugs.python.org/issue38

[issue43037] Importlib reload by module name (String)

2021-01-27 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the idea, Stefan, but I'm going to close this as something we don't want to do. `importlib.reload()` purposefully takes a module object as that's what is going to get mutated/changed and it must already exist. The other importlib functions take

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

2021-01-07 Thread Brett Cannon
Brett Cannon added the comment: New changeset ca8e96d1edbeb536f58da91e607082463398fce1 by Miss Islington (bot) in branch '3.8': bpo-42811: Update importlib.utils.resolve_name() docs to use __spec__.parent (GH-24100) (GH-24144) https://github.com/python/cpython/commit

[issue42839] SourceFileLoader does not (fully) accept path-like objects

2021-01-06 Thread Brett Cannon
Brett Cannon added the comment: importlib is probably not os.PathLike-clean due to its bootstrapping restrictions of not getting to use anything implemented in Python from 'os' (i.e. if it isn't being managed in posixmodule.c then it probably won't work). If you follow the traceback it's

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

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

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__

2021-01-05 Thread Brett Cannon
Change by Brett Cannon : -- title: Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__ -> Update docs for importlib.util.resolve_name() to use __spec__.parent instead of __package__ ___ Python tracker <

[issue17343] Add a version of str.split which returns an iterator

2021-01-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue17343> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29708] support reproducible Python builds

2021-01-04 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue29708> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40059] Provide a toml module in the standard library

2021-01-02 Thread Brett Cannon
Change by Brett Cannon : -- versions: -Python 3.10, Python 3.9 ___ Python tracker <https://bugs.python.org/issue40059> ___ ___ Python-bugs-list mailin

[issue42811] Update docs for importlib.util.resolve_name() to use __spec__ instead of __package__

2021-01-02 Thread Brett Cannon
New submission from Brett Cannon : Since importlib now prefers `__spec__` over `__package__`, https://docs.python.org/3/library/importlib.html#importlib.util.resolve_name should be updated to use `__spec__.parent` instead in the. example. -- assignee: brett.cannon components

[issue42667] shelve module is not thread-safe during accessing different databases from different threads

2020-12-17 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue42667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39041] Support GitHub Actions in CI

2020-12-16 Thread Brett Cannon
Brett Cannon added the comment: Your question is best directed at https://discuss.python.org/c/core-workflow/8, Daniel. -- ___ Python tracker <https://bugs.python.org/issue39

[issue42125] linecache cannot get source for the __main__ module with a custom loader

2020-12-16 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue42125> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-09 Thread Brett Cannon
Brett Cannon added the comment: What is "VendorImporter" (see the message of the ImportWarning)? That's not in the stdlib, so it looks like your system is injecting something via some `.pth` file or environment variable that doesn't define e

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-07 Thread Brett Cannon
Brett Cannon added the comment: You could propose your backwards-incompatible proposals on python-ideas, Greg, and see if you get any uptake. -- ___ Python tracker <https://bugs.python.org/issue42

[issue26131] Raise ImportWarning when loader.load_module() is used

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

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-12-04 Thread Brett Cannon
Brett Cannon added the comment: New changeset 2de5097ba4c50eba90df55696a7b2e74c93834d4 by Brett Cannon in branch 'master': bpo-26131: Deprecate usage of load_module() (GH-23469) https://github.com/python/cpython/commit/2de5097ba4c50eba90df55696a7b2e74c93834d4

[issue42564] "from .__init__ import ..." syntax imports a duplicate module

2020-12-04 Thread Brett Cannon
Brett Cannon added the comment: I agree with Serhiy; don't do this. The only way we could fix this would be to always set a `__init__` module for every package implicitly, but then that would break anyone who wanted to clear out a package in sys.modules as the `__init__` reference

[issue42531] importlib.resources.path() raises TypeError for packages without __file__

2020-12-02 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +barry, jaraco -brett.cannon ___ Python tracker <https://bugs.python.org/issue42531> ___ ___ Python-bugs-list mailing list Unsub

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

2020-11-22 Thread Brett Cannon
Brett Cannon added the comment: I think operator.index() should be brought to be inline with PyNumber_Index(): - If the argument is a subclass of int then return it. - Otherwise call type(obj).__index__(obj) - If not an int, raise TypeError - If not a direct int, raise a DeprecationWarning

[issue17576] PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie)

2020-11-22 Thread Brett Cannon
Change by Brett Cannon : -- title: PyNumber_Index() is not int-subclass friendly (or operator.index() docos lie) -> PyNumber_Index() is not int-subclass friendly (or operator.index() docs lie) ___ Python tracker <https://bugs.pyth

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-11-22 Thread Brett Cannon
Change by Brett Cannon : -- pull_requests: +22359 stage: commit review -> patch review pull_request: https://github.com/python/cpython/pull/23469 ___ Python tracker <https://bugs.python.org/issu

[issue42131] [zipimport] Update zipimport to use specs

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

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2020-11-16 Thread Brett Cannon
Change by Brett Cannon : -- resolution: fixed -> status: closed -> open ___ Python tracker <https://bugs.python.org/issue25710> ___ ___ Python-bugs-list

[issue25710] zipimport is not PEP 3147 or PEP 488 compliant

2020-11-13 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue25710> ___

[issue42131] [zipimport] Update zipimport to use specs

2020-11-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset d2e94bb0848e04a90efa51be401f0ce8a9e252f2 by Brett Cannon in branch 'master': bpo-42131: Add PEP 451-related methods to zipimport (GH-23187) https://github.com/python/cpython/commit/d2e94bb0848e04a90efa51be401f0ce8a9e252f2

[issue42273] Using LazyLoader leads to AttributeError

2020-11-12 Thread Brett Cannon
Brett Cannon added the comment: You can ignore the half sentence. I was contemplating closing this issue when I decided to leave it open in case someone wanted to propose something and another core dev wanted to take it on. But everything is working as I expect it to and you may want to do

[issue42273] Using LazyLoader leads to AttributeError

2020-11-12 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue42273> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue42273] Using LazyLoader leads to AttributeError

2020-11-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon resolution: not a bug -> status: closed -> ___ Python tracker <https://bugs.python.org/issue42273> ___ __

[issue42273] Using LazyLoader leads to AttributeError

2020-11-10 Thread Brett Cannon
Brett Cannon added the comment: The way import works, -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue42315] `python -m` semantics conflict with `__file__`'s being optional

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

[issue42133] Update the stdlib to fall back to __spec__.loader if __loader__ isn't defined

2020-11-09 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed title: Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined -> Update the stdlib to fall back to __spec__.loader if __loader__ i

[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-11-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 825ac383327255d38b69a753e5e41710bb3ed010 by Brett Cannon in branch 'master': bpo-42133: update parts of the stdlib to fall back to `__spec__.loader` when `__loader__` is missing (#22929) https://github.com/python/cpython/commit

[issue42131] [zipimport] Update zipimport to use specs

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +22090 stage: resolved -> patch review pull_request: https://github.com/python/cpython/pull/23187 ___ Python tracker <https://bugs.python.org/issu

[issue42131] [zipimport] Update zipimport to use specs

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon resolution: duplicate -> status: closed -> open superseder: zipimport is not PEP 3147 or PEP 488 compliant -> ___ Python tracker <https://bugs.python

[issue27408] Document importlib.abc.ExecutionLoader implements get_data()

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue27408] Document importlib.abc.ExecutionLoader implements get_data()

2020-11-06 Thread Brett Cannon
Brett Cannon added the comment: Not necessary to specify as InspectLoader also provides get_data() concretely now. -- ___ Python tracker <https://bugs.python.org/issue27

[issue27387] Thread hangs on str.encode() when locale is not set

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue27387> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27182] PEP 519 support in the stdlib

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue27182> ___

[issue27129] Wordcode, part 2

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue27129> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27226] distutils: unable to compile both .opt-1.pyc and .opt2.pyc simultaneously

2020-11-06 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue27226> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26394] Have argparse provide ability to require a fallback value be present

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

[issue26584] pyclbr module needs to be more flexible on loader support

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

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

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

[issue26285] Garbage collection of unused input sections from CPython binaries

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

[issue26300] "unpacked" bytecode

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

[issue26031] Add stat caching option to pathlib

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

[issue26153] PyImport_GetModuleDict: no module dictionary! when `__del__` triggers a warning

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

[issue26137] [idea] use the Microsoft Antimalware Scan Interface

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

[issue26205] Better specify number of nested scopes

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

[issue26216] run runtktests.py error when test tkinter

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

[issue42131] [zipimport] Update zipimport to use specs

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue42131> ___ ___

[issue42131] [zipimport] Update zipimport to use specs

2020-11-04 Thread Brett Cannon
Change by Brett Cannon : -- superseder: -> zipimport is not PEP 3147 or PEP 488 compliant ___ Python tracker <https://bugs.python.org/issue42131> ___ ___ Py

[issue41490] Update bundled pip to 20.2.1 and setuptools to 49.2.1

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

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

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

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

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : Once all traces of module_repr() are gone, raise an `ImportWarning` when using `module_repr()`. Once this is implemented and has been out in the wild for a sufficient amount of time, it should be switching to a DeprecationWarning and then the fallback

[issue42136] [importlib] deprecate module_repr() methods

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : The import system handles what `module_repr()` was meant for. -- components: Library (Lib) messages: 379495 nosy: brett.cannon priority: normal severity: normal status: open title: [importlib] deprecate module_repr() methods type: behavior versions

[issue42135] [importlib] Deprecate find_module() implementations

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +Raise ImportWarning when falling back to find_module() ___ Python tracker <https://bugs.python.org/issue42135> ___ ___

[issue42135] [importlib] Deprecate find_module() implementations

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : find_spec() supersedes find_module() at this point. -- components: Library (Lib) messages: 379493 nosy: brett.cannon priority: normal severity: normal status: open title: [importlib] Deprecate find_module() implementations type: behavior versions

[issue42134] Raise ImportWarning when falling back to find_module()

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : find_spec() has superseded find_module() since Python 3.4. -- components: Interpreter Core messages: 379492 nosy: brett.cannon priority: normal severity: normal status: open title: Raise ImportWarning when falling back to find_module() versions

[issue21762] update the import machinery to only use __spec__

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: It turns out that the import system itself doesn't use `__loader__` (it does set it), but various parts of the stdlib do use `__loader__`. bpo-42133 updates a bunch of stdlib modules to use `__spec__.loader` as a fallback. bpo-42132 tracks the fact

[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21851 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22929 ___ Python tracker <https://bugs.python.org/issu

[issue42133] Update the stdlib to fall back to __spec__.parent if __loader__ isn't defined

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : By making sure the stdlib can handle the case where __loader__ isn't defined but __spec__.parent is, eventually the former could be dropped for the latter. -- components: Library (Lib) messages: 379486 nosy: brett.cannon priority: normal severity

[issue42132] Use specs instead of just __loader__ in C code

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : _warnings.c, pylifecycle.c, and pythonrun.c all either use or set `__loader__` but without also falling back on `__spec__`. -- components: Interpreter Core messages: 379483 nosy: brett.cannon priority: normal severity: normal status: open title: Use

[issue42131] [zipimport] Update zipimport to use specs

2020-10-23 Thread Brett Cannon
New submission from Brett Cannon : zipimport only supports old PEP 302 APIs and not PEP 451 module specs (i.e. it uses load_module() instead of create_module()/exec_module(), find_mdoule() instead of find_spec()). Uses of both load_module() and find_module() are documented as deprecated

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-10-23 Thread Brett Cannon
Change by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker <https://bugs.python.org/issue26131> ___ ___ Python-bugs-list mai

[issue25509] PyImport_ImportModule inaccurately described

2020-10-23 Thread Brett Cannon
Brett Cannon added the comment: The docs for PyImport_ImportModule() is https://docs.python.org/3/c-api/import.html?highlight=pyimport_importmodule#c.PyImport_ImportModule and https://github.com/python/cpython/blob/master/Doc/c-api/import.rst. -- keywords: +easy (C) -easy

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-10-22 Thread Brett Cannon
Brett Cannon added the comment: A PR is now up. I ended up deprecating the load_module() methods in importlib itself and then raise ImportWarning in the import system itself when falling back to load_module(). -- stage: patch review -> test nee

[issue26131] Raise ImportWarning when loader.load_module() is used

2020-10-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21837 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/22905 ___ Python tracker <https://bugs.python.org/issu

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Brett Cannon
Brett Cannon added the comment: Thanks, Terry! -- ___ Python tracker <https://bugs.python.org/issue41910> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41911] Language reference for expressions incorrectly specifies what type of object(s) are expected

2020-10-21 Thread Brett Cannon
Brett Cannon added the comment: It turns out the "expressions" page of the language reference makes multiple claims about types which do not hold, e.g. for multiplication, "The arguments must either both be numbers, or one argument must be an integer and the other mus

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-21 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21816 stage: -> patch review pull_request: https://github.com/python/cpython/pull/22874 ___ Python tracker <https://bugs.python.org/issu

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

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

[issue32192] Provide importlib.util.lazy_import helper function

2020-10-05 Thread Brett Cannon
Brett Cannon added the comment: Yep, I think the example is enough to close this. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-05 Thread Brett Cannon
Brett Cannon added the comment: New changeset d02d824e05e2cb86f4df381be18832e76e2c475f by Brett Cannon in branch 'master': bpo-41584: clarify when the reflected method of a binary arithemtic operator is called (#22505) https://github.com/python/cpython/commit

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- stage: patch review -> commit review ___ Python tracker <https://bugs.python.org/issue41584> ___ ___ Python-bugs-list mai

[issue41584] Clarify documentation for binary arithmetic operation subclass __r*__ precedence

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +21516 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/22505 ___ Python tracker <https://bugs.python.org/issu

[issue41911] Language reference incorrectly says comparison expressions return boolean values

2020-10-02 Thread Brett Cannon
New submission from Brett Cannon : https://docs.python.org/3/reference/expressions.html#comparisons claims that "Comparisons yield boolean values: True or False." But that's not necessarily true: ```python >>> class Spam: ... def __eq__(self, _): return 42 ... >&g

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> brett.cannon ___ Python tracker <https://bugs.python.org/issue41910> ___ ___ Python-bugs-list mai

[issue41910] Document that object.__eq__ implements `a is b`

2020-10-02 Thread Brett Cannon
New submission from Brett Cannon : If you look at the data model `for object.__eq__` (https://docs.python.org/3.8/reference/datamodel.html#object.__eq__) you will see that it doesn't mention any actual implementation (unlike for __ne__). But https://github.com/python/cpython/blob/v3.8.3

[issue41519] `pkgutil.get_data` causes future imports of children modules to fail.

2020-09-29 Thread Brett Cannon
Brett Cannon added the comment: I wouldn't use pkgutil.get_data() -- or pkgutil, period -- and instead use importlib.resources to read data files from a package (which is available as a third-party package on PyPI if you need it for older versions of Python

[issue35328] Set a environment variable for venv prompt

2020-09-21 Thread Brett Cannon
Change by Brett Cannon : -- resolution: fixed -> status: closed -> open versions: +Python 3.10 -Python 3.9 ___ Python tracker <https://bugs.python.org/i

[issue41797] PyModule_GetState doesn't work with LazyLoader

2020-09-16 Thread Brett Cannon
Brett Cannon added the comment: Probably making LazyLoader skip being lazy for non-source modules probably makes the most sense and would be easiest to implement since it's an explicit opt-out. -- ___ Python tracker <https://bugs.python.

[issue40108] Improve error message for -m option when .py is present

2020-09-14 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -XML ___ Python tracker <https://bugs.python.org/issue40108> ___ ___ Python-bugs-list mailing list Unsub

[issue25963] strptime not parsing some timezones

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

[issue26007] Support embedding the standard library in an executable

2020-09-11 Thread Brett Cannon
Brett Cannon added the comment: Update: PEP 432 was withdrawn, so this issue is now languishing and not blocked on something else. -- ___ Python tracker <https://bugs.python.org/issue26

[issue25912] Use __spec__.__name__ instead of __name__ in the docs where appropriate

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

[issue26007] Support embedding the standard library in an executable

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

[issue26060] Class __dict__ iteration order changing due to type instance key-sharing

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

[issue25682] __package__ not set to None under pdb in Python 3

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib) -Extension Modules nosy: -brett.cannon ___ Python tracker <https://bugs.python.org/issue25682> ___ ___

[issue25343] Document atomic operations on builtin types

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

[issue25702] Link Time Optimizations support for GCC and CLANG

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

[issue25467] Put “deprecated” warnings first

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

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +easy ___ Python tracker <https://bugs.python.org/issue25509> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.10 -Python 3.5 ___ Python tracker <https://bugs.python.org/issue25509> ___ ___ Python-bugs-list mailing list Unsub

  1   2   3   4   5   6   7   8   9   10   >