206 reputation
bio website josericardo.eti.br
location Campo Grande, Brazil
age 29
visits member for 3 years, 2 months
seen Nov 11 '14 at 12:57

Computer Scientist, interested in solving problems using the right tool for the job.

comment When to use python function nesting?
About the "additional runtime cost": I haven't extensively tested it, but some months ago I profiled a code that ran faster when I used a nested function. Finding the nested function may be faster because it's stored in the local scope.