title: Is there an overhead when nesting functions in Python?
body: <p>In Python, if I have a child function within a parent function, is the child function &quot;initialised&quot; (created) every time the parent function is called? Is there any performance overhead associated with nesting a function within another?</p>