Hacker News new | past | comments | ask | show | jobs | submit login

How far is Python from this list? Macros are missing but the remaining list seem close to me.



Math sucks a lot in Python 2.7:

  3 / 2 == 1
Python 3 fixes that, thou, but still it uses floating point numbers instead of rational numbers.


> it uses floating point numbers instead of rational numbers.

import decimal

import fractions


There "from __future__ import division" to fix that.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: