Python handles globals badly.
kmisoft at gmail.com
Sat Sep 5 02:05:47 CEST 2015
> To me, marking a variable as global in a large number of functions is
> a code smell that indicates that you're probably overusing globals.
> Lua is an example of a language that takes the opposite approach: in
> Lua, every variable is global unless you explicitly mark it as local.
> Lua is a fine language overall, but that is one of my pet peeves with
I had some experience programming in Lua and I'd say - that language
is bad example to follow.
Indexes start with 1 (I am not kidding)
Single data type ("table") which could suddenly flip from "list" to
"map" because you deleted one item.
Has objects but has no classes.
and so on...
More information about the Python-list