[issue37409] relative import without parent

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: The code doing the sanity check for importlib can be found at https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Lib/importlib/_bootstrap.py#L943-L948 . -- ___ Python tracker <ht

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: Importllib code raising the exception is https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Lib/importlib/_bootstrap.py#L874-L876 . -- ___ Python tracker <https://bugs.python.

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: I think this should be an ImportError and so that means builtins.__import__() is wrong. Anyone want to argue for the other side? -- ___ Python tracker <https://bugs.python.org/issue37

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

2019-06-28 Thread Brett Cannon
Change by Brett Cannon : -- title: relative import without parent -> relative import without parent succeeds with builtins.__import__ ___ Python tracker <https://bugs.python.org/issu

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: import.c code raising the exception: https://github.com/python/cpython/blob/f9f8e3ce709ceb15c8db8c8dde940daf1febf13d/Python/import.c#L1675-L1677 -- ___ Python tracker <https://bugs.python.org/issue37

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

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: If you run with `-Xdev`/warnings turned on you get an idea of what's happening: >>> builtins.__import__('', globals(), locals(), ('foo',), 1) :1: ImportWarning: can't resolve package from __spec__ or __package__, fall

[issue37403] Recommend .venv for virtual environment names

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

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

2019-06-28 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the PR, aeros167! BTW, if you want to open a new issue and modernize the tests to use importlib directly that would be great! -- ___ Python tracker <https://bugs.python.org/issue19

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

2019-06-29 Thread Brett Cannon
New submission from Brett Cannon : ensurepip is using pkgutil.get_data() which isn't as clean as importlib.resources for reading data from within a package. -- components: Library (Lib) messages: 346907 nosy: brett.cannon priority: normal severity: normal stage: needs patch s

[issue37459] importlib docs improperly reference get_resource_loader()

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

[issue37486] pathlib.Path('.').parent is itself rather than parent

2019-07-02 Thread Brett Cannon
Brett Cannon added the comment: Would it be worth to set 'parent' to None in this instance? Might break code but would also be potentially less surprising. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.o

[issue37403] Recommend .venv for virtual environment names

2019-07-02 Thread Brett Cannon
Change by Brett Cannon : -- stage: needs patch -> resolved ___ Python tracker <https://bugs.python.org/issue37403> ___ ___ Python-bugs-list mailing list Un

[issue37501] Test failures when CPython is built without docstrings

2019-07-05 Thread Brett Cannon
Brett Cannon added the comment: Bit surprised by the test_importlib failure. What has crept into there that requires docstrings? -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue37

[issue37130] pathlib.Path.with_name() handles '.' and '..' inconsistently

2019-07-05 Thread Brett Cannon
Brett Cannon added the comment: Thinking about this a bit, I my gut says having Path('.').name == '.' makes more sense than returning ''. My reasoning is that in any case where there's a single value -- e.g. Path('spam') -- you end up with the

[issue37512] Error in the documentation about string concatenation

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: I'm going to close this as we try to avoid documenting CPython-specific details unless absolutely necessary. And in the case of documenting the str type we should avoid that. So thanks for the suggestion, Dmitriy, but we will just leave this as a ple

[issue37514] french translation Spelling mistake on datetime python's library documentation online

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : -- assignee: docs@python -> mdk ___ Python tracker <https://bugs.python.org/issue37514> ___ ___ Python-bugs-list mailing list Un

[issue37519] Three inconsistent module attributes

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: PEPs actually become historical documents once they are implemented, so could you please check what the official docs say in regards to this to see if there is an inconsistency in the semantics? -- nosy: +brett.cannon

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue37521> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Brett Cannon added the comment: Mind re-uploading the examples files with a more appropriate file name? (Saying "import is f-'ed" is not motivating to those of us who wrote it to try and fix this.) -- ___ Python tracker <https

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48460/importsfucked.zip ___ Python tracker <https://bugs.python.org/issue37521> ___ ___ Python-bug

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-08 Thread Brett Cannon
Change by Brett Cannon : Removed file: https://bugs.python.org/file48461/importsfucked.zip ___ Python tracker <https://bugs.python.org/issue37521> ___ ___ Python-bug

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

2019-07-09 Thread Brett Slatkin
Brett Slatkin added the comment: I believe the scope of this bug may be larger than it originally seemed. Now that ProactorEventLoop is the default for Python 3.8 (https://bugs.python.org/issue34687), I'm seeing this same problem on Windows when you try to call asyncio.new_event_loop()

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

2019-07-09 Thread Brett Cannon
Brett Cannon added the comment: @joannah no clue if this ever happened. Could you check the code if DeprecationWarning is being raised yet? -- ___ Python tracker <https://bugs.python.org/issue26

[issue37521] importlib.util.module_from_spec return value is not the same as in sys.modules

2019-07-10 Thread Brett Cannon
Brett Cannon added the comment: Thanks! I'll try to have a look when I can. -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: So the issue is the lines assigning to sys.modules and loader.exec_module() are reversed. Had you not done an import in your testext.__init__ you never would have noticed, but since you are then the normal import system is noticing there's nothi

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: I will have a PR up shortly to fix the docs. -- ___ Python tracker <https://bugs.python.org/issue37521> ___ ___ Python-bug

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +14519 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/14723 ___ Python tracker <https://bugs.python.org/issu

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-12 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the report, Benjamin! -- resolution: -> fixed stage: patch review -> needs patch status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37577] ModuleNotFoundError: No module named '_sysconfigdata__linux_x86_64-linux-gnu'

2019-07-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +doko ___ Python tracker <https://bugs.python.org/issue37577> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19696] Merge all (non-syntactic) import-related tests into test_importlib

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

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-15 Thread Brett Cannon
Brett Cannon added the comment: I'm not sure why you think importlib.util.module_from_spec() adds a module to sys.modules? https://docs.python.org/3/library/importlib.html#importlib.util.module_from_spec doesn't say that nor does https://github.com/python/cpython/blob/master/Lib

[issue37519] Three inconsistent module attributes

2019-07-15 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +eric.smith ___ Python tracker <https://bugs.python.org/issue37519> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-16 Thread Brett Cannon
Brett Cannon added the comment: Nope, loader.exec_module() doesn't either: https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.exec_module, https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py#L776. So unfortunately I'm still not

[issue37608] _thread: acquire_lock, release_lock still in use while declared to be "gone" in Documentation

2019-07-17 Thread Brett Cannon
Brett Cannon added the comment: The documentation is correct by not documenting the methods as they are not meant to be used. A warning could be added, but it requires new code to wrap the C function with a DeprecationWarning since that code is currently shared between

[issue37521] importlib examples have their exec_module()/sys.modules assignment lines reversed

2019-07-17 Thread Brett Cannon
Brett Cannon added the comment: If you're using your example code for 'testext' that you uploaded then that's expected because the import in your package causes a normal import which means the import machinery is adding things to sys.modules. Try it with a plain module

[issue37616] [3.10 prep] zip path incorrect

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

[issue37617] [3.10 prep] site.py uses `sys.version[:3]`

2019-07-18 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> third party ___ Python tracker <https://bugs.python.org/issue37617> ___ ___ Python-bugs-list mailing list Un

[issue35476] _imp_create_dynamic_impl() does not clear error.

2019-07-19 Thread Brett Cannon
Brett Cannon added the comment: Why would was want to swallow an exception? I think it would be better to let the exception propagate. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue35

[issue37656] Can't pip install because of bisect_left

2019-07-23 Thread Brett Cannon
Brett Cannon added the comment: I'm going to close this as this is more likely an Anaconda or path problem than a CPython problem. But as Raymond said, chances are you have some other file named bisect on your sys.path. -- nosy: +brett.cannon resolution: -> third par

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

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : Or at least update the comment as the URL at https://github.com/python/cpython/blob/master/Lib/venv/scripts/common/activate#L62 is a 404 and the domain seems to be a news site in Asia now (http://www.zetadev.com/). -- components: Library (Lib

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

2019-07-23 Thread Brett Cannon
Brett Cannon added the comment: And this code and comment exists outside of just the bash activation script: https://github.com/python/cpython/blob/master/Lib/venv/scripts/posix/activate.fish#L62 -- title: Drop support for Aspen magic directories in venv's activate script -&g

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

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : If you look at https://github.com/python/cpython/blob/master/Lib/venv/__init__.py#L112-L113 you will see that the prompt context for a virtual environment is always set. Then if you look at the string substitutions for the activation scripts you will also

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

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +vinay.sajip ___ Python tracker <https://bugs.python.org/issue37660> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37662] Document venv.EnvBuilder.upgrade_dependencies()

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : The upgrade_deps parameter to EnvBuilder exists and venv.EnvBuilder.create() calls self.upgrade_dependencies(), but that method isn't documented anywhere. -- messages: 348352 nosy: brett.cannon, vinay.sajip priority: normal severity: normal s

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
New submission from Brett Cannon : There are five activation scripts and they are all do things differently when it comes to prompt manipulation. Standardizing on one set of semantics would probably be good for consistency and so people know what to expect regardless of their shell

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- priority: normal -> low ___ Python tracker <https://bugs.python.org/issue37663> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37663] Making venv activation script prompts consistent

2019-07-23 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: +Drop support for Aspen magic directories in venv's activate scripts, venv activation scripts erroneously check if __VENV_PROMPT__ is defined ___ Python tracker <https://bugs.python.org/is

[issue37663] Making venv activation script prompts consistent

2019-07-24 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +14713 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14941 ___ Python tracker <https://bugs.python.org/issu

[issue37683] Use importlib.resources in venv

2019-07-25 Thread Brett Cannon
New submission from Brett Cannon : Right now the venv module directly reads the file system to find the activation scripts and then copies them over. Moving over to importlib.resources would be a more portable solution. Unfortunately the venv API is specifically tied to the file system via

[issue37674] Is imp module deprecated or pending deprecation?

2019-07-25 Thread Brett Cannon
Brett Cannon added the comment: It's deprecated: https://github.com/python/cpython/blob/master/Lib/imp.py#L31. The wording is from back when the module was soft-deprecated via documentation before it was hard-deprecated via code. Feel free to tweak it to say "The imp module is dep

[issue37688] The results from os.path.isdir(...) an Path(...).is_dir() are not equivalent for empty path strings.

2019-07-26 Thread Brett Cannon
Brett Cannon added the comment: I think you're reading "equivalence" too strictly here to mean "exactly the same semantics". In this instance it means "for similar functionality, the equivalent method is ..." (admittedly this might be a quirk of the use

[issue37130] pathlib.Path.with_name() handles '.' and '..' inconsistently

2019-07-26 Thread Brett Cannon
Brett Cannon added the comment: Anyone up for doing a PR that makes Path('.').name == '.'? It would be good to see if that would break the stdlib as a proxy as to how many people might be relying on these semantics. My hope is nothing breaks in which case we can make t

[issue37689] Add Path.is_relative_to()

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

[issue37688] The results from os.path.isdir(...) an Path(...).is_dir() are not equivalent for empty path strings.

2019-07-29 Thread Brett Cannon
Brett Cannon added the comment: Changing the semantics of os.path.isdir() for something like this isn't worth breaking code; basically it's now a quirk of the function. -- ___ Python tracker <https://bugs.python.o

[issue37730] NotImplemented is used instead of NotImplementedError in docs

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

[issue37735] Current Region as a Method either in openpyxl.worksheet.cell.Cell or .cell_range.CellRange

2019-07-31 Thread Brett Cannon
Brett Cannon added the comment: This is the issue tracker for Python itself, not openpyxl, so this isn't the right place to report this. I would go to openpyxl's website and see where they specify to report bugs. -- nosy: +brett.cannon resolution: -> third party stage:

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-01 Thread Brett Cannon
New submission from Brett Cannon : If you look at https://docs.python.org/3.9/py-modindex.html#cap-i you will see that importlib.metadata isn't listed (same goes for the 3.8 docs). Or are you leaving it out due to it being provisional? -- assignee: docs@python compo

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

2019-08-02 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue37409> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue37772] zipfile.Path.iterdir() outputs sub directories many times or not at all

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

[issue37775] update doc of compileall

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

[issue37444] Differing exception between builtins and importlib when importing beyond top-level package

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

[issue37741] importlib.metadata docs not showing up in the module index

2019-08-06 Thread Brett Cannon
Brett Cannon added the comment: If there's no porting benefit then let's move it to a single module instead of a package. -- ___ Python tracker <https://bugs.python.o

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

2019-08-09 Thread Brett Cannon
Brett Cannon added the comment: If you look at https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap.py and https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap_external.py you will notice a bunch of comments near all the calls to load_module(). Those are

[issue30633] Python 3.6.1 installation issues on OpenSuse 42.1: ModuleNotFoundError: No module named 'encodings'

2017-06-12 Thread Brett Cannon
Brett Cannon added the comment: What commands did you use to launch this build? (E.g. I noticed you are trying to do a PGO build.) -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue30

[issue30645] imp.py: load_package: function has a buggy loop with `path = os.path.join(path, '__init__'+extension)`

2017-06-13 Thread Brett Cannon
Brett Cannon added the comment: Three things. One, the imp module is deprecated, so please don't use it. Two, all undocumented functions in the imp module are considered unsupported, so double-please don't use imp.load_package(). :) Three, we can't look at that patch wit

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-13 Thread Brett Cannon
Changes by Brett Cannon : -- title: imp.py: load_package: function has a buggy loop with `path = os.path.join(path, '__init__'+extension)` -> imp.py: load_package() appends to its own loop variable ___ Python tracker <http:/

[issue27485] urllib.splitport -- is it official or not?

2017-06-13 Thread Brett Cannon
Brett Cannon added the comment: Go for it, Cheryl! -- ___ Python tracker <http://bugs.python.org/issue27485> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: Yes, we're as corporate as an open source project that doesn't have enough funding to be able to defend against a lawsuit but is big enough that simply shutting down would really suck for millions of people. ;) Anyway, your CLA signing came through

[issue30662] fix OrderedDict.__init__ docstring to reflect PEP 468

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: Past Python details should not be included in docstrings; it should simply represent the current code. -- nosy: +brett.cannon, eric.snow ___ Python tracker <http://bugs.python.org/issue30

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-06-14 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue30436> ___

[issue30436] importlib.find_spec raises AttributeError when parent is not a package/module

2017-06-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset 8c3f05e9f0f0b30a3d4a2433e92471794d8258af by Brett Cannon (Milan Oberkirch) in branch 'master': bpo-30436: Raise ModuleNotFoundError for importlib.util.find_spec() when parent isn't a package (GH-1899) https://github.com/python

[issue18967] Find a less conflict prone approach to Misc/NEWS

2017-06-19 Thread Brett Cannon
Brett Cannon added the comment: Yep, core-workflow work has superseded this issue. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-19 Thread Brett Cannon
Brett Cannon added the comment: So is PR 2035 a fix for this? This discussion on this exact problem seems to have ended up spanning a couple issues and a PR so I'm losing track of where things sit at the moment. -- ___ Python tracker

[issue30697] segfault in PyErr_NormalizeException() after memory exhaustion

2017-06-20 Thread Brett Cannon
Brett Cannon added the comment: And hence why you proposed having a counter of 128 (or some number) to prevent the infinite recursion. I think this has gotten sufficiently complicated and into the bowels of CPython itself it might make sense to ask for a reviewer from python-committers (I

[issue30604] co_extra_freefuncs is stored thread locally and can lead to crashes

2017-06-21 Thread Brett Cannon
Brett Cannon added the comment: Should this be closed since the all PRs got merged? -- ___ Python tracker <http://bugs.python.org/issue30604> ___ ___ Python-bug

[issue30741] https://www.pypi-mirrors.org/ error 503

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: So is this a bug in Python or a problem with the website? If it's the former then the title is misleading and we should clarify it, and if it's the latter this should be closed as "third party". --

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset c38e32a10061a7c6d54e7e53ffabf7af7998f045 by Brett Cannon (Alexandru Ardelean) in branch 'master': bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) https://github.com/python

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +2413 ___ Python tracker <http://bugs.python.org/issue30645> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- pull_requests: +2414 ___ Python tracker <http://bugs.python.org/issue30645> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 9db3ae045dd462a2da2e016c44231de1befd1f87 by Brett Cannon in branch '3.6': [3.6] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (#2364) https://github.com/python/cpython/commit/9db3ae045dd462a2da2e016c4

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: New changeset 599ff020b308113f3709fd4e623d9f0d08511706 by Brett Cannon in branch '3.5': [3.5] bpo-30645: don't append to an inner loop path in imp.load_package() (GH-2268) (GH-2365) https://github.com/python

[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-06-23 Thread Brett Cannon
Brett Cannon added the comment: Just an FYI that I have never managed to make this work. -- ___ Python tracker <http://bugs.python.org/issue11978> ___ ___ Pytho

[issue30645] imp.py: load_package() appends to its own loop variable

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker <http://bugs.python.or

[issue11978] Report correct coverage.py data for tests that invoke subprocesses

2017-06-23 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker <http://bugs.python.org/issue11978> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30750] Update `make patchcheck` to understand Misc/NEWS.d

2017-06-24 Thread Brett Cannon
New submission from Brett Cannon: Title says it all. -- messages: 296797 nosy: brett.cannon, pitrou priority: normal severity: normal status: open title: Update `make patchcheck` to understand Misc/NEWS.d ___ Python tracker <http://bugs.python.

[issue30750] Update `make patchcheck` to understand Misc/NEWS.d

2017-06-26 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue30750> ___

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-28 Thread Brett Cannon
Brett Cannon added the comment: Why do you want an index of *just* decorators? The documentation is structured so you look for the module that probably contains a solution to your problem and then you see what the module may have (which may have a solution that isn't a decorator). Ju

[issue30772] If I make an attribute "[a unicode version of B]", it gets assigned to "[ascii B]", and so on.

2017-06-28 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue30772> ___ ___

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon
Brett Cannon added the comment: Both staticmethod and contextmanager are in the index under "S" and "C". But if you mean they were hard to discover, having them under a list of decorators wouldn't have necessarily helped since, as we pointed out, you may get misled

[issue30787] Please add a comprehensive index of decorators to the documentation.

2017-06-30 Thread Brett Cannon
Brett Cannon added the comment: And thanks for at least bringing the idea forward, Tom. -- ___ Python tracker <http://bugs.python.org/issue30787> ___ ___ Pytho

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-04 Thread Brett Cannon
Brett Cannon added the comment: My guess is the import of package has completed but package.submodule hasn't (I don't know what state it would be in, but obviously before the module is assigned as an attribute on the package), a context switch occurs, and then the assignment fa

[issue30876] SystemError on import

2017-07-08 Thread Brett Cannon
Brett Cannon added the comment: So this is very old semantics from the Python 2 days. I think Nick's idea of transforming the import to `import pkg.mod` when pkg isn't in sys.modules is probably the simplest, cleanest solution if we're going

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-08 Thread Brett Cannon
Changes by Brett Cannon : -- priority: normal -> low ___ Python tracker <http://bugs.python.org/issue30841> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue30841] A shadowing variable naming emitted for Python-ast.c

2017-07-08 Thread Brett Cannon
Changes by Brett Cannon : -- type: compile error -> enhancement ___ Python tracker <http://bugs.python.org/issue30841> ___ ___ Python-bugs-list mailing list Un

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-08 Thread Brett Cannon
Brett Cannon added the comment: I just wanted to say thanks to everyone who helped to fix this bug. The locking situation in import is probably the trickiest part of it and has also been tweaked the most as of late and so solving these kinds of issues is tricky

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
New submission from Brett Cannon: Based on all the work currently going into fixing the locking situation for imports, it's probably a good idea to expose it publicly so others can use it. -- components: Library (Lib) messages: 298077 nosy: brett.cannon priority: normal sev

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
Changes by Brett Cannon : -- dependencies: +importlib: _find_and_load() race condition on sys.modules[name] check ___ Python tracker <http://bugs.python.org/issue30

[issue30893] Expose importlib._bootstrap._ModuleLockManager in importlib.machinery

2017-07-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +eric.snow, ncoghlan ___ Python tracker <http://bugs.python.org/issue30893> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30901] "503 HTTP ERROR" on attempt to access some points of python library documentation

2017-07-11 Thread Brett Cannon
Brett Cannon added the comment: Those pages all work for me. May have been transient. -- nosy: +brett.cannon resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue23916] module importing performance regression

2017-07-16 Thread Brett Cannon
Brett Cannon added the comment: I agree with Antoine that this shouldn't change. Having said that, it wouldn't be hard to write your own finder using importlib that doesn't get the directory contents and instead checks for the file directly (and you could even set it just for y

<    18   19   20   21   22   23   24   25   26   27   >