2 ms·
> Lots of library maintainers can't be arsed to put parentheses around their print statements Sorry, but this comment is really misinformed. Most libraries do
by tedmiston 10y ago
> Lots of library maintainers can't be arsed to put parentheses around their print statements
Sorry, but this comment is really misinformed. Most libraries do not exactly have tons of print statements. Library compatibility across 2/3 has more to do with the changes to strings.
- enkiv2 10y agoIt's a slight overstatement for rhetorical purposes. Supporting python3 is not a difficult problem even for large libraries with single maintainers; as I noted, automatic translation tools exist.
- tedmiston 10y agoIt's not really an overstatement as much as completely incorrect and misleading. Yes, 2to3, tox, etc exist, but of course in practice it's not necessarily that simple, even for bigger libraries. Take Airbnb's Airflow for example.
- enkiv2 10y agoAirbnb hasn't been around for all that long. Why didn't they write their library with python3 support in the first place? Yes, there are some python2 features that work differently in python3. But python3 has existed for a decade now, and there aren't real benefits to using forward-incompatible methods. Writing code that won't work in both is a mistake.