Clever little example that shows how flexible Python’s dunder methods can be. It’s a neat reminder that even simple overrides can completely change built-in behaviour. Could this kind of trick be useful in real projects, or is it more of a teaching tool?
Always Five Trick → Class always returns 5 no matter what when you use len().
pythonclcoding
●3 ●9 ●15
calendar_today
• schedule1 min read
1 Comment
🔥 Join developers growing publicly
Share your knowledge, build in public, and grow your developer presence with a global community.
Please log in to comment on this post.
More Posts
- © 2026 Coder Legion
- Feedback / Bug
- Privacy
- About Us
- Contacts
- Premium Subscription
- Terms of Service
- Refund
- Early Builders
chevron_left
More From pythonclcoding
Related Jobs
- User Interface (UI) Software Developer IIIOmega Solutions Inc · Full time · Princeton, NJ
- Museum and Archives TechnicianC&O Canal Trust · Full time · Williamsport, MD
- Développeur.euse logiciel II - ShareGate Migrate [Web Experience]jobgether · Full time · Canada
Commenters (This Week)
Next Big Creative
16 comments
Dechive
2 comments
iDevo
2 comments
Contribute meaningful comments to climb the leaderboard and earn badges!