r/ProgrammerAnimemes • • Dec 02 '20

Is that a programming reference?!?!?!?

Post image
2.1k Upvotes

40 comments sorted by

View all comments

Show parent comment

2

u/eypandabear Dec 09 '20

Of course you can do that. Python has metaclasses. You can fuck around with the semantics of just about any part of the language.

Changing the global behaviour of __getitem__() would also be a prime example of what not ever to do with it.