Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Move set_item to DictProtocol#548

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
windelbouwman merged 15 commits intoRustPython:masterfrom0b01:new_vm_fns
Feb 27, 2019
Merged

Conversation

@0b01
Copy link
Contributor

@0b010b01 commentedFeb 25, 2019
edited
Loading

This commits moves set_item method from PyContext to DictProtocol trait.

#[allow(unused_assignments)]
{
arg_count +=1;
let len = $args.args.len();
Copy link
Contributor

@adrian17adrian17Feb 26, 2019
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Wait, this change looks really weird.
Builtin functions can have optional arguments that are not keyword arguments. They way you did it, you seem to assume that optional arguments canonly be kwargs. This breaks it completely. As it was,arg_check! simply handled positional arguments.
(that said, admittably handling optional arguments that can be either positional or keyword is a bit awkward in the current model)
Also, it seems to assume that kwargs are passed in the same order as they were declared?
(Also, shouldn't this change be in a separate PR?)

Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

I reverted the changes

@codecov-io
Copy link

Codecov Report

Merging#548 intomaster willdecrease coverage by0.81%.
The diff coverage is37.5%.

Impacted file tree graph

@@            Coverage Diff             @@##           master     #548      +/-   ##==========================================- Coverage   43.06%   42.25%   -0.82%==========================================  Files          73       73                Lines       15924    16144     +220       Branches     4179     4239      +60     ==========================================- Hits         6858     6821      -37- Misses       7144     7401     +257  Partials     1922     1922
Impacted FilesCoverage Δ
vm/src/stdlib/json.rs61.34% <0%> (ø)⬆️
vm/src/obj/objobject.rs38.42% <0%> (ø)⬆️
wasm/lib/src/convert.rs0% <0%> (ø)⬆️
vm/src/compile.rs45.65% <100%> (ø)⬆️
vm/src/sysmodule.rs41.53% <100%> (ø)⬆️
vm/src/import.rs68.85% <100%> (ø)⬆️
vm/src/vm.rs52.65% <33.33%> (-1.31%)⬇️
parser/src/lexer.rs62.98% <33.33%> (-21.78%)⬇️
vm/src/pyobject.rs60.39% <33.33%> (-0.08%)⬇️
parser/src/parser.rs43.42% <50%> (-0.21%)⬇️
... and4 more

Continue to review full report at Codecov.

Legend -Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing data
Powered byCodecov. Last updated6242ac...ec93c55. Read thecomment docs.

@windelbouwman
Copy link
Contributor

@RickyHan thank you for your contribution!
@adrian17 thank you for helping review this change.

@windelbouwmanwindelbouwman merged commit9404c7c intoRustPython:masterFeb 27, 2019
@0b010b01 deleted the new_vm_fns branchFebruary 27, 2019 10:32
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@adrian17adrian17adrian17 left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@0b01@codecov-io@windelbouwman@adrian17

[8]ページ先頭

©2009-2025 Movatter.jp