-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Closed
Description
Feature
CPython fills attributes for OSError
>>> q = OSError('foo', 'bar', 'baz', None, 'quux')
>>> q.args
('foo', 'bar')
>>> q.errno
'foo'
>>> q.strerror
'bar'
>>> q.filename
'baz'
>>> q.filename2
'quux'
>>>
RustPython doesn't yet:
>>>>> p = OSError('foo', 'bar', 'baz')
>>>>> p.args
('foo', 'bar', 'baz')
>>>>> p.errno
'foo'
>>>>> p.strerror
'bar'
>>>>> p.filename
>>>>> p.filename2
>>>>>
Python Documentation
Here's the doc for OSError : https://docs.python.org/3/library/exceptions.html?highlight=oserror#OSError
Metadata
Metadata
Assignees
Labels
No labels