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/2005-June/054297.html below:

[Python-Dev] Propose to reject PEP 336 -- Make None Callable

[Python-Dev] Propose to reject PEP 336 -- Make None Callable [Python-Dev] Propose to reject PEP 336 -- Make None CallableTim Peters tim.peters at gmail.com
Fri Jun 17 18:16:10 CEST 2005
[Raymond Hettinger]
> After nine months, no support has grown beyond the original poster.

Never will, either -- even Roman numeral literals are more Pythonic
than this one.

More Pythonic:  make integers callable:  i(arglist) returns the i'th
argument.  So, e.g., people who find it inconvenient to index a list
like this:

    x[i]

could index it like this instead:

    i(*x)

Punchline:  I didn't make this up -- that's how integers work in Icon!  Kinda.

    y := 2
    y(x, y, z) := 3

also works to bind `y` to 3.  Python is falling _way_ behind <wink>.
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