On Monday, May 11, 2015 at 7:23:44 AM UTC+5:30, Chris Angelico wrote: > And I still don't see how this has anything to do with your confusion > about shadowing the name 'int'.
Speaking as a compiler-writer -- everything :-) In C 'int' is tagged off as different from 'myvar' earlier than say 'myvar' is different from 'printf'. The "define" in "#define" even earlier Python sure has different rules of such 'tagging-off' However all programming languages are the same in that you cant 'do semantics' until you have finished 'doing syntax' And name resolution is in a fuzzy area between the two -- Ask a theoretician about 'type-checking' and you will hear: "This is just context-sensitive syntax" Ask a compiler-writer and you get: "Part of the semantic analysis module" -- https://mail.python.org/mailman/listinfo/python-list