Pure Python rational numbers module for 2.5

前端 未结 3 862
既然无缘
既然无缘 2021-01-18 07:09

Has anybody seen such a thing? Small self-sufficient modules are preferred.

3条回答
  •  青春惊慌失措
    2021-01-18 07:56

    The fractions module from 2.6 can be ripped out if necessary. Grab fractions.py, numbers.py, and abc.py; all pure python modules.

    You can get the single files from here (2.6 branch, 2.7 does not work): http://hg.python.org/cpython/branches

提交回复
热议问题