
๐Ever tried customizing an int object in Python?
But... it's immutable!
So how do you change its value on creation?
๐ Here's a trick using the __new__ magic method:
#Python #PythonCode #Coding #Programming #CodeNewbie #100DaysOfCode

English
Post

