[Python-ideas] Internal function idea

Brett Cannon brett at python.org
Tue Dec 26 14:53:49 EST 2017


[removing Python-ideas-owner so any replies don't flood my inbox]

On Sat, Dec 23, 2017, 09:23 William Rose, <william27.07.02 at gmail.com> wrote:

> I had an idea that it could be helpful to have local functions as well as
> normal ones. They would be called the same way as normal ones but def would
> be replaced by internal and inside they could only access variables they
> have defined and inputs to them so no global variables or class variables.
> I think this could be used to save people accidentally changing variables
> you dont' want to change when updating your code. Let me know what you
> think!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20171226/456cae3f/attachment.html>


More information about the Python-ideas mailing list