[issue38348] Make python -m ast more configurable

2019-12-16 Thread STINNER Victor

STINNER Victor  added the comment:

Thanks Batuhan Taşkaya.

--
resolution:  -> fixed
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-12-16 Thread STINNER Victor

STINNER Victor  added the comment:


New changeset 814d687c7df3e0c60036943b68ece13f9f19dfef by Victor Stinner 
(Batuhan Taşkaya) in branch 'master':
bpo-38348: Extend command line options of ast parsing tool (GH-16540)
https://github.com/python/cpython/commit/814d687c7df3e0c60036943b68ece13f9f19dfef


--
nosy: +vstinner

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-10 Thread Ivan Levkivskyi


Ivan Levkivskyi  added the comment:

I don't have any strong opinion either way, so it looks like we need to wait 
until someone else will ask for this.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-04 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Sorry, I do not understand you. typed_ast does not have such features as 
multiline dump() and CLI. What relation is this have with the --type-comments 
flag?

As for fitting tree into the terminal width, the current indentation is 3 
spaces. Changing it to 2 spaces will not save much horisontal space, and 
1-space indentation is not particularly readable.

I do not want to complicate this tiny feature. If you want more control on the 
output, you can write a small Python script which calls ast.dump() 
programmatically.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-04 Thread Ivan Levkivskyi


Change by Ivan Levkivskyi :


--
nosy: +levkivskyi

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, Oct 3, 2019, 11:45 AM Serhiy Storchaka 
wrote:

>
> Serhiy Storchaka  added the comment:
>
> Why do you need this feature?
>
> --
>
> ___
> Python tracker 
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue38348] Make python -m ast more configurable

2019-10-03 Thread Serhiy Storchaka


Serhiy Storchaka  added the comment:

Why do you need this feature?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.9

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com