[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan
Change by Batuhan : -- pull_requests: +14968 pull_request: https://github.com/python/cpython/pull/15247 ___ Python tracker <https://bugs.python.org/issue37

[issue37830] continue in finally with return in try results with segfault

2019-08-12 Thread Batuhan
Batuhan added the comment: serhiy can you review the solution i found? -- ___ Python tracker <https://bugs.python.org/issue37830> ___ ___ Python-bugs-list mailin

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan
Batuhan added the comment: Can i work on this? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue37893> ___ ___ Python-bugs-list mailin

[issue37893] pow() should disallow inverse when modulus is +-1

2019-08-20 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +15061 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/15344 ___ Python tracker <https://bugs.python.org/issu

[issue37925] --embed not included in python3.8-config usage/--help

2019-08-23 Thread Batuhan
Batuhan added the comment: I can work on this. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue37925> ___ ___ Python-bugs-list mailin

[issue36946] Possible signed integer overflow in slice handling

2019-08-24 Thread Batuhan
Batuhan added the comment: Should we close this? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue36946> ___ ___ Python-bugs-list mailin

[issue37925] --embed not included in python3.8-config usage/--help

2019-08-24 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +15153 stage: -> patch review pull_request: https://github.com/python/cpython/pull/15458 ___ Python tracker <https://bugs.python.org/issu

[issue19867] pickletools.OpcodeInfo.code is a string

2019-08-24 Thread Batuhan
Batuhan added the comment: What should we do then, close? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue19867> ___ ___ Python-bugs-list m

[issue26093] __qualname__ different when calling generator object w/ functions.partial

2019-08-24 Thread Batuhan
Batuhan added the comment: This bug is fixed in 3.9 (probably in 3.8 too) -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue26093> ___ ___

[issue38201] Anotation problem at flask_httpauth package

2019-09-17 Thread Batuhan
Batuhan added the comment: I dont think this is a bug for cpython project. Extension modules category has a different meaning. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38

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

2019-10-02 Thread Batuhan
Batuhan added the comment: https://gitlab.com/python-devs/importlib_metadata/issues/92 -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38

[issue38348] Make python -m ast more configurable

2019-10-02 Thread Batuhan
New submission from Batuhan : Allow user to set indent level and parsing status of type comments -- components: Library (Lib) messages: 353741 nosy: BTaskaya, serhiy.storchaka priority: normal severity: normal status: open title: Make python -m ast more configurable versions: Python

[issue38348] Make python -m ast more configurable

2019-10-02 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16129 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16540 ___ Python tracker <https://bugs.python.org/issu

[issue38348] Make python -m ast more configurable

2019-10-03 Thread Batuhan
Batuhan added the comment: I was checking typed_ast and i wanted to know which parts changed and implement that parts to astor. But there was no flags for --type-comments False. Also it can be handy to have an indention option to change it for fitting tree into the terminal width. On Thu

[issue38348] Make python -m ast more configurable

2019-10-04 Thread Batuhan
Batuhan added the comment: > I do not want to complicate this tiny feature. Making more configurable isn't making it complicated. It is just improving users control over it by indentation and parsing option. -- ___ Python tracker

[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Batuhan
New submission from Batuhan : def _convert_num(node): if isinstance(node, Constant): if type(node.value) in (int, float, complex): return node.value > raise ValueError('malformed node or string: ' + repr(node)) E ValueError: malf

[issue38396] ast.literal_eval doesn't give information about node except the type of it

2019-10-07 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16208 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16620 ___ Python tracker <https://bugs.python.org/issu

[issue38454] test_listdir is failing on ubuntu with WSL

2019-10-11 Thread Batuhan
New submission from Batuhan : Run tests sequentially 0:00:00 load avg: 0.52 [1/1] test_os test test_os failed -- Traceback (most recent call last): File "/home/isidentical/cpython/Lib/test/test_os.py", line 2059, in test_listdir self.assertEqual(found, expected) AssertionError

[issue38530] Offer suggestions on AttributeError

2019-10-19 Thread Batuhan
Batuhan added the comment: It already exists as a 3rd party module and it would be really cool to have this in core level. https://github.com/dutc/didyoumean (by James Powell) -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.

[issue38530] Offer suggestions on AttributeError

2019-10-19 Thread Batuhan
Change by Batuhan : -- nosy: +james ___ Python tracker <https://bugs.python.org/issue38530> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16865 ___ Python tracker <https://bugs.python.org/issu

[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan
Batuhan added the comment: Sorry for the inconvenience. I'm fixing it -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38531> ___ ___

[issue38522] Py_USING_MEMORY_DEBUGGER is referenced in docs but not present in code

2019-10-20 Thread Batuhan
Batuhan added the comment: It looks like benjamin peterson removed remaining references from obmalloc.c in 3924f93794fd740c547b44884f73303196475cd5 -- nosy: +BTaskaya, benjamin.peterson ___ Python tracker <https://bugs.python.org/issue38

[issue38531] argparse action "extend" not documented as new

2019-10-20 Thread Batuhan
Batuhan added the comment: @rhettinger, should we mention about it in whats new too? -- ___ Python tracker <https://bugs.python.org/issue38531> ___ ___ Pytho

[issue33463] Can namedtuple._asdict return a regular dict instead of OrderedDict?

2019-10-22 Thread Batuhan
Batuhan added the comment: we can close this (raymond resolved this in bpo-35864) -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue33

[issue24313] json fails to serialise numpy.int64

2019-10-22 Thread Batuhan
Batuhan added the comment: What is the next step of this 4-year-old issue? I think i can prepare a patch for using __index__ (as suggested by @r.david.murray) -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue24

[issue25635] urllib2 cannot fully read FTP file

2019-10-22 Thread Batuhan
Batuhan added the comment: It works as expected on master (3.9.0a0). I think we can close this -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue25

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-22 Thread Batuhan
Batuhan added the comment: Adrian are you still want to work on this or can i take it? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan
Change by Batuhan : -- versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue35448> ___ ___ Python-bugs-list mailing list Unsub

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-24 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16452 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/16920 ___ Python tracker <https://bugs.python.org/issu

[issue35448] ConfigParser .read() - handling of nonexistent files

2019-10-25 Thread Batuhan
Batuhan added the comment: > I do not think that adding an extra parameter to .read() will solve any > problem. There is a use case of this (which some of tools depends) about checking if configuration exists and if not, raising an error. Now, they can solve this by just adding check

[issue14196] Unhandled exceptions in pdb return value display

2019-10-29 Thread Batuhan
Batuhan added the comment: Can't reproducible in py3 (3.8), IMHO can be closed. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/is

[issue19510] lib2to3.fixes.fix_import gets confused if implicit relative imports and absolute imports are on the same line

2019-10-29 Thread Batuhan
Batuhan added the comment: > It’s still a bug though :) It gives a warning about this though RefactoringTool: ### In file test/t.py ### RefactoringTool: Line 1: absolute and local imports together If it still counts as a bug, let me know and i'll try to prepare

[issue21142] Daily/weekly ABI scan?

2019-10-29 Thread Batuhan
Batuhan added the comment: Tools/c-globals moved under Tools/c-analyzer -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue21142> ___ ___ Pytho

[issue38316] docs: Code object's "co_stacksize" field is described with mistake

2019-10-29 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16509 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16983 ___ Python tracker <https://bugs.python.org/issu

[issue26669] time.localtime(float("NaN")) does not raise a ValueError on all platforms

2019-10-29 Thread Batuhan
Batuhan added the comment: Victor's PR 11507 is closed, what actions are going to be taken next? Close the issue as Mariatta said? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/is

[issue32081] ipaddress should support fast IP lookups

2019-10-29 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya, pmoody ___ Python tracker <https://bugs.python.org/issue32081> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue30533] missing feature in inspect module: getmembers_static

2019-10-29 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue30533> ___ ___ Python-bugs-list mailin

[issue36971] Add subsections in C API "Common Object Structures" page

2019-10-29 Thread Batuhan
Batuhan added the comment: PR 13446 is merged, anything else is needed or can this issue be closed? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue36

[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-29 Thread Batuhan
Batuhan added the comment: Ran, do you want to work on this or can i take it? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38629> ___ ___

[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-29 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16511 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16985 ___ Python tracker <https://bugs.python.org/issu

[issue38629] float is missing __ceil__() and __floor__(), required by numbers.Real

2019-10-30 Thread Batuhan
Batuhan added the comment: $ ./python -m pyperf timeit -s "from math import floor" --duplicate 100 "floor(12345.6)" Before: Mean +- std dev: 52.5 ns +- 2.6 ns After: Mean +- std dev: 71.0 ns +- 1.7 ns $ ./python -m pyperf timeit -s "from math import ceil"

[issue21767] singledispatch docs should explicitly mention support for abstract base classes

2019-11-15 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16680 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17171 ___ Python tracker <https://bugs.python.org/issu

[issue7687] Bluetooth support untested

2019-11-15 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.9 -Python 2.7, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <https://bugs.python.org/issue7

[issue3530] ast.NodeTransformer doc bug

2019-11-15 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16681 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/17172 ___ Python tracker <https://bugs.python.org/iss

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan
Batuhan added the comment: @nanjekyejoannah, are you still interested in adding tests or can i add tests? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35

[issue35453] pathlib.Path: glob and rglob should accept PathLike patterns

2019-11-15 Thread Batuhan
Batuhan added the comment: > From what I see, there is no consensus yet. @serhiy.storchaka said this isn't an issue. I can add tests about this behavior (as you mentioned) or this issue can be directly resolved as not a bug. What are you thinking @nanjekyejoannah and @serhiy.s

[issue38446] Ambiguous signature for builtins.__build_class__

2019-11-15 Thread Batuhan
Batuhan added the comment: This issue is fixed with PR 16735, @pablogsal can we close it? -- nosy: +BTaskaya, pablogsal ___ Python tracker <https://bugs.python.org/issue38

[issue26011] Document necesities for cmp argument of sorted

2019-11-15 Thread Batuhan
Batuhan added the comment: I agree with @josh.r, also for the key (and reverse), they are documented in py3.8. IMHO this issue can be resolved as not a bug. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue26

[issue37083] Document TYPE_COMMENT in documentation reference for compound statements

2019-11-15 Thread Batuhan
Batuhan added the comment: @pablogsal, PR 13202 is merged -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue37083> ___ ___ Python-bugs-list m

[issue33740] PyByteArray_AsString C-API description lacks the assurance, that the trailing null-byte is appended.

2019-11-15 Thread Batuhan
Batuhan added the comment: IMHO there is no need/way for adding that clarification after this date (1.5 months left). -- nosy: +BTaskaya, benjamin.peterson ___ Python tracker <https://bugs.python.org/issue33

[issue38116] Make select module PEP-384 compatible

2019-11-17 Thread Batuhan
Batuhan added the comment: PR 15971 is merged, what else is needed @dino.viehland? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38

[issue35143] `from __future__ import annotations` has no effect inside `ast.parse`

2019-11-17 Thread Batuhan
Batuhan added the comment: Hey @lukasz.langa, I want to work on this. Should we add an interface to _PyAST_ExprAsUnicode or just the bugfix for annotations? -- nosy: +BTaskaya, benjamin.peterson ___ Python tracker <https://bugs.python.

[issue35004] Odd behavior when using datetime.timedelta under cProfile

2019-11-18 Thread Batuhan
Batuhan added the comment: This bug is fixed in both 3.8 and 3.7, @p-ganssle what do you think about closing this? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue35

[issue22229] wsgiref doesn't appear to ever set REMOTE_HOST in the environ

2019-11-18 Thread Batuhan
Batuhan added the comment: I didn't understand the issue. WSGIRequestHandler can be subclassed and address_string method may return something else. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/is

[issue32371] Delay-loading of python dll is impossible when using some C macros

2019-11-18 Thread Batuhan
Batuhan added the comment: Can you give us a case where we can reproduce this locally? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue32

[issue22593] Automate update of doc references to UCD version when it changes.

2019-11-18 Thread Batuhan
Batuhan added the comment: I want to work on this. What do you think about using include directive and include a static file like UCD_VERSION.txt in the documents? makeunicodedata.py can write the current version every run to UCD_VERSION.txt -- nosy: +BTaskaya

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

2019-11-18 Thread Batuhan
Batuhan added the comment: @eamanu are you still interested in this issue? (bumped to 3.9) -- nosy: +BTaskaya versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue36

[issue31521] segfault in PyBytes_AsString

2019-11-18 Thread Batuhan
Batuhan added the comment: Is there a simpler code for reproducing the issue? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue31521> ___ ___

[issue19080] Enrich SyntaxError with additional information

2019-11-18 Thread Batuhan
Batuhan added the comment: I am not sure about how to implement this to the core, but you can combine tokenize with ast to reproduce this kind of messages in your projects. You can match tokens with SyntaxErrors by lineno and offset. -- nosy: +BTaskaya

[issue27724] PEP3119 inconsintent with actual CPython impl

2019-11-18 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya, gvanrossum versions: -Python 3.5 ___ Python tracker <https://bugs.python.org/issue27724> ___ ___ Python-bugs-list mailin

[issue36424] Pickle fails on frozen dataclass that has slots

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue36424> ___ ___ Python-bugs-list mailin

[issue38032] lib2to3 doesn't parse Python 3 identifiers containing non-spacing marks

2019-11-19 Thread Batuhan
Batuhan added the comment: Is there a consensus about fixing this? By the way, this isn't valid in the current tokenizer too. 1,0-1,2:NAME 'iÌ' 1,2-1,3:ERRORTOKEN '‡' 1,4-1,5:OP '=' 1,6-1,7:

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
New submission from Batuhan : I was going through old issues and I found @inada.naoki's comment on issue 36551 > How about converting `[x for x in it]` to `[*it]` in AST? Is this feature still wanted? I can try to work on an implementation for this if there is a need. Also should th

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- nosy: +vstinner ___ Python tracker <https://bugs.python.org/issue38847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38847] AST Optimization for Single Target List Comprehension

2019-11-19 Thread Batuhan
Change by Batuhan : -- components: +Interpreter Core versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue38847> ___ ___ Python-bugs-list mailin

[issue38876] pickle is raising KeyError insteat of pickle.UnpicklingError under certain conditions

2019-11-21 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya, alexandre.vassalotti versions: +Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.org/issue38876> ___ ___

[issue38870] Expose ast.unparse in the ast module

2019-11-21 Thread Batuhan
Batuhan added the comment: @gvanrossum are you OK with adding type comments support? Current version loses type comment information so if typed_ast parses this, they wont be the same in AST representation. -- nosy: +gvanrossum ___ Python tracker

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

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

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

2019-11-21 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya, steve.dower versions: +Python 3.9 -Python 3.8 ___ Python tracker <https://bugs.python.org/issue38883> ___ ___ Python-bug

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

2019-11-21 Thread Batuhan
Change by Batuhan : -- versions: +Python 3.8 ___ Python tracker <https://bugs.python.org/issue38883> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37063] Incorrect application of func.__defaults__ by inspect's signature APIs

2019-11-24 Thread Batuhan
Batuhan added the comment: As mentioned in docs, getfullargspec is based on signature() and signature objects doesnt keep record of all defaults. It tries to map defaults with parameters but if you have less default then total parameter amount it will discard rest of defaults. IMHO this

[issue38603] inspect.getdoc could examine the __class__ cell for dynamically generated subclasses

2019-11-24 Thread Batuhan
Change by Batuhan : -- nosy: +yselivanov ___ Python tracker <https://bugs.python.org/issue38603> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38870] Expose ast.unparse in the ast module

2019-11-25 Thread Batuhan
Change by Batuhan : -- pull_requests: +16859 pull_request: https://github.com/python/cpython/pull/17377 ___ Python tracker <https://bugs.python.org/issue38

[issue17068] peephole optimization for constant strings

2019-11-29 Thread Batuhan
Batuhan added the comment: I think this operation is more suitable for AST optimizer then peephole but i'm still not sure if such a conversion gains anything compared to usage of old type string formattings. -- nosy: +BTaskaya ___ Python tr

[issue29598] Write unit tests for pdb module

2019-11-30 Thread Batuhan
Batuhan added the comment: PR 218 is closed and this issue looks like just created for that PR. If that PR is closed and there are nothing to do with this issue, maybe this can also be closed? -- nosy: +BTaskaya ___ Python tracker <ht

[issue38673] REPL shows continuation prompt (...) when comment or space entered

2019-11-30 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16902 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17421 ___ Python tracker <https://bugs.python.org/issu

[issue28805] Add documentation for METH_FASTCALL and _PyObject_FastCall*()

2019-12-01 Thread Batuhan
Batuhan added the comment: PR 14079 has been merged, is there anything left as unresolved about this issue? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue28

[issue37496] Support annotations in signature strings.

2019-12-01 Thread Batuhan
Batuhan added the comment: We have exposed Tools/unparse.py under ast module, so that option also can help. @potomak are you still interested in working on this issue? -- nosy: +BTaskaya, pablogsal ___ Python tracker <https://bugs.python.

[issue16649] Add a PyCF_DISPLAY_EXPRESSION_RESULTS flag

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue16649> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4724] setting f_exc_traceback aborts in debug builds

2019-12-01 Thread Batuhan
Batuhan added the comment: This issue looks like specific to 2.7, which is almost dead. Is there any interest about adding this to 2.7 branch? -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue4

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- versions: +Python 3.9 ___ Python tracker <https://bugs.python.org/issue32894> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue32894> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32894] AST unparsing of infinity numbers

2019-12-01 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16905 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17426 ___ Python tracker <https://bugs.python.org/issu

[issue35632] support unparse for Suite ast

2019-12-01 Thread Batuhan
Batuhan added the comment: Tools/parser/unparse.py has been moved under ast module and exposed via ast.unparse() interface. If you want to support custom AST statements, the current version is incapable of doing such changes because of the real unparser class is private. As a workaround you

[issue19541] ast.dump(indent=True) prettyprinting

2019-12-01 Thread Batuhan
Batuhan added the comment: issue 37995 has added pretty printing to the ast.dump, IMHO this issue can be closed. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue19

[issue38702] Adding new types to parser/unparse.py

2019-12-01 Thread Batuhan
Batuhan added the comment: > be changed to span across more number of lines? Yes, that changed in ast._Unparser, and i agree with Serhiy. There is no need for supporting that old constant nodes. IMHO this issue can be closed -- nosy: +BTaskaya, pablog

[issue21992] New AST node Else() should be introduced

2019-12-01 Thread Batuhan
Batuhan added the comment: IMHO there are no need to keep this issue open according to opinions of core developers, so can this be closed or it needs more discussion (which i prefer to do on mailing lists)? -- nosy: +BTaskaya ___ Python tracker

[issue36000] __debug__ is a keyword but not a keyword

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue36000> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27119] `compile` doesn't compile into an AST object as specified

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya versions: +Python 3.7, Python 3.8, Python 3.9 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker <https://bugs.python.org/issue27

[issue34000] Document when compile returns a code object v. AST

2019-12-01 Thread Batuhan
Batuhan added the comment: I think this is a duplicate of issue 27119 -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue34000> ___ ___ Pytho

[issue33754] f-strings should be part of the Grammar

2019-12-01 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue33754> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15273] Remove unnecessarily random behavior from test_unparse.py

2019-12-02 Thread Batuhan
Batuhan added the comment: @pablogsal should we add Lib/test/test_grammar by default to every test? Also if this is still needed @Daniel.Cioata do you still want to prepare another patch for current version? -- nosy: +BTaskaya, pablogsal

[issue38964] Output of syntax error in f-string contains wrong filename

2019-12-04 Thread Batuhan
Batuhan added the comment: This is actually specified behavior in PEP 498 https://www.python.org/dev/peps/pep-0498/#expression-evaluation > Expressions are parsed with the equivalent of ast.parse('(' + expression + > ')', '',

[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-05 Thread Batuhan
Batuhan added the comment: I want to be a volunteer, if no one is working on this. -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38

[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-07 Thread Batuhan
Change by Batuhan : -- keywords: +patch pull_requests: +16969 stage: -> patch review pull_request: https://github.com/python/cpython/pull/17491 ___ Python tracker <https://bugs.python.org/issu

[issue38992] testFsum failure caused by constant folding of a float expression

2019-12-07 Thread Batuhan
Change by Batuhan : -- nosy: +BTaskaya ___ Python tracker <https://bugs.python.org/issue38992> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue25160] Stop using deprecated imp module; imp should now emit a real DeprecationWarning

2019-12-07 Thread Batuhan
Batuhan added the comment: @vstinner > Tools/importbench/importbench.py:10:import imp > I think that it's fine to keep imp there. Any reason to keep imp there? We can just port it to sole importlib (it already uses it in some places) -- nosy

[issue38978] Implement __class_getitem__ for Future, Task, Queue

2019-12-07 Thread Batuhan
Batuhan added the comment: > I think that applying the same to PathLike makes sense as well, but it > deserves another issue. Yes, it looks like they are using that in typeshed. I'm opening another issue with a patch. Thanks for rem

[issue38994] Implement __class_getitem__ for PathLike

2019-12-07 Thread Batuhan
New submission from Batuhan : Typeshed already using __class_getitem__ syntax for PathLike https://github.com/python/typeshed/search?q=PathLike&unscoped_q=PathLike -- components: Library (Lib) messages: 357978 nosy: BTaskaya, asvetlov priority: normal severity: normal status:

  1   2   3   4   5   6   7   8   9   >