Re:Beyond PEP 8 – Best practices for beautiful intelligible ...
by nvader on Friday August 07, 2015 @07:31PM
(#10025629)
To quote the Zen of Python:
Too many levels of nesting is definitely a code smell. Often it's better to pull those helper functions out, and/or create function or method factory functions at a higher level of organization.
[ Parent
| on HN ]
Re:Beyond PEP 8 – Best practices for beautiful intelligible ...
by Retra on Friday August 07, 2015 @08:07PM
(#10025758)
You can't really do that if you're writing closures.
Re:Beyond PEP 8 – Best practices for beautiful intelligible ...
by zo1 on Saturday August 08, 2015 @03:07AM
(#10026589)
Have you had a look at https://docs.python.org/2/library/functools.html#functools.p... ?
Anywho, do you have a genuine example of where a closure is helpful for you in python? I'm very curious.