[issue36256] parser module fails on legal input

2019-03-12 Thread Brett Cannon
Brett Cannon added the comment: It's sounding like it might be worth the effort then to make lib2to3's parser not be a "hidden" thing in lib2to3, break it out as a new parser module (I have no stance on name), and then deprecate the old parser module. I think this was discussed a

[issue36256] parser module fails on legal input

2019-03-11 Thread Brett Cannon
Brett Cannon added the comment: I would be curious to hear what Pablo has to say with the new parser having landed and if there's something we should be exposing from that code to replace what's in 'parser' today? (Either w/o semantic change or a new API

[issue35843] importlib.util docs for namespace packages innaccurate

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

[issue33944] Deprecate and remove pth files

2019-03-07 Thread Brett Cannon
Brett Cannon added the comment: RE: " So basically you'd remove the whole feature just cause one package no one installs abuses it. Doesn't make sense." No, the point being made is *at least* one package that was found on PyPI is abusing it, so it exists and we need to consider the p

[issue32387] Disallow untagged C extension import on major platforms

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: It's 3.8 time now. :) Should we try and resolve this? -- ___ Python tracker <https://bugs.python.org/issue32387> ___ ___ Pytho

[issue36043] FileCookieJar constructor don't accept PathLike

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

[issue35843] importlib.util docs for namespace packages innaccurate

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: Anyone have an opinion about the __getitem__ proposal? I'm fine with it but I wanted to make sure other import + namespace folks don't disagree. -- ___ Python tracker <https://bugs.python.org/issue35

[issue36153] Freeze support documentation is misleading.

2019-03-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue36153> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: Yes, the Mac installer should have installed everything, but software isn't perfect. :) I would try installing again. -- nosy: +brett.cannon, ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.

[issue36128] ResourceReader for FileLoader inconsistently handles path separators

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

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-02-20 Thread Brett Cannon
Brett Cannon added the comment: And I don't know what a good solution would be. :) I.e. should some other exception be raised? Should it be ignored? I just don't know personally. -- ___ Python tracker <https://bugs.python.org/issue36

[issue36035] pathlib.Path().rglob() breaks with broken symlinks

2019-02-20 Thread Brett Cannon
Brett Cannon added the comment: I consider this an enhancement since you do have a loop in your symlinks and so having it not exactly work isn't totally shocking. But that doesn't mean that if someone can come up with a reasonable solution to fixing this annoyance it woudn't be accepted

[issue29757] The loop in utility `socket.create_connection()` swallows previous errors

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

[issue36029] Use consistent case for HTTP header fields

2019-02-20 Thread Brett Cannon
Brett Cannon added the comment: As stated on the PR, changing the code isn't going to be worth it, but updating the docs would be nice. -- ___ Python tracker <https://bugs.python.org/issue36

[issue35661] Store the venv prompt in pyvenv.cfg

2019-02-14 Thread Brett Cannon
Brett Cannon added the comment: I think upgrading the scripts to read from pyvenv.cfg is a separate issue per activation script (e.g. an issue for PowerShell, an issue for fish, etc.) as this could be done piecemeal. One benefit to doing this is it would help move towards the activation

[issue35843] importlib.util docs for namespace packages innaccurate

2019-02-14 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +barry, eric.smith, eric.snow, ncoghlan ___ Python tracker <https://bugs.python.org/issue35843> ___ ___ Python-bugs-list mailin

[issue35321] None _frozen_importlib.__spec__.origin attribute

2019-02-14 Thread Brett Cannon
Brett Cannon added the comment: Can this be closed? -- ___ Python tracker <https://bugs.python.org/issue35321> ___ ___ Python-bugs-list mailing list Unsub

[issue12317] inspect.getabsfile() is not documented

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

[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

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

[issue35887] Doc string for updating the frozen version of importlib in _bootstrap.py incorrect

2019-02-13 Thread Brett Cannon
Brett Cannon added the comment: New changeset 1dc5cb9cb3447211069a7788208254b1cfa8ec98 by Brett Cannon (Nina Zakharenko) in branch 'master': bpo-35887: Add make regen-importlib step to importlib._bootstrap docstring (GH-11777) https://github.com/python/cpython/commit

[issue35736] [xml.minidom] Missing component in table after getElementsByTagName("nn")

2019-01-15 Thread Brett Cannon
Change by Brett Cannon : -- title: Missing component in table after getElementsByTagName("nn") -> [xml.minidom] Missing component in table after getElementsByTagName("nn") ___ Python tracker <https://

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-15 Thread Brett Cannon
Brett Cannon added the comment: First, Cheryl, thanks for taking this on! I think one way to potentially simplify this whole situation about the whitespace for the prompt is to actually store the raw value that gets passed into EnvBuilder instead of the prompt as formatted

[issue35698] Division by 2 in statistics.median

2019-01-10 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +steven.daprano ___ Python tracker <https://bugs.python.org/issue35698> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35698] [statistics] Division by 2 in statistics.median

2019-01-10 Thread Brett Cannon
Change by Brett Cannon : -- title: Division by 2 in statistics.median -> [statistics] Division by 2 in statistics.median ___ Python tracker <https://bugs.python.org/issu

[issue35701] [uuid] 3.8 breaks weak references for UUIDs

2019-01-10 Thread Brett Cannon
Change by Brett Cannon : -- title: 3.8 needlessly breaks weak references for UUIDs -> [uuid] 3.8 breaks weak references for UUIDs ___ Python tracker <https://bugs.python.org/issu

[issue35692] pathlib.Path.exists() on non-existent drive raises WinError instead of returning False

2019-01-09 Thread Brett Cannon
Change by Brett Cannon : -- components: +Library (Lib), Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue35

[issue35683] Enable manylinux1 builds on Pipelines for CI testing

2019-01-08 Thread Brett Cannon
Change by Brett Cannon : -- title: Enable manylinux1 builds on Pipelines -> Enable manylinux1 builds on Pipelines for CI testing ___ Python tracker <https://bugs.python.org/issu

[issue35676] unittest assert helper methods have incorrect signature in docs

2019-01-08 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +michael.foord, rbcollins ___ Python tracker <https://bugs.python.org/issue35676> ___ ___ Python-bugs-list mailing list Unsub

[issue2506] Add mechanism to disable optimizations

2019-01-08 Thread Brett Cannon
Brett Cannon added the comment: If someone can get a PR into a state that is acceptable, then this can be resolved, Arthur. But at this point that hasn't occurred. -- ___ Python tracker <https://bugs.python.org/issue2

[issue35488] pathlib Path.match does not behave as described

2019-01-06 Thread Brett Cannon
Brett Cannon added the comment: New changeset 83da926b89daf80013ea966037c2c0e1e9d25c6b by Brett Cannon (Anthony Shaw) in branch 'master': bpo-35488: Add tests for ** glob matching in pathlib (GH-11171) https://github.com/python/cpython/commit/83da926b89daf80013ea966037c2c0e1e9d25c6b

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-04 Thread Brett Cannon
New submission from Brett Cannon : When creating the pyvenv.cfg file, the prompt setting should be stored there so that tools can introspect on it (e.g. VS Code could read the value to tell users the name of the venv they have selected in the status bar). -- assignee: brett.cannon

[issue35661] Store the venv prompt in pyvenv.cfg

2019-01-04 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue35661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35661] Store the venv prompt in pyvenv.cfg

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

[issue35556] See if frozen modules can use relative imports

2018-12-21 Thread Brett Cannon
New submission from Brett Cannon : https://gregoryszorc.com/blog/2018/12/18/distributing-standalone-python-applications/ claims it doesn't work. -- components: Library (Lib) messages: 332314 nosy: brett.cannon priority: low severity: normal stage: test needed status: open title: See

[issue22166] test_codecs leaks references

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

[issue35520] Python won't build with dtrace enabled on some systems.

2018-12-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +lukasz.langa ___ Python tracker <https://bugs.python.org/issue35520> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35498] Parents objects in pathlib.Path don't support slices as __getitem__ arguments

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

[issue35488] pathlib Path.match does not behave as described

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

[issue35486] subprocess module import hooks breaks back compatibility

2018-12-17 Thread Brett Cannon
Brett Cannon added the comment: RE: "PEP-302 and PEP-451 are the definitive specifications for how sys.meta_path is supposed to work" That's actually not true. In the case of import the language reference is considered the reference for import: https://docs.python.org/3

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset d5176fe2bcd35dc8d70d13220b58fa7ccd05b47a by Brett Cannon (Miss Islington (bot)) in branch '3.7': bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11167) https://github.com/python

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-14 Thread Brett Cannon
Brett Cannon added the comment: New changeset 1fb312ce1f147ea84ecb6f5993a20d1a85c53dc3 by Brett Cannon (Miss Islington (bot)) in branch '3.6': bpo-35450: reflect in docs that venv module is not always creating a copy of the Python binary (GH-11144) (GH-11168) https://github.com/python

[issue35465] [asyncio] Document loop.add_signal_handler

2018-12-12 Thread Brett Cannon
Change by Brett Cannon : -- title: Document add_signal_handler -> [asyncio] Document loop.add_signal_handler ___ Python tracker <https://bugs.python.org/issu

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-11 Thread Brett Cannon
Brett Cannon added the comment: Obviously if you're willing to create a PR, Marcin, that would be great! -- ___ Python tracker <https://bugs.python.org/issue35

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-11 Thread Brett Cannon
Brett Cannon added the comment: Correct, that should say something like "copy/symlink of the Python binary/binaries (as appropriate by the platform or arguments used at environment creation time)." -- nosy: +brett.cannon ___ Pyth

[issue35450] venv module doesn't create a copy of python binary by default

2018-12-11 Thread Brett Cannon
Change by Brett Cannon : -- stage: -> needs patch versions: +Python 3.5, Python 3.6, Python 3.8 ___ Python tracker <https://bugs.python.org/issue35450> ___ _

[issue35429] Incorrect use of raise NotImplemented

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: This was fixed by https://github.com/python/cpython/pull/10934 -- nosy: +brett.cannon stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/i

[issue35431] Add a function for computing binomial coefficients to the math module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- title: The math module should provide a function for computing binomial coefficients -> Add a function for computing binomial coefficients to the math module ___ Python tracker <https://bugs.python.org/issu

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: PRs should always be against 'master' unless the issue is already fixed there. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue35

[issue35376] modulefinder skips nested modules with same name as top-level bad module

2018-12-07 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +jvr ___ Python tracker <https://bugs.python.org/issue35376> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35376] modulefinder skips nested modules with same name as top-level bad module

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

[issue35376] modulefinder skips nested modules with same name as top-level bad module

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

[issue33747] Failed separate test_patch_propogrates_exc_on_exit in test_unittest

2018-12-07 Thread Brett Cannon
Brett Cannon added the comment: New changeset 3cf74384b53b998fa846dc2590cedf9ad2a0d5fd by Brett Cannon (Anirudha Bose) in branch 'master': bpo-33747: Avoid mutating the global sys.modules dict in unittest.mock tests (GH-8520) https://github.com/python/cpython/commit

[issue35354] Generator functions stack overflow

2018-11-30 Thread Brett Cannon
Brett Cannon added the comment: How did you make a recursive generator? The 'yield' would have paused execution. Do you have code you can share to reproduce? Otherwise blowing your stack out is normal behaviour in a function which you can deal with by lowering your stack depth

[issue35358] Document that importlib.import_module accepts names that are not valid Python syntax

2018-11-30 Thread Brett Cannon
Brett Cannon added the comment: I agree that this shouldn't change and at best can be a documentation update to mention the fact that importlib.import_module() doesn't restrict itself to valid syntax names on purpose. -- assignee: -> docs@python components: +Documentation n

[issue35346] Modernize Lib/platform.py code

2018-11-29 Thread Brett Cannon
Brett Cannon added the comment: It's because the module was originally kept compatible with Python 1.5.2: https://www.python.org/dev/peps/pep-0291/#backward-compatible-packages-modules-and-tools -- nosy: +brett.cannon ___ Python tracker <ht

[issue35343] Importlib.reload has different behaviour in script and interactive mode

2018-11-29 Thread Brett Cannon
Brett Cannon added the comment: It will because your file change happens so quickly by script that your file system isn't leading to a different mtime on the source, and so the bytecode isn't being regenerated. When you do it by hand you're physically slow enough to have the file copies

[issue35319] pkgutil.get_data() is a wrapper for a deprecated class

2018-11-27 Thread Brett Cannon
Brett Cannon added the comment: You can use importlib.resources to read data files and such from within a package as an alternative. -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue35

[issue35320] Writable __spec__.has_location attribute

2018-11-27 Thread Brett Cannon
Brett Cannon added the comment: The docs do not specify that has_location is read-only: https://docs.python.org/3/library/importlib.html#importlib.machinery.ModuleSpec.has_location . And PEPs are not updated once they are implemented as that would mean we would have to perpetually update

[issue35321] None _frozen_importlib.__spec__.origin attribute

2018-11-27 Thread Brett Cannon
Brett Cannon added the comment: I can replicate. Do note, though, that PEPs are not documentation once they are implemented; at that point the official docs are what should be followed. -- components: +Interpreter Core -Library (Lib) nosy: -docs@python stage: -> test needed t

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-26 Thread Brett Cannon
Brett Cannon added the comment: I think the only thing missing from your list, Andrew, is updating docstrings and such to mention is_alive() instead of isAlive(). -- ___ Python tracker <https://bugs.python.org/issue35

[issue35281] Allow access to unittest.TestSuite tests

2018-11-26 Thread Brett Cannon
Brett Cannon added the comment: Gotcha, thanks for the clarification! Unfortunately I don't think we will be able to accommodate your feature request. It's duplicating an API to simply save calling list() which is the idiomatic way to convert an iterable into a concrete sequence

[issue31241] ast col_offset wrong for list comprehensions, generators and tuples

2018-11-26 Thread Brett Cannon
Brett Cannon added the comment: Yeah, it's a tough call because it's one of those things others have probably worked around already, so backporting would break the work-arounds. If you don't want to bother backporting, Serhiy, I think it would be fine to not do

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-22 Thread Brett Cannon
Brett Cannon added the comment: I guess the question is whether any other Python implementation is threadless? E.g. is MicroPython? If it even has threads then I agree about deprecating the module. But if MicroPython does support threads we should keep the module. That would mean updating

[issue35134] Add a new Include/unstable/ subdirectory for the "unstable" API

2018-11-22 Thread Brett Cannon
Brett Cannon added the comment: The "unstable" name bugs me as it suggests we might change it without notice which isn't true at all. It's more a limited versus broad API. So maybe rename the directory "broad"? -- nosy: +brett.cannon __

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2018-11-21 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the PR! -- ___ Python tracker <https://bugs.python.org/issue28401> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35284] Incomplete error handling in Python/compile.c:compiler_call()

2018-11-21 Thread Brett Cannon
Change by Brett Cannon : -- title: Incomplete error handling in the compiler's compiler_call() -> Incomplete error handling in Python/compile.c:compiler_call() ___ Python tracker <https://bugs.python.org/issu

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-21 Thread Brett Cannon
Brett Cannon added the comment: Care to open a PR to fix this? -- nosy: +brett.cannon ___ Python tracker <https://bugs.python.org/issue35283> ___ ___ Python-bug

[issue35283] "threading._DummyThread" redefines "is_alive" but forgets "isAlive"

2018-11-21 Thread Brett Cannon
Change by Brett Cannon : -- type: crash -> behavior ___ Python tracker <https://bugs.python.org/issue35283> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue26415] Excessive peak memory consumption by the Python parser

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

[issue35281] Allow access to unittest.TestSuite tests

2018-11-20 Thread Brett Cannon
Brett Cannon added the comment: I don't quite follow what you're after as it sounds the same as calling `list(test_suite)`. Am I missing something or are you just trying to avoid the list creation? -- nosy: +brett.cannon ___ Python tracker

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

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

[issue35131] Cannot access to customized paths within .pth file

2018-11-19 Thread Brett Cannon
Brett Cannon added the comment: There is not "find best encoding" code, hence why so much code out there uses chardet. :) This might also tie into issue #33944 and the idea of rethinking .pth files. -- nosy: +brett.cannon ___ Pyth

[issue35244] Allow to setup Clang as default compiler for modules build

2018-11-15 Thread Brett Cannon
Change by Brett Cannon : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker <https://bugs.python.org/issue35

[issue35253] Linker warning LNK4281

2018-11-15 Thread Brett Cannon
Brett Cannon added the comment: No, it's not a problem, just a potential enhancement. -- nosy: +brett.cannon, paul.moore, steve.dower, tim.golden, zach.ware type: compile error -> enhancement ___ Python tracker <https://bugs.python.org/issu

[issue35137] Exception in isinstance when __class__ property raises

2018-11-02 Thread Brett Cannon
Brett Cannon added the comment: I'm with Serhiy that exceptions should not be swallowed up unless there's a very good reason to, and in this instance there isn't if there's a bug in code as that low of a level as debugging that would be atrocious. -- nosy: +brett.cannon resolution

[issue35042] Use the role :pep: for the PEP \d+

2018-10-26 Thread Brett Cannon
Brett Cannon added the comment: New changeset 12e696b4f071ffe0d585b7f0d0d8020fd328bfdd by Brett Cannon (Stéphane Wirtel) in branch 'master': bpo-35042: Use the :pep: role where a PEP is specified (#10036) https://github.com/python/cpython/commit/12e696b4f071ffe0d585b7f0d0d8020fd328bfdd

[issue18114] Update PyImport_ImportFrozenModuleObject() to set __package__

2018-10-26 Thread Brett Cannon
Brett Cannon added the comment: I'm not sure if it's still relevant. :) Feel free to look at the code and come back here with a recommendation as to whether this is still necessary or not. -- ___ Python tracker <https://bugs.python.org/issue18

[issue35051] Fix pep8 on Lib/turtledemo module

2018-10-24 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue35040] [functools] provide an async-compatible version of functools.lru_cache

2018-10-22 Thread Brett Cannon
Brett Cannon added the comment: Making this a feature request. -- nosy: +brett.cannon title: functools.lru_cache does not work with coroutines -> [functools] provide an async-compatible version of functools.lru_cache type: -> enhancement versions: -Python 3.5, Python 3.6,

[issue35001] ImportFrom level cannot be optional

2018-10-18 Thread Brett Cannon
Brett Cannon added the comment: There aren't any type hints in the 'ast' module in Python itself, so this is an issue with typeshed. Closing as "third party". -- nosy: +brett.cannon resolution: -> third party stage: -> resolved status

[issue35006] itertools.combinations has wrong type when using the typing package

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

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2018-10-16 Thread Brett Cannon
Change by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker <https://bugs.python.org/issue35003> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue35003] Provide an option to venv to put files in a bin/ directory on Windows

2018-10-16 Thread Brett Cannon
New submission from Brett Cannon : Having venv install files into Scripts/ on Windows but into bin/ on UNIX is troublesome for anything that tries to be cross-platform regarding virtual environments. Having a way to create a virtual environment on Windows where bin/ is used over Scripts

[issue34985] python finds test modules from the wrong directory during PGO build

2018-10-15 Thread Brett Cannon
Brett Cannon added the comment: I think there might be more going on here as the build target as it uses the built Python which has special logic to notice it is being built in a checkout. Did you launch the build from a directory other than the git checkout? Or were you trying to do

[issue34903] strptime %d handling of single digit day of month

2018-10-05 Thread Brett Cannon
Brett Cannon added the comment: So the documentation reads that way because it was originally written for strftime and has been repurposed to represent both. If the code does the right thing then adding a note that strptime supports single digits accurately would probably be a welcome pull

[issue34609] Importing certain modules while debugging raises an exception

2018-09-28 Thread Brett Cannon
Brett Cannon added the comment: The failure line that Cheryl found in her traceback is at https://github.com/python/cpython/blob/master/Lib/importlib/_bootstrap.py#L101 . Maybe Antoine has an idea since he did a bunch of work on import locking? -- nosy: +pitrou

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-27 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +asvetlov ___ Python tracker <https://bugs.python.org/issue34802> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30964] Mention ensurepip in package installation docs

2018-09-25 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker <https://bugs.python.org/issue30964> ___ ___ Python-bugs-list

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-24 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +davin, pitrou ___ Python tracker <https://bugs.python.org/issue34781> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32718] Install PowerShell activation scripts for venv for all platforms

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

[issue30576] http.server should support HTTP compression (gzip)

2018-09-15 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the understanding, Pierre (and thanks for the work on Brython!). On Sat., Sep. 15, 2018, 08:25 Pierre Quentel, wrote: > > Pierre Quentel added the comment: > > Brett, > > Thanks for taking the time, you and other core devs

[issue32718] Install PowerShell activation scripts for venv for all platforms

2018-09-14 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +8746 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue32718> ___ ___ Py

[issue30576] http.server should support HTTP compression (gzip)

2018-09-11 Thread Brett Cannon
Brett Cannon added the comment: I'm agreeing with all the other core devs (other than Victor ;) that I don't quite think this should go in. While I appreciate the work Pierre put into the PR, I just can't find myself to want to deal with future bug reports for this while http.server

[issue18307] Relative path in co_filename for zipped modules

2018-09-10 Thread Brett Cannon
Brett Cannon added the comment: So it sounds like that maybe we need to decide if we are going to replace zipimport with Serhiy's Python version. And if we do decide to go with the Python code then it should get updated to use _imp._fix_co_filename(). Regardless of the decision, obviously

[issue34619] Typo in docs.python.jp

2018-09-10 Thread Brett Cannon
Brett Cannon added the comment: Karthikeyan is right that translation bugs should be reported on the GitHub project for the translation. -- nosy: +brett.cannon resolution: -> third party stage: -> resolved status: open -> closed _

[issue34200] importlib: python -m test test_pkg -m test_7 fails randomly

2018-09-01 Thread Brett Cannon
Brett Cannon added the comment: Maybe I'm missing something, but who is racing whom in this case? All the examples people have shared are simply running the test module directly which means there's no parallelism in the execution of the test runner with other tests. Does unittest.main

[issue25711] Rewrite zipimport from scratch

2018-08-31 Thread Brett Cannon
Brett Cannon added the comment: I'm personally in no rush and I assume Serhiy isn't either with 3.8 cut-off quite a ways out, so I see no rush. -- ___ Python tracker <https://bugs.python.org/issue25

[issue34546] Add encryption support to zipfile

2018-08-31 Thread Brett Cannon
Change by Brett Cannon : -- title: Zipfile encryption function -> Add encryption support to zipfile ___ Python tracker <https://bugs.python.org/issu

[issue25711] Rewrite zipimport from scratch

2018-08-31 Thread Brett Cannon
Brett Cannon added the comment: I think Serhiy's PR is basically done, so now the question is do we want to merge it in and drop the C code? ;) I obviously say yes because this is I/O-bound code and so the switch shouldn't be enough of a performance hit to warrant blocking the gain

[issue34538] Remove encouragement to author a base class for all Exception subclasses in a module

2018-08-30 Thread Brett Cannon
Brett Cannon added the comment: I'm not questioning if people have ever created a base exception for an entire package, I'm just asking how often it's actually used when the base exception didn't make sense outside of the rule-of-thumb Nathaniel is pointing out? For instance, it could makes

<    5   6   7   8   9   10   11   12   13   14   >