0
Can I change way functions int, str... are working
Can I change way functions int, str, float, list... (basicaly every type-changing function) are working? P.S. magic-methods related question, as sad in tag
3 Answers
+ 1
you define a function with the same name as what you want to change and that's it
0
How do I change it
- 1
yes, you can. But it is not recommended to do that at work.
Also int, str, float... are classes and when you call them, you basically use their constructor