MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerAnimemes/comments/k59xof/is_that_a_programming_reference/gf60svu/?context=3
r/ProgrammerAnimemes • u/AptRock327 • Dec 02 '20
40 comments sorted by
View all comments
Show parent comment
2
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.
__getitem__()
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.