Lim Woojaejaylog.hashnode.dev·Dec 15, 2024[Python] Magic MethodWhat is a magic method? Magic methods, also known as dunder methods (short for "double underscore"), are special methods in Python that start and end with double underscores. They automatically invoked by python to perform specific operations. Exampl...Discusspython magic method
Tarun Sharmatapstechie.hashnode.dev·Aug 5, 2024Learn Python Magic Methods: A Simple ExplanationUnderstanding Magic Methods in Python Magic methods in Python, also known as dunder methods (because they have double underscores at the beginning and end of their names), allow us to define the behavior of our objects for various operations. They en...DiscussPython Interview Prep: Essential Concepts and Techniquescustom container
kapil Gargkapilg.hashnode.dev·Apr 19, 2024Singleton class in PythonSingleton : There is only a single instance of the given class. There are multiple ways to create Singleton class in python. Most of these deals with overriding Dunder methods. Overriding __new__ When you are writing a python class, __new__ methods c...Discuss·104 readsPython
Nikhil Akkinikhilakki.in·Sep 9, 2023Unlocking Python's Hidden Gems: A Journey Through IteratorsIntroduction In Python, iterators are a fundamental concept that allows you to traverse through collections of data, such as lists, tuples, and dictionaries. They provide a way to access each element in a sequence one at a time, making it easier to p...Discuss·47 readsPython DevelopmentPython
Salaudeen Sodiqsalsod.hashnode.dev·May 10, 2023Beautiful concepts in PythonDo you know everything in Python is an object? When you declare a variable of x and initialize it with the value of 3 for example x = 3. What Python did here in the background was that it creates an instance of class int which is the variable x you d...Discuss·37 readsPython