bpo-33197: Update error message of invalid inspect.Parameters#6636
Conversation
|
For reviewers, Please add labels |
Sorry, something went wrong.
a226596 to
67478b6
Compare
April 29, 2018 15:22
serhiy-storchaka
left a comment
There was a problem hiding this comment.
kind can be not only _ParameterKind member here, but an integer. You need first make a _ParameterKind from it: _ParameterKind(kind).
There is the same formatting error at line 2465. The message at line 2739 can be improved too.
The message at line 2456 should contain the name of the type instead of the repr of the value.
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase And if you don't make the requested changes, you will be poked with soft cushions! |
Sorry, something went wrong.
|
@serhiy-storchaka |
Sorry, something went wrong.
96620b3 to
4fb6fca
Compare
April 30, 2018 08:23
|
I have made the requested changes; please review again |
Sorry, something went wrong.
|
Thanks for making the requested changes! @serhiy-storchaka: please review the changes made to this pull request. |
Sorry, something went wrong.
1st1
left a comment
There was a problem hiding this comment.
This is a regression from blindly converting everything in stdlib to use enums. Thanks for fixing it!
I don't like the 'VAR_KEYWORD cannot have default values' message, it's rather cryptic. Please add a mapping of parameter-kinds to human-readable form and use that mapping to render good-looking error messages. Thanks!
Sorry, something went wrong.
|
A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated. Once you have made the requested changes, please leave a comment on this pull request containing the phrase |
Sorry, something went wrong.
|
@1st1, @serhiy-storchaka: Updated! I will send a new PR about adding property after this PR is merged!(3.8) |
Sorry, something went wrong.
|
Please take a look if you have a time 👍 |
Sorry, something went wrong.
|
Thanks you for reviewing all 79 characters linting issues. I should care about this linting convention from now on. Thank you for redundunt reviewing for same issues :) Enjoy your weekend! thank you |
Sorry, something went wrong.
1st1
left a comment
There was a problem hiding this comment.
Left a couple nitpicks, please fix them. LGTM otherwise.
Sorry, something went wrong.
d6dde9d to
a466687
Compare
May 27, 2018 23:58
The error message from constructing invalid inspect. Parameters was confused due to print integer enum value (parameter kind). It is updated to print a string value of parameter kind.
|
Thanks! Updated! |
Sorry, something went wrong.
…honGH-6636) (cherry picked from commit a9cab43) Co-authored-by: Dong-hee Na <donghee.na92@gmail.com>
The error message from constructing invalid inspect.
Parameters was confused due to print integer enum value (parameter kind).
It is updated to print a string value of parameter kind.
https://bugs.python.org/issue33197