[IronPython] os.strerror

Seo Sanghyeon sanxiyn at gmail.com
Wed Jun 17 10:55:34 CEST 2009


os.strerror is not implemented. Something as simple as the following woud work:

import os
import errno

def strerror(code):
    if code == errno.ENOENT:
        return 'No such file or directory'
    elif code == errno.EACCES:
        return 'Permission denied'
    else:
        return 'Unknown error ' + str(code)
os.strerror = strerror

-- 
Seo Sanghyeon



More information about the Ironpython-users mailing list