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