[issue39199] Improve the AST documentation

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Would not be better to use mode='eval' for expression nodes? >>> print(ast.dump(ast.parse('123', mode='eval'), indent=4)) Expression( body=Constant(value=123, kind=None)) -- nosy: +serhiy.storchaka

[issue39827] setting a locale that uses comma as decimal separator breaks tkinter.DoubleVar

2020-03-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34822] Simplify AST for slices

2020-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: The one thing in the PR that makes me slightly wary is the point Vedran raised: in the old AST _Unparser code, the fact that index tuples containing slices should be printed without parentheses was encapsulated in the ExtSlice node type, but with Index and

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +18183 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18824 ___ Python tracker

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : ast.unparse() produces incorrect output for ExtSlice containing a single element: >>> print(ast.unparse(ast.parse('a[i:j,]'))) a[i:j] It also produces redundant parenthesis for Index containing Tuple: >>> print(ast.unparse(ast.parse('a[i, j]')))

[issue34822] Simplify AST for slices

2020-03-07 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: Yes, there is an already PR about that the bug. Related PR: https://github.com/python/cpython/pull/17892 -- ___ Python tracker ___

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-07 Thread SHANKAR JHA
SHANKAR JHA added the comment: I have created my draft with an example but I am confused about where exactly do I have to add the code and push it. I have cloned these two repositories in my system and setup everything: https://github.com/python/cpython https://github.com/python/devguide 1.

[issue39861] French doc __futur__: Bad URL

2020-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: b.p.o is for the cpython repository, which includes the English docs. Translations are in separate repositories (like python-docs-fr) with their own trackers, with issues handled by the corresponding translators. -- nosy: +terry.reedy

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-07 Thread Nick Coghlan
Nick Coghlan added the comment: One of the intended use cases for Py_mod_create is to return instances of ModuleType subclasses rather than straight ModuleType instances. And those are definitely legal to define: >>> import __main__ >>> class MyModule(type(__main__)): pass ... >>> m =

[issue14126] Speed up list comprehensions by preallocating the list where possible

2020-03-07 Thread Ammar Askar
Ammar Askar added the comment: Aah, thanks for the catcher Victor. Missed that this was about list /comprehensions/, not the list constructor. -- ___ Python tracker ___

[issue39888] modules not install

2020-03-07 Thread Mageshkumar
New submission from Mageshkumar : pls kindly rectify it -- components: Windows files: modules install issues.txt messages: 363595 nosy: magesh, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: modules not install type: compile error

[issue39829] __len__ called twice in the list() constructor

2020-03-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The only specification is that len(ob) calls ob.__len__ and that ob.__len__ should return an 'integer >= 0'. (Adding side effects goes beyond that spec.) I agree that a detectable internal in list is not a bug. Unless there is a realistic performance

[issue34822] Simplify AST for slices

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added to produce nicer output. Currently: >>> print(ast.unparse(ast.parse('a[i, j]'))) a[(i, j)] With PR 9605: >>> print(ast.unparse(ast.parse('a[i, j]'))) a[i, j] The current code is not consistent with outputting parenthesis: >>>

[issue39887] Duplicate C object description of vectorcallfunc

2020-03-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : $ make html ... Warning, treated as error: /home/serhiy/py/cpython/Doc/c-api/call.rst:71:duplicate C object description of vectorcallfunc, other instance in /home/serhiy/py/cpython/Doc/c-api/typeobj.rst -- assignee: docs@python components:

[issue34822] Simplify AST for slices

2020-03-07 Thread Vedran Čačić
Vedran Čačić added the comment: Agree with the idea, but think the name is too narrow. How about `parethesized`? There are many contexts where parentheses look weird and can be omitted (e.g. after return statement), although subscripts are currently the only place where they are an outright

[issue14126] Speed up list comprehensions by preallocating the list where possible

2020-03-07 Thread STINNER Victor
STINNER Victor added the comment: > I believe this was implemented in issue33234 I don't think so. The bytecode in Python 3.9 still uses "BUILD_LIST 0": Python 3.9.0a4+ (heads/daemon_thread_runtime2-dirty:48652767d5, Mar 7 2020, 00:56:07) >>> def f(): ... for i in range(1): ...

[issue33234] Improve list() pre-sizing for inputs with known lengths

2020-03-07 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-14126: "Speed up list comprehensions by preallocating the list where possible". -- ___ Python tracker ___

[issue39792] Two Ctrl+C is required to terminate when a pipe is blocking

2020-03-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-07 Thread Terry J. Reedy
Change by Terry J. Reedy : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18184 pull_request: https://github.com/python/cpython/pull/18826 ___ Python tracker ___

[issue39199] Improve the AST documentation

2020-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +18186 pull_request: https://github.com/python/cpython/pull/18828 ___ Python tracker ___

[issue39844] IDLE 3.8.2 on MacOS 10.15.3 Launches to Black Windows

2020-03-07 Thread Ned Deily
Ned Deily added the comment: Thanks for the pythoninfo output. I didn't see anything unusual there. So I remain perplexed. The thing is the macOS Tk 8.6.8 we supply with current python.org installers doesn't support Dark Mode at all, AFAIK. That was added in 8.6.9. I normally have macOS

[issue36144] Dictionary union. (PEP 584)

2020-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 4663f66f3554dd8e2ec130e40f6abb3c6a514775 by Brandt Bucher in branch 'master': bpo-36144: Update MappingProxyType with PEP 584's operators (#18814) https://github.com/python/cpython/commit/4663f66f3554dd8e2ec130e40f6abb3c6a514775 --

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-07 Thread hai shi
hai shi added the comment: > we have no idea what Py_mod_create might have done that needs to be cleaned > up. Looks like no extension module author use `Py_mod_create` slots now. -- ___ Python tracker

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 92b72788ecf2ee5dfac780c7dfb5ee5350fc641d by Serhiy Storchaka in branch '3.8': [3.8] bpo-39889: Fix unparse.py for subscript. (GH-18824). (GH-18826) https://github.com/python/cpython/commit/92b72788ecf2ee5dfac780c7dfb5ee5350fc641d --

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 1.0 -> 2.0 pull_requests: +18185 pull_request: https://github.com/python/cpython/pull/18827 ___ Python tracker

[issue39199] Improve the AST documentation

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Would not be better to use mode='eval' for expression nodes? Agreed! I will prepare a PR soon to simplify the expression examples. -- ___ Python tracker

[issue14126] Speed up list comprehensions by preallocating the list where possible

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Isn't this the same as https://bugs.python.org/issue36551 ? -- nosy: +pablogsal ___ Python tracker ___

[issue39878] Remove unused args in Python/formatter_unicode.c

2020-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset ad0c775ea24bb827410f01ece9f191309292bb95 by Andy Lester in branch 'master': closes bpo-39878: Remove unused arguments from static functions. (GH-18822) https://github.com/python/cpython/commit/ad0c775ea24bb827410f01ece9f191309292bb95

[issue36144] Dictionary union. (PEP 584)

2020-03-07 Thread Curtis Bucher
Change by Curtis Bucher : -- nosy: +curtisbucher nosy_count: 11.0 -> 12.0 pull_requests: +18189 pull_request: https://github.com/python/cpython/pull/18832 ___ Python tracker

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2020-03-07 Thread Brandt Bucher
Change by Brandt Bucher : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

[issue39888] modules not install

2020-03-07 Thread Eric V. Smith
Eric V. Smith added the comment: This looks like a network problem on your end, not a python bug. The bug tracker is not the place to get help for such an issue. You might try the python-list mailing list, although your best bet is to find someone locally who can help you debug your network

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset eb7560a73d46800e4ade4a8869139b48e6c92811 by Pablo Galindo in branch 'master': bpo-38894: Fix pathlib.Path.glob in the presence of symlinks and insufficient permissions (GH-18815)

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread miss-islington
Change by miss-islington : -- pull_requests: +18188 pull_request: https://github.com/python/cpython/pull/18831 ___ Python tracker ___

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 3.0 -> 4.0 pull_requests: +18187 pull_request: https://github.com/python/cpython/pull/18830 ___ Python tracker

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread miss-islington
miss-islington added the comment: New changeset cca0b31fb8ed7d25ede68f314d4a85bb07d6ca6f by Miss Islington (bot) in branch '3.7': bpo-38894: Fix pathlib.Path.glob in the presence of symlinks and insufficient permissions (GH-18815)

[issue39890] The AST is mangled when compiling starred assignments.

2020-03-07 Thread Brandt Bucher
New submission from Brandt Bucher : It looks like assignment_helper is the only place where we actually change the semantic meaning of the AST during compilation (a starred name is changed to a regular name as a shortcut). This probably isn't a great idea, and it would bite us later if we

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread miss-islington
miss-islington added the comment: New changeset 65b031090161331470827ec809732008b15030d5 by Miss Islington (bot) in branch '3.7': [3.8] bpo-39889: Fix unparse.py for subscript. (GH-18824). (GH-18826) https://github.com/python/cpython/commit/65b031090161331470827ec809732008b15030d5

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread miss-islington
miss-islington added the comment: New changeset 928b4dd0edf0022190a8a296c8ea65e7ef55c694 by Miss Islington (bot) in branch '3.8': bpo-38894: Fix pathlib.Path.glob in the presence of symlinks and insufficient permissions (GH-18815)

[issue39832] Modules with decomposable characters in module name not found on macOS

2020-03-07 Thread Ned Deily
Ned Deily added the comment: This seems like more an import issue than a uniquely macOS issue. Also, a quick search found Issue10952 which appears to be similar. -- nosy: +brett.cannon, vstinner ___ Python tracker

[issue39893] Add set_terminate() to logging

2020-03-07 Thread wyz23x2
wyz23x2 added the comment: typo: "with something else", not "wit something else". Sorry for that. -- ___ Python tracker ___ ___

[issue39768] remove tempfile.mktemp()

2020-03-07 Thread wyz23x2
Change by wyz23x2 : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39659] pathlib calls `os.getcwd()` without using accessor

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18191 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18834 ___ Python tracker ___

[issue39837] Remove Azure Pipelines from GitHub PRs

2020-03-07 Thread Roundup Robot
Change by Roundup Robot : -- nosy: +python-dev nosy_count: 4.0 -> 5.0 pull_requests: +18192 pull_request: https://github.com/python/cpython/pull/18835 ___ Python tracker ___

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-07 Thread Brandt Bucher
Brandt Bucher added the comment: Ah, I didn't realize that os.environ and os.environ b aren't dict subclasses. I've added a ticket to update them with the new operators! -- ___ Python tracker

[issue39894] `pathlib.Path.samefile()` calls `os.stat()` without using accessor

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18193 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18836 ___ Python tracker ___

[issue39894] `pathlib.Path.samefile()` calls `os.stat()` without using accessor

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `Path.samefile()` calls `os.stat()` directly. It should use the path's accessor object, as `Path.stat()` does. -- components: Library (Lib) messages: 363629 nosy: barneygale priority: normal severity: normal status: open title:

[issue39791] New `files()` api from importlib_resources.

2020-03-07 Thread Ben Thayer
Change by Ben Thayer : -- nosy: +benthayer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39896] Const args and remove unused args in Python/compile.c

2020-03-07 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18194 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18837 ___ Python tracker ___

[issue39896] Const args and remove unused args in Python/compile.c

2020-03-07 Thread Andy Lester
New submission from Andy Lester : Remove unused args from: * binop * compiler_next_instr * inplace_binop Const arguments for: * assemble_jump_offsets * blocksize * check_caller * check_compare * check_index * check_is_arg * check_subscripter * compiler_error * compiler_new_block *

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `Path.touch()` does a lot of os-specific /stuff/ that should probably live in the accessor. Perhaps most importantly, is calls `os.close()` on whatever `accessor.open()` returns, which is problematic for those wishing to write their own accessor that doesn't

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `pathlib.Path.expanduser()` does not call `os.path.expanduser()`, but instead re-implements it. The implementations look pretty similar and I can't see a good reason for the duplication. The only difference is that `pathlib.Path.expanduser()` raises

[issue39893] Add set_terminate() to logging

2020-03-07 Thread wyz23x2
New submission from wyz23x2 : Sometimes, we want to remove the ending \n and sometimes replace it wit something else, like print(). But logging doesn't support that. I'd want a set_terminate() (Or set_end()) function that does that. I think it's easy. Just insert this at line 1119 of __init__

[issue36144] Dictionary union. (PEP 584)

2020-03-07 Thread Brandt Bucher
Brandt Bucher added the comment: Issue 39857 just reminded me that we should update os._Environ as well (the type of os.environ and os.environb). I have another first-timer who will probably want to take it. -- ___ Python tracker

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-07 Thread Brandt Bucher
Brandt Bucher added the comment: Caleb's answer, using PEP 584's merge operator: newenv = os.environ | {'FOO': ..., 'BAR': ...} subprocess.run(..., env=new_env, ...) -- nosy: +brandtbucher ___ Python tracker

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-03-07 Thread Tim Peters
Tim Peters added the comment: If you pursue this, please introduce a new function for it. You immediately have an idea about how to change the current function precisely because it _doesn't_ try to guess what you really wanted. That lack of magic is valuable - you're not actually confused

[issue39890] The AST is mangled when compiling starred assignments

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Thanks for the great catch, Brandt! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue39890] The AST is mangled when compiling starred assignments

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d5aa2e941ccc44412b95d0e3f0a1789fbcccf403 by Brandt Bucher in branch 'master': bpo-39890: Don't mutate the AST when compiling starred assignments (GH-18833) https://github.com/python/cpython/commit/d5aa2e941ccc44412b95d0e3f0a1789fbcccf403

[issue39895] `pathlib.Path.touch()` calls `os.close()` without using accessor

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18195 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18838 ___ Python tracker ___

[issue39897] `pathlib.Path.is_mount()` calls `Path(self.parent)` and therefore misbehaves in `Path` subclasses

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `pathlib.Path.is_mount()` calls `Path(self.parent)`, which: - Is needless, as `self.parent` is already a Path instance! - Prevents effective subclassing, as `self.parent` may be a `Path` subclass with its own `stat()` implementation -- components:

[issue39898] Remove unused arg from append_formattedvalue in Python/ast_unparse.c

2020-03-07 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +18197 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18840 ___ Python tracker ___

[issue39898] Remove unused arg from append_formattedvalue in Python/ast_unparse.c

2020-03-07 Thread Andy Lester
New submission from Andy Lester : append_formattedvalue() has an unused bool is_format_spec. -- components: Interpreter Core messages: 363634 nosy: petdance priority: normal severity: normal status: open title: Remove unused arg from append_formattedvalue in Python/ast_unparse.c

[issue39897] `pathlib.Path.is_mount()` calls `Path(self.parent)` and therefore misbehaves in `Path` subclasses

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18196 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18839 ___ Python tracker ___

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are two reasons: 1. os.path.expanduser() returns the path unchanged when a home directory cannot be resolved, pathlib.Path.expanduser() raises an error. The latter behavior looks more robust, but we can't change os.path.expanduser(). 2.

[issue39868] Stale Python Language Reference docs (no walrus).

2020-03-07 Thread Brandt Bucher
Brandt Bucher added the comment: > I have created my draft with an example but I am confused about where exactly > do I have to add the code and push it. > I have cloned these two repositories in my system and setup everything: > https://github.com/python/cpython >

[issue39891] [difflib] Improve get_close_matches() to better match when casing of words are different

2020-03-07 Thread brian.gallagher
New submission from brian.gallagher : Currently difflib's get_close_matches() doesn't match similar words that differ in their casing very well. Example: user@host:~$ python3 Python 3.6.9 (default, Nov 7 2019, 10:44:02) [GCC 8.3.0] on linux Type "help", "copyright", "credits" or "license"

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-07 Thread Kyle Stanley
Kyle Stanley added the comment: I spent some further time considering the solution to the problem, and I still think something like a `threading.register_atexit()` (see https://bugs.python.org/issue37266#msg362960) would be the most suitable. However, I'm not certain regarding the exact

[issue39812] Avoid daemon threads in concurrent.futures

2020-03-07 Thread Kyle Stanley
Change by Kyle Stanley : -- assignee: -> aeros ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue39892] Enable DeprecationWarnings by default when not explicit in unittest.main()

2020-03-07 Thread Gregory P. Smith
New submission from Gregory P. Smith : Recurring theme: The stdlib has the issue of DeprecationWarning being added to APIs we are changing or removing a few versions in the future yet we perceive that many people never actually bother to try checking their code for deprecation warnings.

[issue39890] The AST is mangled when compiling starred assignments

2020-03-07 Thread Brandt Bucher
Change by Brandt Bucher : -- title: The AST is mangled when compiling starred assignments. -> The AST is mangled when compiling starred assignments ___ Python tracker ___

[issue39857] subprocess.run: add an extra_env kwarg to complement existing env kwarg

2020-03-07 Thread Caleb Hattingh
Caleb Hattingh added the comment: dict syntax tools make it fairy easy to compose new dicts from old ones with overrides: subprocess.run(..., env={**os.environ, 'FOO': ..., 'BAR', ...}, ...) Would this be sufficient to avoid the copy/pasting boilerplate? -- nosy: +cjrh

[issue39889] Fix ast.unparse() for subscription by extended slices and tuples

2020-03-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset c4928fc1a853f3f84e2b4ec1253d0349137745e5 by Serhiy Storchaka in branch 'master': bpo-39889: Fix ast.unparse() for subscript. (GH-18824) https://github.com/python/cpython/commit/c4928fc1a853f3f84e2b4ec1253d0349137745e5 --

[issue39886] Remove unused arg in config_get_stdio_errors in Python/initconfig.c

2020-03-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset aa450a0364b6160be7dd61ec2d378abb0652f014 by Andy Lester in branch 'master': closes bpo-39886: Remove unused arg from config_get_stdio_errors. (GH-18823) https://github.com/python/cpython/commit/aa450a0364b6160be7dd61ec2d378abb0652f014

[issue38894] Path.glob() sometimes misses files that match

2020-03-07 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue39199] Improve the AST documentation

2020-03-07 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 02f64cb79175902705b40e3eaa8ea6c7038754ef by Pablo Galindo in branch 'master': bpo-39199: Use 'eval' mode for the examples with expression nodes (GH-18828) https://github.com/python/cpython/commit/02f64cb79175902705b40e3eaa8ea6c7038754ef

[issue39702] PEP 614: Relaxing Grammar Restrictions On Decorators

2020-03-07 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset 8f130536926a30237b5297780d61ef4232e88577 by Brandt Bucher in branch 'master': bpo-39702: Update the Language Reference (PEP 614) (GH-18802) https://github.com/python/cpython/commit/8f130536926a30237b5297780d61ef4232e88577 --

[issue39890] The AST is mangled when compiling starred assignments.

2020-03-07 Thread Brandt Bucher
Change by Brandt Bucher : -- keywords: +patch pull_requests: +18190 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18833 ___ Python tracker ___

[issue39900] `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor

2020-03-07 Thread Barney Gale
New submission from Barney Gale : `pathlib.Path.__bytes__()` calls `os.fsencode()` without using path's accessor. To properly isolate Path objects from the underlying local filesystem, this should be routed via the accessor object. -- messages: 363638 nosy: barneygale priority:

[issue39900] `pathlib.Path.__bytes__()` calls `os.fsencode()` without using accessor

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18199 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18842 ___ Python tracker ___

[issue36287] Make ast.dump() not output optional default fields

2020-03-07 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +18200 pull_request: https://github.com/python/cpython/pull/18843 ___ Python tracker ___

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2020-03-07 Thread Barney Gale
Barney Gale added the comment: We can check whether `os.path.expanduser()` returned a path beginning with "~" and raise a RuntimeError if so, right? On point #2, I'm not sure this optimization alone justifies the duplication. PR incoming... --

[issue39899] `pathlib.Path.expanduser()` does not call `os.path.expanduser()`

2020-03-07 Thread Barney Gale
Change by Barney Gale : -- keywords: +patch pull_requests: +18198 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18841 ___ Python tracker ___