A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-October/122294.html below:

[Python-Dev] return type of __complex__

[Python-Dev] return type of __complex__ [Python-Dev] return type of __complex__Steven D'Aprano steve at pearwood.info
Sun Oct 21 11:18:22 CEST 2012
On 21/10/12 19:47, Serhiy Storchaka wrote:
> On 21.10.12 09:05, Greg Ewing wrote:
>> The equivalent solution here would be to add a new operator
>> for complex exponentiation that coerces its operands to
>> complex, and restrict the existing one to floats only.
>
> In case of division a new operator (//) restricted to ints only,
>and the existing one coerces its operands to floats.

That is incorrect. // works fine with non-ints.


py> 42.9//3.4
12.0



-- 
Steven
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4