Title: init Python | Is __init__ in Python a Constructor? - Python Pool
Open Graph Title: init Python | Is __init__ in Python a Constructor?
Description: In python init can be used as a construtor. A constructor is called as soon as an object of the same class is initialised.
Open Graph Description: One of the most widely used and one of the most misunderstood is init in Python. Python is one of the object-oriented paradigms (everything you create is
Opengraph URL: https://www.pythonpool.com/init-python/
X: @pythonpool
Generator: WordPress 6.8.3
Domain: www.pythonpool.com
{"@context":"https://schema.org","@graph":[{"@type":"Article","@id":"https://www.pythonpool.com/init-python/#article","isPartOf":{"@id":"https://www.pythonpool.com/init-python/"},"author":{"name":"Ashwini Mandani","@id":"https://www.pythonpool.com/#/schema/person/8a75fb48eb1f3dc952df65a8c28ac056"},"headline":"init Python | Is __init__ in Python a Constructor?","datePublished":"2020-06-23T11:11:15+00:00","dateModified":"2024-01-01T05:49:42+00:00","mainEntityOfPage":{"@id":"https://www.pythonpool.com/init-python/"},"wordCount":885,"commentCount":0,"publisher":{"@id":"https://www.pythonpool.com/#organization"},"image":{"@id":"https://www.pythonpool.com/init-python/#primaryimage"},"thumbnailUrl":"https://www.pythonpool.com/wp-content/uploads/2020/06/Capture-3.jpg","keywords":["__init__ in python","__init__ python","__init__ python 3","__init__ python w3","__init__.py python","__init__.py python 3","__init__(self *args **kwargs) python","def __init__ python","def __init__(self) python","library python __init__","python __init__","python __init__.py","python __init__.py example","python __new__ vs __init__","python _init_","python class __init__","python def __init__","python super().__init__()","what is __init__ in python"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https://www.pythonpool.com/init-python/#respond"]}]},{"@type":"WebPage","@id":"https://www.pythonpool.com/init-python/","url":"https://www.pythonpool.com/init-python/","name":"init Python | Is __init__ in Python a Constructor? - Python Pool","isPartOf":{"@id":"https://www.pythonpool.com/#website"},"primaryImageOfPage":{"@id":"https://www.pythonpool.com/init-python/#primaryimage"},"image":{"@id":"https://www.pythonpool.com/init-python/#primaryimage"},"thumbnailUrl":"https://www.pythonpool.com/wp-content/uploads/2020/06/Capture-3.jpg","datePublished":"2020-06-23T11:11:15+00:00","dateModified":"2024-01-01T05:49:42+00:00","description":"In python init can be used as a construtor. A constructor is called as soon as an object of the same class is initialised.","breadcrumb":{"@id":"https://www.pythonpool.com/init-python/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https://www.pythonpool.com/init-python/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.pythonpool.com/init-python/#primaryimage","url":"https://www.pythonpool.com/wp-content/uploads/2020/06/Capture-3.jpg","contentUrl":"https://www.pythonpool.com/wp-content/uploads/2020/06/Capture-3.jpg","width":1002,"height":605,"caption":"__init__ in python"},{"@type":"BreadcrumbList","@id":"https://www.pythonpool.com/init-python/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://www.pythonpool.com/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https://www.pythonpool.com/blog/"},{"@type":"ListItem","position":3,"name":"init Python | Is __init__ in Python a Constructor?"}]},{"@type":"WebSite","@id":"https://www.pythonpool.com/#website","url":"https://www.pythonpool.com/","name":"Python Pool","description":"Your One-Stop Python Learning Destination","publisher":{"@id":"https://www.pythonpool.com/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://www.pythonpool.com/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https://www.pythonpool.com/#organization","name":"Python Pool","url":"https://www.pythonpool.com/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.pythonpool.com/#/schema/logo/image/","url":"http://www.pythonpool.com/wp-content/uploads/2020/08/aa.png","contentUrl":"http://www.pythonpool.com/wp-content/uploads/2020/08/aa.png","width":452,"height":185,"caption":"Python Pool"},"image":{"@id":"https://www.pythonpool.com/#/schema/logo/image/"},"sameAs":["https://x.com/pythonpool","https://www.youtube.com/c/pythonpool"]},{"@type":"Person","@id":"https://www.pythonpool.com/#/schema/person/8a75fb48eb1f3dc952df65a8c28ac056","name":"Ashwini Mandani","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https://www.pythonpool.com/#/schema/person/image/","url":"https://secure.gravatar.com/avatar/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g","contentUrl":"https://secure.gravatar.com/avatar/f765ed1940ac0ae1d30ce4cb2f1452c1e83143b07354d25a42c1cd118980e269?s=96&d=wavatar&r=g","caption":"Ashwini Mandani"}}]}
| og:locale | en_US |
| og:type | article |
| og:site_name | Python Pool |
| article:published_time | 2020-06-23T11:11:15+00:00 |
| article:modified_time | 2024-01-01T05:49:42+00:00 |
| og:image | https://www.pythonpool.com/wp-content/uploads/2020/06/Capture-3.jpg |
| og:image:width | 1002 |
| og:image:height | 605 |
| og:image:type | image/jpeg |
| author | Ashwini Mandani |
| twitter:card | summary_large_image |
| twitter:creator | @pythonpool |
| twitter:label1 | Written by |
| twitter:data1 | Ashwini Mandani |
| twitter:label2 | Est. reading time |
| twitter:data2 | 6 minutes |
| msapplication-TileImage | https://www.pythonpool.com/wp-content/uploads/2019/11/cropped-LogoMakr_93D8H1-300x300.png |
Links:
Viewport: width=device-width, initial-scale=1
Robots: index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1