[issue39670] 2to3 fix_apply tries to fix user-defined apply function calls

2020-02-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The fixers are supposed to be executed on Python 2 files where apply was a builtin and was shadowed. So from the context of the fixer it tries to make the modification and it cannot distinguish that it's a builtin or user-defined call. In Python 3

[issue39682] pathlib.Path objects can be used as context managers

2020-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +brett.cannon, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2020-02-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum
Guido van Rossum added the comment: New changeset ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0 by ananthan-123 in branch 'master': bpo-39572: Document ’total’ flag of TypedDict (GH-18554) https://github.com/python/cpython/commit/ab6423fe2de0ed5f8a0dc86a9c7070229326b0f0 -- __

[issue38860] GenericPyCData_new does not invoke new or init

2020-02-18 Thread Kyle Stanley
Kyle Stanley added the comment: Justin Capella wrote: > Is there a better forum for discussion about design/behavior, maybe the more > generic issue of GenericPyCData_new using tp_alloc instead of tp_new Rebecca Morgan wrote: > I would still be interested in this, with some clarity on the >

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread miss-islington
Change by miss-islington : -- pull_requests: +17936 pull_request: https://github.com/python/cpython/pull/18556 ___ Python tracker ___ __

[issue17050] argparse.REMAINDER doesn't work as first argument

2020-02-18 Thread hai shi
hai shi added the comment: > Okay. Would it be all right if I submit a fix to get it working at least in > the subparser case? Hi, dHannasch. According raymond and paul's opinion, you could try to create a PR to update argparse's doc. -- nosy: +shihai1991 __

[issue39684] PyUnicode_IsIdentifier has two if/thens that can be combined

2020-02-18 Thread Andy Lester
New submission from Andy Lester : These two code if/thens can be combined if (ready) { kind = PyUnicode_KIND(self); data = PyUnicode_DATA(self); } else { wstr = _PyUnicode_WSTR(self); } Py_UCS4 ch; if (ready) { ch = PyUnicode_READ(kind, d

[issue39684] PyUnicode_IsIdentifier has two if/thens that can be combined

2020-02-18 Thread Andy Lester
Change by Andy Lester : -- keywords: +patch pull_requests: +17937 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18557 ___ Python tracker ___

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread miss-islington
miss-islington added the comment: New changeset 44c690112d96a81fe02433de7900a4f8f9457012 by Miss Islington (bot) in branch '3.8': bpo-39572: Document ’total’ flag of TypedDict (GH-18554) https://github.com/python/cpython/commit/44c690112d96a81fe02433de7900a4f8f9457012 -- nosy: +miss-

[issue39572] [typing] TypedDict's 'total' argument is undocumented

2020-02-18 Thread Guido van Rossum
Guido van Rossum added the comment: Separately, would you also be interested in writing docs for the `__total__` class attribute of TypedDict subclasses (3.8 and 3.9) and for the `__required_keys__` and `__total_keys__` attributes (only in 3.9)? (Sorry, there's no document you can crib these

[issue39679] functools: singledispatchmethod doesn't work with classmethod

2020-02-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess the method checks for annotation on cls [0] which will be classmethod/staticmethod object in the report and won't have annotations. The annotations should be looked up in the function the classmethod/staticmethod decorator wraps around as i

[issue39139] Reference to depricated collections.abc class in collections is unnecessary and confusing

2020-02-18 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: The removal in 3.9 was reverted and postponed to 3.10 in issue39674. -- ___ Python tracker ___

[issue39685] Python 3.8 regression Socket operation on non-socket

2020-02-18 Thread Brian May
New submission from Brian May : After upgrading to Python 3.8, users of sshuttle report seeing this error: Traceback (most recent call last): File "", line 1, in File "assembler.py", line 38, in File "sshuttle.server", line 298, in main File "/usr/lib/python3.8/socket.py", line 544, i

[issue39686] add dump_json to ast module

2020-02-18 Thread Richard K
New submission from Richard K : Currently within the ast module, `dump` generates a string representation of the AST for example, >>> ast.dump(node) 'Module(body=[], type_ignores=[])' The proposed enhancement would provide a complementary function, `dump_json` as in a json representation of

[issue39686] add dump_json to ast module

2020-02-18 Thread Richard K
Change by Richard K : -- keywords: +patch pull_requests: +17938 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18558 ___ Python tracker ___ __

[issue39672] SIGSEGV crash on shutdown with shelve & c pickle

2020-02-18 Thread zd nex
zd nex added the comment: So I was trying to figure out what is crash it self and it looks to me that it is related to import. Do you know how I can properly debug this crash? -- ___ Python tracker

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

2020-02-18 Thread Kyle Stanley
Kyle Stanley added the comment: >From what I can tell, the regression seems like it could be fixed by adding >"@unittest.skipIf(sys.flags.ignore_environment)" to the following tests in >python/cpython/Lib/test/test_importlib/source/test_case_sensitivity.py that >modify "PYTHONCASEOK": CaseS

<    1   2