Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

lib2to3 Architecture Documentation [closed]

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?

like image 721
mvanveen Avatar asked Apr 02 '12 01:04

mvanveen


1 Answers

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.

like image 108
Martijn Pieters Avatar answered Sep 30 '22 02:09

Martijn Pieters