Python handles globals badly.

Antoon Pardon antoon.pardon at rece.vub.ac.be
Tue Sep 8 04:40:12 EDT 2015


Op 05-09-15 om 02:05 schreef Vladimir Ignatov:
>> 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)

What is so bad about that?





More information about the Python-list mailing list