On Fri, Jul 26, 2019 at 06:34:52PM +1000, Steven D'Aprano wrote: > On Fri, Jul 26, 2019 at 10:13:45AM +0300, Batuhan Taskaya wrote: > > > I am proposing namespace context managers with implementing `__enter__` and > > `__exit__` on dict objects. It would make closures possible in python with > > a pythonic syntax. > > I don't understand what you mean here. Closures are already possible in > Python with a pythonic syntax.
To be clear here, I meant nested functions. If you mean some other used of closures, can you explain what you mean please? Perhaps with an example. -- Steven _______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/JJOKD2LTALNEYAV2YEZEKOYRMIDHEHV2/ Code of Conduct: http://python.org/psf/codeofconduct/