On Sun, 21 Oct 2012 22:02:17 +1100 Steven D'Aprano <st...@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@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 > <built-in function pow>
You are being too optimistic: >>> pow <built-in function pow> >>> math.pow <built-in function pow> >>> pow is math.pow False Regards Antoine. _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com