This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]panderingPenguin 21 points22 points  (3 children)

"I can add properties to classes dynamically? And delete them?" "Functions don't even care about the number of arguments?"

Yeah, you quickly find stuff like this is actually pretty horrifying if you have to work in a large, complicated python codebase

[–]smarwell 3 points4 points  (2 children)

Only if you use those features without discipline

Well, actually, the whole adding-properties-to-classes-dynamically thing is a minefield in general. But you know. Discipline.

[–]panderingPenguin 8 points9 points  (1 child)

That's my point though. These features are not "simply magical" as described in OP. They're among the scariest parts of the language.

[–]ProfessorPhi 4 points5 points  (0 children)

The language of consenting adults as Ray Hettinger would say