This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Batuhan Taskaya
Recipients Batuhan Taskaya, pablogsal
Date 2020-01-21.13:29:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1579613369.33.0.216761296366.issue39411@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2020-01-21 13:29:29Batuhan Taskayasetrecipients: + Batuhan Taskaya, pablogsal
2020-01-21 13:29:29Batuhan Taskayasetmessageid: <1579613369.33.0.216761296366.issue39411@roundup.psfhosted.org>
2020-01-21 13:29:29Batuhan Taskayalinkissue39411 messages
2020-01-21 13:29:29Batuhan Taskayacreate