The Python Oracle

User defined type checking in python: "type(A()) is A" returns false

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: Isolated

--

Chapters
00:00 Question
01:48 Accepted answer (Score 14)
02:21 Answer 2 (Score 7)
02:32 Answer 3 (Score 7)
02:49 Answer 4 (Score 2)
03:19 Thank you

--

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

Question links:
[What's the canonical way to check for type in Python?]: https://stackoverflow.com/questions/1525...
[this book]: https://rads.stackoverflow.com/amzn/clic...
https://stackoverflow.com/a/154156/26012...

--

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

--

Tags
#python #types

#avk47