[Python-ideas] Python 3.9.9 - The 'I Have A Dream' Version

Simon Kennedy sffjunkie at gmail.com
Wed Apr 15 16:39:18 CEST 2015


On Wednesday, 15 April 2015 15:08:57 UTC+1, Chris Angelico wrote:
>
> > This is probably what I should have used "First class values" 
>
> That's still pretty much everything in Python.


Except for statements such as 'if' / 'for' or operators.
 

> Off the top of my head, 
> the only manipulable things that aren't first-class are name bindings 
> themselves, and those can usually be simulated - most namespaces are 
> representable as dictionaries, and other bindings are 
> __[gs]et{item,attr}__ calls; the notable exception is function locals, 
> which you can't easily mutate from outside the function. 
>
>
Why would you want to mutate function locals from outside the function? 
That's not something I've ever explored.

Regards
Simon

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20150415/b881246d/attachment.html>


More information about the Python-ideas mailing list