Special Methods  ||  Python Tutorial  ||  Learn Python Programming @Socratica
Special Methods  ||  Python Tutorial  ||  Learn Python Programming  @Socratica
Uploaded July 2021 | Updated September 2026, 3 weeks ago
𝙎𝙩𝙖𝙮 𝙞𝙣 𝙩𝙝𝙚 𝙡𝙀𝙀𝙥 𝙄𝙉𝙁𝙄𝙉𝙄𝙏𝙀𝙇𝙔: snu.socratica.com/python Socratica Friends, we have a quiet little email group for Python if you'd like to receive updates (can't count on YT for notifications). Sign up here: snu.socratica.com/python

In Python, special methods are those "odd looking" methods that start and end with underscores. They let you override operators, intercept the setting and getting of attributes, customize object serialization, and much more. In this lesson we talk about the idea behind special methods and attributes, how to implement them, and give many examples along the way!

Some of the special methods & attributes we will cover include:
__init__
__doc__
__setattr__
__str__
__getattr__
__getattribute__

We were able to bring you this video thanks to our generous Kickstarter backers! Find their names hidden (okay, not very hidden) in the video!

⧓⧓⧓⧓⧓
Subscribe to Socratica + bell for notifications:
bit.ly/SocraticaSubscribe

Find our programming playlists here:
Python programming: bit.ly/PythonSocratica
SQL programming: bit.ly/SQL_Socratica

⧓⧓⧓⧓⧓
We recommend:
How to Be a Great Student
ebook: amzn.to/2Lh3XSP
Paperback: amzn.to/3t5jeH3
Kindle Unlimited (read free): amzn.to/3atr8TJ

Python Cookbook, 3rd edition
amzn.to/3goRmbG

The Mythical Man Month - Essays on Software Engineering & Project Management
amzn.to/2tYdNeP

Shop Amazon Used Textbooks - Save up to 90%
amzn.to/2pllk4B

⧓⧓⧓⧓⧓
Join this channel to get access to perks:
youtube.com/channel/UCW6TXMZ5Pq6yL6_k5NZ2e0Q/join

Support Socratica on Patreon:
patreon.com/socratica

⧓⧓⧓⧓⧓
Python instructor: Ulka Simone Mohanty (@ulkam on Twitter)
Written & Produced by Michael Harrison (@mlh496 on Twitter)

#Python #SpecialMethods #Coding
Special Methods  ||  Python Tutorial  ||  Learn Python Programming12 Study Habits to Adopt Now - Study TipsWho is Thomas Edison? || Biography of Thomas Edison2D Normal DistributionsWhat is Quantitative Finance? 📈 Intro for Aspiring QuantsSQL Joins Examples |Š| Joins in SQL |Š| SQL TutorialHow to Fight Impostor Syndrome - Study Tips - Mental HealthAsyncIO, await, and async - Concurrency in PythonField Definition (expanded) - Abstract AlgebraIntroduction to Plots - Mathematica & the Wolfram LanguageUrllib - GET Requests || Python Tutorial || Learn Python ProgrammingStock Options Course version 1.0 - for Aspiring Quants
Socratica |

Special Methods || Python Tutorial || Learn Python Programming

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER