New submission from Michael Gilbert <michael.s.gilb...@gmail.com>: hi,
it would be really nice if elementary mathematical operations such as sin/cosine (via __sin__ and __cos__) were available as base parts of the python data model [0]. this would make it easier to write new math classes, and it would eliminate the ugliness of things like self.exp(). this would also eliminate the need for separate math and cmath libraries since those could be builtin to the default float and complex types. of course if those libs were removed, that would cause a lot of backward compatibility breakage. it would also help new users who just want to do math and don't know that they need to import separate classes just for elementary math functionality. anyway, just a thought. [0] http://docs.python.org/reference/datamodel.html ---------- components: Interpreter Core messages: 116966 nosy: Michael.Gilbert priority: normal severity: normal status: open title: including elementary mathematical functions in default types versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue9906> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com