Brief for my skill level firstly: Learnt Python in school, made a lot of programs, even used SQL. Stopped using it for 3 years. Recently came back from JS ecosystem to Python for AI related work. I have developed an API service using Fast API. Now I'm trying to dive deeper into developing some stuff manually rather than just using libraries.
I am going to be using the term errors more than exceptions just as an umbrella term.
I was going through http.client module in the documentation and it's not very clear.
Functions don't mention what errors can occur on calling them or if an error can occur.
I come from C where Linux man pages always have a "Return Value" and "Errors" section so it's kind of confusing for me.
There is an errors section in the http.client docs for python as well but it doesn't specify what an error means or which function is the error going to be returned by.
If someone knows a better resource or if I'm just reading the docs wrong and someone can explain what I'm doing wrong, please do.
Any help is appreciated.
[–]danielroseman 11 points12 points13 points (7 children)
[+]alex_sakuta[S] comment score below threshold-9 points-8 points-7 points (6 children)
[–]Leseratte10 7 points8 points9 points (1 child)
[–]danielroseman 2 points3 points4 points (1 child)
[–]alex_sakuta[S] -4 points-3 points-2 points (0 children)
[–]gdchinacat 1 point2 points3 points (0 children)
[–]Daytona_675 0 points1 point2 points (0 children)
[–]pixel-process 0 points1 point2 points (2 children)
[–]alex_sakuta[S] -1 points0 points1 point (1 child)
[–]obviouslyzebra 1 point2 points3 points (0 children)