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

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US