Python handles globals badly.
skybuck2000 at hotmail.com
Sun Sep 13 14:11:05 CEST 2015
"Steven D'Aprano" wrote in message
news:55f566c8$0$1644$c3e8da3$5496439d at news.astraweb.com...
On Sun, 13 Sep 2015 10:04 pm, Skybuck Flying wrote:
> Namespaces don't "become writeable".
> The purpose of "global" is to tell the compiler that this name should
> be bound in the global namespace, not the local namespace.
> How does it become writeable then ?
It's always writeable.
Thus my logic is correct.
By making something global, it ends up in the global namespace, and it
I don't even understand how python interpreter works but I can understand it
better than you guys do apperently hahaha.
More information about the Python-list