How do I get the current value of "errno"

S

Steve Juranich

I know that there's os.strerror to get the error string, and the errno
module gives me all of the mappings like 34 -> ERANGE. But I have yet
to find out how to check the value of errno in a Python script.

If I'm missing something obvious, please tell me. But I've been using
Python for about six years now, and I never have found out how to do
this.

Thanks a lot.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,691
Members
48,796
Latest member
Greg L.

Latest Threads

Top