Title: Using Multiple Constructors in Your Python Classes – Real Python
Open Graph Title: Using Multiple Constructors in Your Python Classes – Real Python
Description: In this video course, you'll learn how to provide multiple constructors in your Python classes. To this end, you'll learn different techniques, such as checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.
Open Graph Description: In this video course, you'll learn how to provide multiple constructors in your Python classes. To this end, you'll learn different techniques, such as checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.
Opengraph URL: https://realpython.com/courses/multiple-constructors-python/
X: @realpython
Domain: realpython.com
{
"@context": "https://schema.org",
"@type": "Course",
"@id": "https://realpython.com/courses/multiple-constructors-python/",
"url": "https://realpython.com/courses/multiple-constructors-python/",
"name": "Using Multiple Constructors in Your Python Classes",
"description": "In this video course, you'll learn how to provide multiple constructors in your Python classes. To this end, you'll learn different techniques, such as checking argument types, using default argument values, writing class methods, and implementing single-dispatch methods.",
"availableLanguage": [
"en"
],
"educationalLevel": "Intermediate",
"educationalCredentialAwarded": {
"@type": "EducationalOccupationalCredential",
"credentialCategory": "Certificate",
"name": "Real Python Certificate of Completion"
},
"hasCourseInstance": [
{
"@type": "CourseInstance",
"courseMode": "Online",
"courseWorkload": "PT95M34S",
"instructor": {
"@type": "Person",
"name": "Darren Jones",
"image": "https://realpython.com/cdn-cgi/image/width=1000,height=1000,fit=crop,gravity=auto,format=auto/https://files.realpython.com/media/dj-profile-square-med.e9f478927b62.jpg",
"url": "https://realpython.com/team/djones/",
"affiliation": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
}
}
}
],
"image": {
"@type": "ImageObject",
"url": "https://files.realpython.com/media/Providing-Multiple-Constructors-for-Your-Python-Classes_Watermarked.00752f2cd783.jpg",
"width": 1920,
"height": 1080
},
"inLanguage": "en",
"provider": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png"
},
"publisher": {
"@type": "Organization",
"@id": "https://realpython.com/#organization",
"name": "Real Python",
"url": "https://realpython.com",
"logo": {
"@type": "ImageObject",
"url": "https://realpython.com/static/real-python-logo-square-512.157ae6bf64ed.png",
"width": 512,
"height": 512
},
"description": "Real Python is a leading provider of online Python education and one of the largest language-specific online communities for software developers. It publishes high-quality learning resources, such as tutorials, books, and courses to an audience of millions of developers, data scientists, and machine learning engineers each month.",
"slogan": "Become a Python Expert",
"email": "info@realpython.com",
"sameAs": [
"https://github.com/realpython",
"https://www.youtube.com/realpython",
"https://twitter.com/realpython",
"https://x.com/realpython",
"https://www.linkedin.com/company/realpython-com/",
"https://www.facebook.com/learnrealpython",
"https://www.instagram.com/realpython",
"https://www.tiktok.com/@realpython.com"
]
},
"syllabusSections": [
{
"@type": "Syllabus",
"name": "Providing Multiple Constructors in Your Python Classes"
},
{
"@type": "Syllabus",
"name": "Simulating Multiple Class Constructors"
},
{
"@type": "Syllabus",
"name": "Using @classmethod for Multiple Class Constructors"
},
{
"@type": "Syllabus",
"name": "Using @singledispatchmethod for Multiple Class Constructors"
}
],
"offers": [
{
"@type": "Offer",
"category": "Subscription"
}
],
"datePublished": "2022-10-11",
"dateModified": "2024-10-24"
}
| author | Real Python |
| twitter:card | summary_large_image |
| twitter:image | https://files.realpython.com/media/Providing-Multiple-Constructors-for-Your-Python-Classes_Watermarked.00752f2cd783.jpg |
| og:image | https://files.realpython.com/media/Providing-Multiple-Constructors-for-Your-Python-Classes_Watermarked.00752f2cd783.jpg |
| twitter:creator | @realpython |
| og:type | article |
Links:
Viewport: width=device-width, initial-scale=1, shrink-to-fit=no, viewport-fit=cover
Robots: max-image-preview:large