Skip to content

Transparently cache results from Python's 2to3 conversion tool

Notifications You must be signed in to change notification settings

pv/lib2to3cache

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lib2to3cache

author

Pauli Virtanen <pav@iki.fi>

license

Public domain

Tired of waiting for 2to3 run to finish?

This module monkeypatches lib2to3 to cache its results, often significantly reducing the time taken by repeated 2 to 3 translations of Python code.

Example usage

In the beginning of your setup.py:

try:
    import lib2to3cache
except ImportError:
    pass

# whatever follows
...

On command line:

$ 2to3cache -w foo.py

About

Transparently cache results from Python's 2to3 conversion tool

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages