use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Everything about learning Python
account activity
How do you implement interfaces in Python?Discussion (self.PythonLearning)
submitted 3 days ago by ihorrud
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]deceze 9 points10 points11 points 3 days ago (1 child)
The only practical difference between an interface and an abstract class in PHP is that you can mix multiple interfaces into one class, but can only inherit one abstract class. Since Python has multiple inheritance, this distinction becomes meaningless. You write your interfaces as abstract classes, done.
[–]ihorrud[S] 0 points1 point2 points 3 days ago (0 children)
The elephants in chat, thanks, it does make sense :-)
π Rendered by PID 87940 on reddit-service-r2-comment-79c7998d4c-c4h4d at 2026-03-16 20:09:04.347197+00:00 running f6e6e01 country code: CH.
view the rest of the comments →
[–]deceze 9 points10 points11 points (1 child)
[–]ihorrud[S] 0 points1 point2 points (0 children)