python Programming Glossary: inner_error
What limitations have closures in Python compared to language X closures? http://stackoverflow.com/questions/141642/what-limitations-have-closures-in-python-compared-to-language-x-closures assign to a local 'x' not the outer 'x' ... x y ... def inner_error y ... # Will produce an error 'x' is local because of the assignment.. ... x y ... return tmp ... return inner_reads inner_writes inner_error ... inner_reads inner_writes inner_error outer 5 inner_reads.. inner_writes inner_error ... inner_reads inner_writes inner_error outer 5 inner_reads 5 inner_writes 10 inner_reads 5 inner_error..
|