The Python Oracle

How does python prevent a class from being subclassed?

This video explains
How does python prevent a class from being subclassed?

--

Become part of the top 3% of the developers by applying to Toptal
https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Unforgiving Himalayas Looping

--

Chapters
00:00 Question
01:06 Accepted answer (Score 22)
01:58 Thank you

--

Full question
https://stackoverflow.com/questions/1605...

Question links:
[python docs]: http://docs.python.org/2/library/functio...

Accepted answer links:
[Py_TPFLAGS_BASETYPE]: http://docs.python.org/2/c-api/typeobj.h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #subclass #final

#avk47