views:

521

answers:

5

Hi All, Can anyone help me to get info about the Scoping issue( Static and dynamic scoping) in Python ?

Thanks

+2  A: 

This may be help you: Closures in Python

Vasil
A: 

Sorry but it does not seem to be the naswer of my question.

Mcad
Sorry. Fix your question to be more specific, and perhaps someone can answer it. A code sample, a reference to something you read. Any little hint as to what you can't do or don't understand would help.
S.Lott
+5  A: 

Read the relevant chapter of the documentation.

hop
+3  A: 

Maybe this one: http://hircus.wordpress.com/2005/06/02/static-lexical-vs-dynamic-scoping/ ? If you need more specific answer, please be more specific in the question.

phjr
A: 

Generally, the answer to any 'scoping issue' is "Because Python isn't X", where X == whatever language on which the questioner is basing their understanding of scoping.

Matthew Trevor