some questions....
Brian Quinlan
brian at sweetapp.com
Tue Nov 26 02:06:47 EST 2002
> wow.. i thought python is easy to learn..
> but there are lot's of corks..
> namespace, scoping rule, exec, eval..
> all confuses me..
I'd suggest sticking to the basics and learning more advanced features
as you need them to solve real problems.
> print c ## <--- ok
> print C ## <--- error
Python is case sensitive (i.e. you must use case consistently).
> exec "C = simple(a)"
> print C
Why would you write this? You should very very rarely need to use exec
and eval.
Cheers,
Brian
More information about the Python-list
mailing list