Repository navigation
Conversation
Member
|
Related: #2974. Haven't been paying much attention to it but you might want to see the updates there since they should affect how this PR should try and implement this. |
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
2 times, most recently
from
October 23, 2021 17:33
832ffad to
322057e
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
3 times, most recently
from
October 29, 2021 20:29
cae22df to
4792bab
Compare
Merged
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
from
October 30, 2021 07:49
4792bab to
bbf87c7
Compare
youknowone
previously approved these changes
Oct 30, 2021
| use crate::{ | ||
| builtins::{traceback::PyTracebackRef, PyInt, PyTupleRef, PyTypeRef}, | ||
| function::{FuncArgs, IntoPyResult}, | ||
| pyobject::{PyValue, TypeProtocol}, |
Member
There was a problem hiding this comment.
Suggested change
| pyobject::{PyValue, TypeProtocol}, | |
| PyValue, TypeProtocol, |
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
2 times, most recently
from
November 2, 2021 17:51
0a75d79 to
e84bcb6
Compare
Member
|
@deantvv could you review this PR? |
deantvv
reviewed
Nov 6, 2021
deantvv
left a comment
Contributor
There was a problem hiding this comment.
This PR looks great and makes OSError behaves more like CPython version.
| } | ||
|
|
||
| fn os_error_parse_args( | ||
| exc_self: PyBaseExceptionRef, |
Contributor
There was a problem hiding this comment.
Suggested change
| exc_self: PyBaseExceptionRef, | |
| exc_self: &PyBaseExceptionRef, |
Contributor
There was a problem hiding this comment.
We could use the reference to remove some clone.
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
from
November 7, 2021 06:42
86e6443 to
8158379
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
3 times, most recently
from
November 18, 2021 16:34
3f534a4 to
72bc663
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
from
December 5, 2021 17:15
72bc663 to
6138130
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
from
December 13, 2021 15:32
6138130 to
ee9f041
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
from
February 23, 2022 15:06
ee9f041 to
cd32e67
Compare
ChJR
force-pushed
the
feature/BlockingIOError-Attr
branch
3 times, most recently
from
April 2, 2022 18:44
1c6547e to
48b6860
Compare
youknowone
force-pushed
the
feature/BlockingIOError-Attr
branch
2 times, most recently
from
August 4, 2022 20:01
9b4598c to
9617789
Compare
Make errno, strerror of OSError from readonly to attributes Add OSError's attributes even they are None
youknowone
force-pushed
the
feature/BlockingIOError-Attr
branch
from
August 4, 2022 20:04
9617789 to
db53fd2
Compare
Contributor
Author
|
Too old to fix the codes. I close this PR and will check other issues. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR provides specified attribute "characters_written" to BlockingIOError. Other unnecessary attributes are ignored in BlockingIOError such as winerror, filename, filename2.