[Python-Dev] return type of complex (original) (raw)

Antoine Pitrou solipsis at pitrou.net
Sun Oct 21 13:08:02 CEST 2012


On Sun, 21 Oct 2012 22:02:17 +1100 Steven D'Aprano <steve at pearwood.info> wrote:

In Python 3.3, math.pow is the builtin pow. Presumably for backwards compatibility reasons when they were different? If so, it was a LONG time ago: [steve at ando ~]$ python1.5 Python 1.5.2 (#1, Aug 27 2012, 09:09:18) [GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam >>> import math >>> math.pow

You are being too optimistic:

pow math.pow pow is math.pow False

Regards

Antoine.



More information about the Python-Dev mailing list