April 17, 2024, 4:41 a.m. | Wassaf Shahzasd

DEV Community dev.to

The way python handles functions is a bit unique and the star ⭐ of the show is the "self" argument passed to every function defined within a class, But have you ever wondered, how self is passed to the function? We never pass it during the call.

How does it get there ? and how can we replicate it ?



Well in this article, we will try to understand and replicate it. Lets put the fun in functions🎉.





🧩 Types …

beginners call class computerscience ever every function functions programming python show star the way unique

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Lead GNSS Data Scientist

@ Lurra Systems | Melbourne

Senior Machine Learning Engineer (MLOps)

@ Promaton | Remote, Europe

Business Data Scientist, gTech Ads

@ Google | Mexico City, CDMX, Mexico

Lead, Data Analytics Operations

@ Zocdoc | Pune, Maharashtra, India