in reply to How to use Perl to decompose Python functions into a CSV?

> better way to get ALL of these.

"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

  • Comment on Re: How to use Perl to decompose Python functions into a CSV?