PyCQA / modernize

Modernizes Python code for eventual Python 3 migration. Built on top of fissix (a fork of lib2to3)
https://modernize.readthedocs.org/
Other
353 stars 51 forks source link

python-modernize breaks dict.itervalues().next() #169

Closed fabioz closed 4 years ago

fabioz commented 6 years ago

python-modernize breaks dict.itervalues().next().

It changes the code to six.itervalues(dict) instead of next(six.itervalues(dict)).

takluyver commented 6 years ago

I don't think any of us are actively working on python-modernize at the moment, but if you can figure out a way to fix it without breaking other things, I'm happy to look at a PR.

fabioz commented 6 years ago

@takluyver thanks for getting back on this... unfortunately, I don't have time to check it either.

Anyways, thanks for a nice tool to help in porting to python 3.

takluyver commented 6 years ago

Fair enough. The issue can of course stay around as information: someone may have time to work on it in the future.

You're welcome, but it's not just my work. Or even mostly. Armin Ronacher wrote it originally, then myself and @daira took over maintenance, and @brettcannon joined us a bit later. Unfortunately, I think we all lose interest after a while, because by design it's a tool that you'll use a lot for a while, and then you don't need it any more.