Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IOCTL exceptions in kbus.py are not user-friendly #3

Open
GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments
Open

IOCTL exceptions in kbus.py are not user-friendly #3

GoogleCodeExporter opened this issue Mar 17, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Various KBUS operations use IOCTLs, and in Python these result in IOError 
exceptions, with a "magic number" inside to indicate the particular 
problem (and a standard Unix interpretation of said number, as a string).

At the C level, this is perfectly sane and traditional, but to a Python 
programmer it is not. In the Python context, it would be more helpful to 
turn these IOError exceptions into something closer to the *actual* 
explanation (as descrined in the KBUS documentation).

Rationale: well, it confuses me, and I wrote the code.

Original issue reported on code.google.com by [email protected] on 21 Sep 2009 at 2:31

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant