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/2008-January/076573.html below:

[Python-Dev] trunc()

[Python-Dev] trunc()Guido van Rossum guido at python.org
Sun Jan 27 22:18:10 CET 2008
On Jan 27, 2008 12:12 PM, Raymond Hettinger <python at rcn.com> wrote:
> [GvR]
> >> > - trunc(), round(), floor() and ceil() should all be built-ins,
> >> > corresponding to __trunc__, __round__, __floor__ and __ceil__.
>
> In Py2.6, what will the signatures be?
> Last I heard, ceil() and floor() were still going to be float-->float.

When imported from math, yes, for 2.5 compatibility. If we add
builtins, the builtins won't have this restriction.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)
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