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/2003-February/032935.html below:

[Python-Dev] thunks

[Python-Dev] thunksSamuele Pedroni pedronis@bluewin.ch
Tue, 4 Feb 2003 20:51:17 +0100
From: "Gerald S. Williams" <gsw@agere.com>
> Samuele Pedroni wrote:
> > > Can this be extended to allow multiple expressions
> > > to act on the thunk? That capability was in some of
> > > the earlier proposals. [...]
> >
> > this one has nothing to do with def () []
>
> Let me rephrase it, then. It looks like this thunk
> proposal allows:
>
>   def func(args):
>       code
>
> to be rewritten along the lines of:
>
>   func = function_def lambda args:
>       code
> but doesn't account for the functionality for which
> "def () []" is being suggested. Can we generalize it
> to account for both forms of def?

It also does not cover class-like defs (thing I have already remarked). Guido
has no bandwidth at the moment, so discussing about it is kind of pointless.
Anyway if your interpretation is right then:

func = compdef(function_def,synchronized) lambda args:
  ...

.








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