Re: [Python-Dev] return type of __complex__

2012年10月21日 04:12:07 -0700

On 2012年10月21日 22:02:17 +1100
Steven D'Aprano <[email protected]> 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
[email protected]
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to