New submission from Batuhan Taskaya <isidenti...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue39411>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to