"When in Rome, do as the Roman's do."
I wouldn't try to hack a Python parser with regexes.
When confronted with a similar task for Perl I'd try to hack B::Deparse or PPI to do the heavy lifting for me.
I'm no expert for Python and dunno the most similar tool to B::Deparse, but a short search showed me they have
... so plenty of possibilities for code analysis.
Maybe you should ask at a Python board for assistance?
HTH! :)
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
FootballPerl is like chess, only without the dice
In reply to Re: How to use Perl to decompose Python functions into a CSV?
by LanX
in thread How to use Perl to decompose Python functions into a CSV?
by symgryph
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |