[issue25509] PyImport_ImportModule inaccurately described

2020-09-11 Thread Brett Cannon
Brett Cannon added the comment: https://github.com/python/cpython/blob/45b34a04a577aa49fa4825421758c3e8eaa1625d/Python/import.c#L1474-L1485 shows that the docs could be simplified to point out that `PyImport_ImportModule()` is a wrapper around `PyImport_Import()` which takes `const char

[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

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

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

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

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

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

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

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

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

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

[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

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

[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

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

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

[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

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

[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

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

[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
Change by Brett Cannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[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

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

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

[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

[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

[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-23 Thread Brett Cannon
Change by Brett Cannon : -- stage: test needed -> commit review ___ Python tracker <https://bugs.python.org/issue26131> ___ ___ Python-bugs-list mai

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

[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

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

[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

[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

[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

[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

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

[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

[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

[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

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

[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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[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

[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

[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

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

[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

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

[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

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

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

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

[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

[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

[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

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon added the comment: Sorry, been busy. I will definitely get to it this week. On Sun, Jan 15, 2012 at 19:58, Berker Peksag wrote: > > Berker Peksag added the comment: > > Hi Brett, did you have a chance to review the patch

[issue13588] Change name of internal closure functions in importlib

2012-01-16 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Berker! It's all committed. -- ___ Python tracker <http://bugs.python.org/issue13588> ___ ___ Pytho

[issue13829] exception error

2012-01-20 Thread Brett Cannon
Brett Cannon added the comment: Can you isolate the cause? There is way too much in that core dump to try to debug the problem. Without knowing what code in this Moviegrabber app caused the bug we can't do anything to debug the issue. -- nosy: +brett.cannon status: open ->

[issue13829] exception error

2012-01-21 Thread Brett Cannon
Brett Cannon added the comment: Then I'm going to assume the bug lies with Moviegrabber doing something wrong and it isn't Python's direct fault. -- resolution: -> invalid status: open -> closed ___ Python tracker &l

[issue11235] Source files with date modifed in 2106 cause OverflowError

2012-01-24 Thread Brett Cannon
Brett Cannon added the comment: LGTM -- assignee: -> pitrou stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issue11235> ___ __

[issue13853] SystemExit/sys.exit() doesn't print boolean argument

2012-01-25 Thread Brett Cannon
Brett Cannon added the comment: Thanks for going to the trouble to report this, but this is working as intended since bool is a subclass of int. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tracker

[issue13883] PYTHONCASEOK docs mistakenly says it is limited to Windows

2012-01-26 Thread Brett Cannon
New submission from Brett Cannon : The docs for PYTHONCASEOK say it is limited to Windows, but in actuality in Python 3.x it applies to both Windows (including cygwin) and OS X. On Python 2.7 it applies to those plus RISCOS OS/2. -- assignee: docs@python components: Documentation

[issue13883] PYTHONCASEOK docs mistakenly says it is limited to Windows

2012-01-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue13883> ___ ___ Python-bugs-list

[issue13890] test_importlib failures under Windows

2012-01-27 Thread Brett Cannon
Brett Cannon added the comment: I was getting that error the other day on my OS X laptop, but then I thought I tweaked the code well enough to solve it (since I am running on a case-insensitive filesystem as well). It seems to stem from what nt.environ contains when the test sets

[issue13890] test_importlib failures under Windows

2012-01-27 Thread Brett Cannon
Brett Cannon added the comment: Otherwise it's the nt.listdir() comparison that's failing. Probably should check that is returning reasonable stuff as well. -- ___ Python tracker <http://bugs.python.o

[issue13890] test_importlib failures under Windows

2012-01-29 Thread Brett Cannon
Brett Cannon added the comment: Is there a technological reason environ is not updated, or is it simply oversight? Lib/os.py: under POXIX, os.environ reflects posix.environ (it uses the same underlying dict), while under Windows, os.environ uses a distinct dict from nt.environ

[issue13890] test_importlib failures under Windows

2012-01-30 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue13890> ___ ___ Python-bugs-list

[issue13912] ImportError using __import__ and relative level 1

2012-01-30 Thread Brett Cannon
Brett Cannon added the comment: You have a typo in a filename: it should be pkgB/__init__.py (not the missing trailing underscores). -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.p

[issue13912] ImportError using __import__ and relative level 1

2012-01-30 Thread Brett Cannon
Brett Cannon added the comment: I see your mistake now: you need to call it as __import__('pkgB', globals(), index=1), else __import__ has no clue how to anchor your import in the relative package space. Try that and let me know if it makes it work. And why exactly are you tryi

[issue13912] ImportError using __import__ and relative level 1

2012-01-31 Thread Brett Cannon
Brett Cannon added the comment: On Mon, Jan 30, 2012 at 18:33, Eric Snow wrote: > > Eric Snow added the comment: > > Jason: just a warning. importlib_backport is a relatively naive tool for > generating the backport from the py3k source. It's also relatively fragile

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-04 Thread Brett Cannon
Brett Cannon added the comment: OK, I'm down to a single bug to be solved to call this work a "success" (there are other test failures, but they are not overtly difficult to solve). At this point the bootstrapping is failing in the face of sub-interpreters. Specifically, whe

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-04 Thread Brett Cannon
Changes by Brett Cannon : -- keywords: +patch Added file: http://bugs.python.org/file24418/f0b459af26fb.diff ___ Python tracker <http://bugs.python.org/issue2

[issue13588] Change name of internal closure functions in importlib

2012-02-06 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue13954] Add regrtest option to record test results to a file

2012-02-06 Thread Brett Cannon
New submission from Brett Cannon : The idea is that if a test succeeded then it is written to a file commented out(including skipped tests w/ the appropriate comment), and if a test failed then it is left uncommented. This way the failing tests can simply be passed to --fromfile for easy

[issue2377] Replace __import__ w/ importlib.__import__

2012-02-06 Thread Brett Cannon
Brett Cannon added the comment: Thanks to Benjamin, the test_capi assert failure is fixed. At this point the only failures are listed in the FAILING file and are (probably) minor. -- ___ Python tracker <http://bugs.python.org/issue2

[issue13959] Re-implement parts of imp in pure Python

2012-02-06 Thread Brett Cannon
New submission from Brett Cannon : A bunch of code in Python/import.c exists purely for the imp module, but a large chunk of it does not need to be implemented in C but instead can be implemented in Python code. Once importlib is bootstrapped in then an attempt to scale back the C code

[issue13959] Re-implement parts of imp in pure Python

2012-02-06 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +Replace __import__ w/ importlib.__import__ ___ Python tracker <http://bugs.python.org/issue13959> ___ ___ Python-bug

[issue13961] Have importlib use os.replace()

2012-02-07 Thread Brett Cannon
New submission from Brett Cannon : The new os.replace() function should be used by importlib. -- components: Library (Lib) messages: 152810 nosy: brett.cannon priority: normal severity: normal status: open title: Have importlib use os.replace() versions: Python 3.3

<    15   16   17   18   19   20   21   22   23   24   >