[issue38931] pathlib.Path on Windows - parser issue

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

[issue38928] EnvBuilder.upgrade_dependencies() does not exist on 3.8

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

[issue38927] venv --upgrade_deps fails on Windows

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

[issue38924] pathlib paths .normalize()

2019-11-27 Thread Brett Cannon
Brett Cannon added the comment: Do note that Path inherits from PurePath, so providing a normalize() method on the latter means it will end up on the former. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38

[issue21063] Touch up one-line descriptions of modules for module index

2019-11-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset 2f2489310d89f589a091aa09ac1eb973d9a383d8 by Brett Cannon (Miss Islington (bot)) in branch '3.7': bpo-21063: Improve module synopsis for distutils (GH-17363) (#17381) https://github.com/python/cpython/commit

[issue38916] Remove array.fromstring

2019-11-26 Thread Brett Cannon
Brett Cannon added the comment: Although I will admit we have not had a discussion on python-dev about removing stuff that was left for Python 2.7 compatibility, so that discussion should probably occur first before we go ripping stuff out

[issue38916] Remove array.fromstring

2019-11-26 Thread Brett Cannon
Brett Cannon added the comment: If it was documented as deprecated and raising a deprecation warning then 3.2 is definitely far enough back to warrant removing it. -- ___ Python tracker <https://bugs.python.org/issue38

[issue21063] Touch up one-line descriptions of modules for module index

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

[issue21063] Touch up one-line descriptions of modules for module index

2019-11-25 Thread Brett Cannon
Brett Cannon added the comment: New changeset f8a6316778faff3991144c3aec4fa92d7b30a72b by Brett Cannon (Sanchit Khurana) in branch 'master': bpo-21063: Improve module synopsis for distutils (GH-17363) https://github.com/python/cpython/commit/f8a6316778faff3991144c3aec4fa92d7b30a72b

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-25 Thread Brett Cannon
Brett Cannon added the comment: @Vinay you got exactly what I mean. I had to actually teach a ton of people that shell trick with basename and pwd on Twitter, that trick doesn't seem to be something people know about, and yet a ton of people seem to be creating virtual environments

[issue38901] Add a CLI flag to venv to use the pwd basename as the prompt

2019-11-23 Thread Brett Cannon
New submission from Brett Cannon : I did a Twitter poll to see if there was consistent naming of the directory people created a virtual environment into when done locally to code (the answer is no). But a common theme was people not liking that the prompt defaults to the name

[issue38899] Document that virtual environment activation for fish should use `source`

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

[issue38483] [venv] Add ~/.venvrc to change module defaults

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: Is this best served in the stdlib or in an external tool like how virtualenvwrapper is separate from virtualenv? While I get the convenience of not having to install another tool to do this, it does bring in some complexity that does not directly tie

[issue38899] Document that virtual environment activation for fish should use `source`

2019-11-22 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +16844 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17359 ___ Python tracker <https://bugs.python.org/issu

[issue38899] Document that virtual environment activation for fish should use `source`

2019-11-22 Thread Brett Cannon
New submission from Brett Cannon : https://fishshell.com/docs/current/commands.html#source -- assignee: brett.cannon components: Documentation messages: 357346 nosy: brett.cannon priority: low severity: normal status: open title: Document that virtual environment activation for fish

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: I just realized one problem with this is it explicitly requires subclassing the ABC while os.PathLike is supposed to represent a protocol (before typing.Protocol was a thing). So why is it bad that in the example class B is considered a "sub

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

2019-11-22 Thread Brett Cannon
Brett Cannon added the comment: @greg I hope this goes into 3.8.1 since it was a breaking change. @victor if we are going to ask folks to start using a setter and getter I say we might as well get it right the first time and start taking the tstate now

[issue38883] Path.home() should ignore HOME env var like os.path.expanduser()

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

[issue38870] Expose ast.unparse in the ast module

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

[issue38884] __import__ is not thread-safe on Python 3

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: Can you test this with a package that isn't tensorflow (e.g. something else in the stdlib or something created manually; basically a smaller reproducer)? It's hard to diagnose if this is really Python or not without a smaller reproducer as tensorflow might

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: Ah, your `assert` call threw me since it does succeed so it isn't acting as a test case. -- resolution: not a bug -> status: closed -> open ___ Python tracker <https://bugs.python.org/i

[issue38884] __import__ is not thread-safe on Python 3

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

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

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: Posted https://mail.python.org/archives/list/python-...@python.org/thread/4UZJYAZL3NHRAGN5WAMJC4IHAHEXF3QF/ to see if anyone else wants to weigh in. -- ___ Python tracker <https://bugs.python.org/issue38

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

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: @Mark > PEP 523 makes no mention of adding a getter or setter. > Adding them is a big change to Python semantics and shouldn't, IMO, be done > without a PEP that explicit states they are going to be added. Adding getters or setters for

[issue38885] Have os.PathLike inherit from typing.Protocol

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: Closing as importing 'typing' in 'os' is probably too much and would impact start-up time. -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker <https://bug

[issue38885] Have os.PathLike inherit from typing.Protocol

2019-11-21 Thread Brett Cannon
New submission from Brett Cannon : Since os.PathLike explicitly defines a a protocol, it would make sense to have it inherit from typing.Protocol instead of abc.ABC. -- components: Library (Lib) messages: 357206 nosy: brett.cannon priority: normal severity: normal status: open title

[issue38878] os.PathLike subclasshook causes subclass checks true on abstract implementation

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: I can't reproduce in Python 3.8.0: >>> import os >>> class A(os.PathLike): pass ... >>> class B: ... def __fspath__(self): pass ... >>> issubclass(B, A) True Did you check against an older version of Python? --

[issue38021] pep425 tag for AIX is inadequate

2019-11-21 Thread Brett Cannon
Brett Cannon added the comment: I'm not in a good position to review distutils stuff. -- ___ Python tracker <https://bugs.python.org/issue38021> ___ ___ Pytho

[issue38765] `ast.AST._attributes` is used by `ast.dump()` but not documented

2019-11-20 Thread Brett Cannon
Brett Cannon added the comment: It's also possible the leading underscore was used to prevent name collisions. Unfortunately I don't know the history of _attributes, so without someone digging through the git history or personally knowing the reason behind it I don't know whether we should

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

2019-11-20 Thread Brett Cannon
Brett Cannon added the comment: OK, then my vote is to provide getter and setter methods that are underscore-prefixed to mark them as "internal" with clear comments specifying that they are part of PEP 523 and thus should not be needlessly broken in a bugf

[issue38839] Fix some unused functions in test suite

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

[issue38839] Fix some unused functions in test suite

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: New changeset 892221bfa04a41cf581f988ba19dc263f557e157 by Brett Cannon (Adam Johnson) in branch 'master': bpo-38839: Fix some unused functions in tests (GH-17189) https://github.com/python/cpython/commit/892221bfa04a41cf581f988ba19dc263f557e157

[issue38839] Fix some unused functions in test suite

2019-11-19 Thread Brett Cannon
Change by Brett Cannon : -- title: Some unused functions in test suite -> Fix some unused functions in test suite ___ Python tracker <https://bugs.python.org/issu

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

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: I think the real question is whether this is part of the CPython public API or the CPython internal API. @Fabio how burdensome would it be if we placed this in the internal API that you can get access to but we don't make backwards-compatibility guarantees

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

2019-11-19 Thread Brett Cannon
Brett Cannon added the comment: I've assigned this to Joannah to decide if she wants to backport this. -- assignee: -> nanjekyejoannah nosy: +nanjekyejoannah ___ Python tracker <https://bugs.python.org/issu

[issue38818] Modify PyInterpreterState.eval_frame to pass tstate (PyThreadState)

2019-11-18 Thread Brett Cannon
Brett Cannon added the comment: I think bpo-38500 needs to get resolved first before this as that will affect whether this is acceptable or not as an API-breaking change. -- ___ Python tracker <https://bugs.python.org/issue38

[issue34572] C unpickling bypasses import thread safety

2019-11-15 Thread Brett Cannon
Brett Cannon added the comment: 3.6 and 3.5 are in security mode, so unless there's a security risk due to this bug the fix will not be backported to those older versions (https://devguide.python.org/#status-of-python-branches). -- ___ Python

[issue38811] Pathlib crashes when os module is missing 'link' method

2019-11-15 Thread Brett Cannon
Brett Cannon added the comment: Just an FYI a raised exception isn't considered a crash. For us a crash is a C-level crash like a segfault. -- nosy: +brett.cannon type: crash -> behavior ___ Python tracker <https://bugs.python.org/issu

[issue38793] pathlib.Path.resolve(strict=False) strips final path components

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

[issue38782] Convert importlib.abc to use typing.Protocol

2019-11-12 Thread Brett Cannon
New submission from Brett Cannon : Now that typing.Protocol exists we should convert the ABCs in importlib over to protocols as the import system functions off of structural typing and not nominal typing. -- components: Library (Lib) messages: 356501 nosy: brett.cannon priority: low

[issue26467] Add async magic method support to unittest.mock.Mock

2019-11-12 Thread Brett Cannon
Brett Cannon added the comment: Adding Lisa to potentially add the PR from Ilya. -- assignee: -> lisroach ___ Python tracker <https://bugs.python.org/issu

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

2019-11-12 Thread Brett Cannon
Brett Cannon added the comment: I would like to bring this issue back on topic as this about how to expose PEP 523 support in Python 3.8, not whether Fabio should be using a different approach when he has been something sanctioned in an accepted PEP and was previously doable

[issue38773] Fatal Python error: Aborted

2019-11-12 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2019-11-07 Thread Brett Cannon
Brett Cannon added the comment: PEP 523 was to give user code the ability to change the eval function. While the work was motivated by our JIT work, supporting debugging was another motivating factor: https://www.python.org/dev/peps/pep-0523/#debugging. There's no C API because at the time

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

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

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

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: I've flagged this as a release blocker so the Release Manager can make a call about whether this should hold up future releases. -- nosy: +brett.cannon priority: normal -> release blocker ___ Python tracker <

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: Basically you have to figure out where that bad memory came from and that's just plain hard in C short of slowly cutting out code until you get a small reproducer. Typically these sorts of issues are almost always in the extension modules, but your case

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

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: @Mark are you strongly opposed because we're providing an API for changing the eval function in the CPython API and you think it should be in the private API? Or you objecting to PEP 523 all-up (based on your list of objections)? Either way the PEP

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

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

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

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

[issue38665] Crash when running SQLAlchemy with pyodbc

2019-11-04 Thread Brett Cannon
Brett Cannon added the comment: Can you trace this to actually being Python's fault? Unfortunately you're using two extension modules who both could be at fault with this. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.

[issue38649] tkinter messagebox is sloppy

2019-10-31 Thread Brett Cannon
Brett Cannon added the comment: Please note that calling something "sloppy" and that somehow its development was done in some "carelessness" fashion to the point of being "egregious" is not motivating to others to try and help. Trying to support all of this code

[issue38651] Add WolfSSL support

2019-10-31 Thread Brett Cannon
Brett Cannon added the comment: My guess is we won't want to take code specific to WolfSSL due to maintenance overhead of trying to support another SSL library. There has been talk about trying to move away from our OpenSSL dependency and switch to using the OS's native secure sockets

[issue38627] Add copy() method to pathlib

2019-10-29 Thread Brett Cannon
Brett Cannon added the comment: And just to add Serhiy's logic, think of pathlib more as an equivalent to os.path than a be-all solution to anything path-related. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38

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

2019-10-28 Thread Brett Cannon
Change by Brett Cannon : -- title: Bug in traceback.py -> ElementTree.ParseError does not implement SyntaxError interface as expected ___ Python tracker <https://bugs.python.org/issu

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

2019-10-28 Thread Brett Cannon
Brett Cannon added the comment: Can you provide a small reproducer? Otherwise the recursion check is mostly best effort if you have recursion in C code which never goes out to Python code where the recursion check is implemented. -- nosy: +brett.cannon

[issue38569] Unknown distribution option: 'license_files'

2019-10-24 Thread Brett Cannon
Brett Cannon added the comment: Why do you think the warning can be removed? Is it documented as supported in distutils? If setuptools supports that argument but not distutils then that would be a bug against them. -- nosy: +brett.cannon

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

2019-10-23 Thread Brett Cannon
Brett Cannon added the comment: @Peter you can close this if issue36541 will fix your issue (i.e. both assignment expressions and positional-only parameters). -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue38

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

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

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

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

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

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

[issue38413] Remove or change "Multithreading" section

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

[issue26219] implement per-opcode cache in ceval

2019-10-07 Thread Brett Cannon
Brett Cannon added the comment: I personally think it would be fine to change the wording to say "measurable speed-up" and not attribute a specific number. -- ___ Python tracker <https://bugs.python.o

[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

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

[issue38357] print adding extra bytes in hex above x7F

2019-10-03 Thread Brett Cannon
Brett Cannon added the comment: @Artificial please see the various blog posts and explanations about why the clear separation between bytes and text came to be and thus this change isn't "unnecessarily complicated". -- nosy: +br

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

2019-10-02 Thread Brett Cannon
Brett Cannon added the comment: Closing as not a bug as this seems to be an issue from installing over a b3 or earlier build where the importlib/metadata/ directory gets left behind and thus take priority in import over importlib/metadata.py. -- nosy: +brett.cannon resolution

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

2019-09-30 Thread Brett Cannon
Brett Cannon added the comment: So it's a bit misleading to use the stdlib as a guideline because there are reasons we do this in certain spots. E.g. the os module purposefully does function-level imports to make startup cheaper. importlib does this to minimize how many modules need

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

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

[issue38222] pathlib Path objects should support __format__

2019-09-19 Thread Brett Cannon
Brett Cannon added the comment: I'm -1 as PEP 519 created __fspath__ specifically so that pathlib.Path wouldn't be confused as a string by accident. You can also use os.fspath() to get a string representation of the path itself. I also don't know if Antoine wants to make this sort of call

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

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

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

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

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

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

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

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

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

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: New changeset 145cf1f50c8a8e8233e641f345cd5e25ee69190a by Brett Cannon (Dong-hee Na) in branch 'master': bpo-35923: Update the BuiltinImporter to use loader._ORIGIN instead of a hard-coded value (GH-15651) https://github.com/python/cpython/commit

[issue38102] Document importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD

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

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

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

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

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: New changeset 37c22206981f52ae35c28b39f7530f8438afbfdb by Brett Cannon (Joannah Nanjekye) in branch 'master': bpo-35943: Prevent PyImport_GetModule() from returning a partially-initialized module (GH-15057) https://github.com/python/cpython/commit

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

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

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

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: New changeset 0a6693a469cfb1dd5c8048d8cb4231a7b5883251 by Brett Cannon in branch '3.8': [3.8] bpo-37409: fix relative import with no parent (GH-14956) (GH-15913) https://github.com/python/cpython/commit/0a6693a469cfb1dd5c8048d8cb4231a7b5883251

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

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

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

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: New changeset 92420b3e679959a7d0ce875875601a4cee45231e by Brett Cannon (Ben Lewis) in branch 'master': bpo-37409: fix relative import with no parent (#14956) https://github.com/python/cpython/commit/92420b3e679959a7d0ce875875601a4cee45231e

[issue37585] Comparing PyDictValues does not give expected results

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

[issue37585] Comparing PyDictValues does not give expected results

2019-09-11 Thread Brett Cannon
Brett Cannon added the comment: New changeset 6472ece5a0fe82809d3aa0ffb281796fcd252d76 by Brett Cannon (Kyle Stanley) in branch 'master': bpo-37585: Add clarification regarding comparing dict.values() (GH-14954) https://github.com/python/cpython/commit

[issue38102] Document importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD

2019-09-11 Thread Brett Cannon
New submission from Brett Cannon : importlib.machinery.WindowsRegistryFinder.DEBUG_BUILD has existed since Python 3.3 (https://hg.python.org/cpython/file/v3.3.0/Lib/importlib/_bootstrap.py#l1750). -- assignee: docs@python components: Documentation messages: 351784 nosy: brett.cannon

[issue38086] Synchronize importlib.metadata with importlib_metadata 0.21

2019-09-10 Thread Brett Cannon
Brett Cannon added the comment: New changeset 17499d82702432955d8e442a1871ff276ca64bc5 by Brett Cannon (Jason R. Coombs) in branch 'master': bpo-38086: Sync importlib.metadata with importlib_metadata 0.21. (GH-15840) https://github.com/python/cpython/commit

[issue37683] Use importlib.resources in venv

2019-09-09 Thread Brett Cannon
Brett Cannon added the comment: Since no one has ever asked for this I won't worry about it. This was mostly to start using the proper API for reading data out of a package, but it isn't critical. -- resolution: -> rejected stage: -> resolved status: open -&g

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

2019-09-09 Thread Brett Cannon
Brett Cannon added the comment: This works as expected as nothing is inherently injected into your global namespace in any of the other code that you are executing. Otherwise the fact that the imported module is not being put into sys.modules also doesn't help if you're trying to get access

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

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

[issue37936] gitignore file is too broad

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

[issue37935] Improve performance of pathlib.scandir()

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

[issue37663] Making venv activation script prompts consistent

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

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

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

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

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

[issue37890] Modernize several tests in test_importlib

2019-08-22 Thread Brett Cannon
Brett Cannon added the comment: I would just read through the other tests files under test_importlib to see how other tests were done. -- ___ Python tracker <https://bugs.python.org/issue37

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

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

[issue37663] Making venv activation script prompts consistent

2019-08-21 Thread Brett Cannon
Brett Cannon added the comment: New changeset 48ede6b8f685669f53d26ae8456647af42ae3dae by Brett Cannon in branch 'master': bpo-37663: have venv activation scripts all consistently use __VENV_PROMPT__ for prompt customization (GH-14941) https://github.com/python/cpython/commit

[issue37890] Modernize several tests in test_importlib

2019-08-21 Thread Brett Cannon
Brett Cannon added the comment: A key question here is why are you trying to avoid the AttributeError case so much? If something has a bug and an attribute doesn't exist that should then that's a bug and the test needs to catch that. Now whether that's via an error from AttributeError being

[issue37890] Modernize several tests in test_importlib

2019-08-20 Thread Brett Cannon
Brett Cannon added the comment: What Serhiy said. :) There's code to be able to easily test both builtins.__import__ and importlib.__import__ in tests so that there's no drift between the two implementations. -- ___ Python tracker <ht

[issue37860] Add netlify deploy preview for docs

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

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

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

<    2   3   4   5   6   7   8   9   10   11   >