[Tutor] Is nesting functions only for data hiding overkill?
James Hartley
jjhartley at gmail.com
Thu Aug 22 02:02:18 EDT 2019
Yes, nesting functions is valuable & necessary for closures and wrapping
functions for creating properties. But is nesting, simply for hiding data,
a preferred solution? I have a number of member functions which are
prefaced with underscores pointing out that they should not be called by
client code. Is nesting considered Pythonic?
Thanks!
More information about the Tutor
mailing list