[issue39411] pyclbr rewrite on AST

Batuhan Taskaya report at bugs.python.org
Tue Jan 21 08:29:29 EST 2020


New submission from Batuhan Taskaya <isidentical at gmail.com>:

pyclbr currently uses token streams to analyze but it can be alot simpler with usage of AST. There are already many flaws, including some comments about limitations of this token stream processing. 

I have a draft about this. Initial PR wont change any behavior, it will just make code much simpler with the usage of AST (just an addition to Function about handling of async functions, is_async field). If agreed I can propose a second PR (or append the inital one) that will enhance Function/Class objects with various identifiers (like keywords, metaclasses, end position information etc.). The second PR will be alot easier to do thanks to AST.

----------
components: Library (Lib)
messages: 360397
nosy: Batuhan Taskaya, pablogsal
priority: normal
severity: normal
status: open
title: pyclbr rewrite on AST
versions: Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue39411>
_______________________________________


More information about the Python-bugs-list mailing list