-
Notifications
You must be signed in to change notification settings - Fork 95
Found a problem with the args of the Dictionary "items" function. #101
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
For me it works in CPython 3.7.4 as in GPython. |
@Tim-St |
Yes, the code requires the following check at the top: err := UnpackTuple(args, nil, "items", 0, 0)
if err != nil {
return nil, err
} It could even be more correct by allowing to call |
@Tim-St |
corona10
pushed a commit
that referenced
this issue
Nov 18, 2019
* Fix bug in "items" function Fixes #101 * Update dict.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current Results
in gpython
in python
gpython/py/dict.go
Lines 30 to 39 in af17d7d
I think we should add an error to this part of the code.
The text was updated successfully, but these errors were encountered: