timothycrosley / deprecated.pies

The simplest (and tastiest) way to write one program that runs on both Python 2 and Python 3.
MIT License
148 stars 7 forks source link

сomparison with python-future #13

Closed Shura1oplot closed 10 years ago

Shura1oplot commented 10 years ago

There is another python module to write python 2/3 code: https://github.com/PythonCharmers/python-future How does pies differ from this?

timothycrosley commented 10 years ago

Pies and future came about around the same time, with the same basic philosophy (I wrote pies before I or anyone else knew about future). Pies requires a little less change when coding, as it makes a lot of std modules available (like builtin) exactly the same way on Python2 as they are on Python3. Additionally, it automatically enables objects to have correct str behavior on Python2 and 3, and deals with instance checks better then future.

All that said, they are indeed very similar, and had I been aware of python-future when I had started work on pies I probably would have just submitted pull requests to that project.