I want to get a feel for lib2to3
but can't find much in the way of documentation. Has anything in the way of an architecture overview been written? Where can I find more information on the library?
The only documentation that I am aware of (apart from the source code), is Lennart Regebro's excellent Porting to Python 3 book (online in full).
The book has a full chapter on writing your own lib2to3
fixers. The chapter discusses the parse tree architucture used by lib2to3
and how to take advantage of that structure to create your own translations to be run when porting code from python 2 to 3.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With