This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Michael.Gilbert
Recipients Michael.Gilbert
Date 2010-09-20.20:04:58
SpamBayes Score 1.1661783e-12
Marked as misclassified No
Message-id <1285013101.44.0.231152316832.issue9906@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-09-20 20:05:01Michael.Gilbertsetrecipients: + Michael.Gilbert
2010-09-20 20:05:01Michael.Gilbertsetmessageid: <1285013101.44.0.231152316832.issue9906@psf.upfronthosting.co.za>
2010-09-20 20:04:59Michael.Gilbertlinkissue9906 messages
2010-09-20 20:04:58Michael.Gilbertcreate