A RetroSearch Logo

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

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2001-July/016333.html below:

[Python-Dev] Splitting the PEP for adding a decimal type to Python

[Python-Dev] Splitting the PEP for adding a decimal type to Python [Python-Dev] Splitting the PEP for adding a decimal type to PythonJeff Epler jepler@inetnebr.com
Fri, 27 Jul 2001 13:59:16 -0500
On Fri, Jul 27, 2001 at 12:35:34PM -0400, Guido van Rossum wrote:
> But again this has nothing to do with decimal numbers: your proposal
> allows the mixing of decimal and binary numbers (as long as one of
> them uses an explicit base indicator) so you don't really need two
> parsers -- you need one tokenizer plus a way to specify the default
> numeric base for literals.

If this were possible, then could it be a per-module decision what "1/2"
produces, depending whether unadorned whole-number literals correspond
to ClassicInt or NewInt ?

That sounds miles better than writing "1//2" to me.

Jeff



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