python - Where is the source code of Exception implementation?
过去多啦不再A梦
过去多啦不再A梦 2017-05-18 11:00:33
0
2
611

I want to see the source code implementation of exceptions, and found that they are all inherited from the built-in Exception, but I have been looking for it for a long time and can’t find it. I can’t find it even by searching with grep. I don’t know where its implementation source code is?

过去多啦不再A梦
过去多啦不再A梦

reply all(2)
迷茫

In objects/exceptions.c, the specific exception definition may not be as obvious as the one reported by python, but you can check the relevant information in this source code file through the exception name reported by it

Peter_Zhu

here

https://github.com/python/cpy...

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template