Joe Amenta's Blog

November 27, 2009

First steps towards fix_imports rewrite

Filed under: 3to2 — Tags: — AirBreather @ 12:19 pm

I’ve committed the first bit of a rewrite for fix_imports and fix_imports2.  Short description: the plan is to use the 2to3 pattern matcher instead of a custom hack to improve speed, correctness, and simplicity.

Long description:

fix_imports2 literally scans the tree before anything happens, collecting relevant NAME leaves into a dict mapping top-level modules (e.g., urllib) to them.
fix_imports is another great example of bad code if anyone was looking for one.

I haven’t had the large chunk of time that it would take to do a rewrite until now.  Hoping I can get it done by the end of Thanksgiving break, though that’s a little optimistic.

November 20, 2009

Update on 3to2…

Filed under: 3to2 — Tags: — AirBreather @ 3:34 pm

I’ve gotten the Extended Iterable Unpacking fixer to work in suites.

Also, I’m going to fill out an application to do a poster about 3to2 at PyCon 2010… here’s hoping!

November 13, 2009

More nothing…

Filed under: 3to2 — Tags: — AirBreather @ 7:13 am

More nothing, because my spending so much time on Statistics caused me to neglect other endeavours, so I’ve had to catch up on those things.  I’m so busy…

November 5, 2009

Another post about nothing

Filed under: 3to2 — Tags: — AirBreather @ 10:34 am

Since last week when I finished the article, I have not touched 3to2, in favor of other academic efforts… classes are at their peak at this point.  I will *probably* start writing some more code after my midterm on Monday (Nov 9).

Powered by WordPress