Skip to content

No argument with float function do not return 0.0 #1421

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

Closed
hqsz opened this issue Sep 26, 2019 · 3 comments · Fixed by #1424
Closed

No argument with float function do not return 0.0 #1421

hqsz opened this issue Sep 26, 2019 · 3 comments · Fixed by #1424
Labels
C-compat A discrepancy between RustPython and CPython

Comments

@hqsz
Copy link
Contributor

hqsz commented Sep 26, 2019

Feature

print(float())

If no argument is given, float function have to return 0.0

Actual result

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: Expected at least 2 arguments (1 given)

Expected result

0.0
@hqsz hqsz added the RFC Request for comments label Sep 26, 2019
@hqsz
Copy link
Contributor Author

hqsz commented Sep 26, 2019

Wrong label, but i do not have auth. If someone who can change label see this issue, please change label RFC to feat. thank you

@coolreader18 coolreader18 added C-compat A discrepancy between RustPython and CPython and removed RFC Request for comments labels Sep 26, 2019
dralley added a commit to dralley/RustPython that referenced this issue Sep 26, 2019
Copy the same pattern used by int()

closes RustPython#1421
@dralley
Copy link
Contributor

dralley commented Sep 26, 2019

Addressed in PR

dralley added a commit to dralley/RustPython that referenced this issue Sep 26, 2019
Copy the same pattern used by int()

closes RustPython#1421
dralley added a commit to dralley/RustPython that referenced this issue Sep 27, 2019
Copy the same pattern used by int()

closes RustPython#1421
dralley added a commit to dralley/RustPython that referenced this issue Sep 27, 2019
@hqsz
Copy link
Contributor Author

hqsz commented Sep 27, 2019

Oh, I was going to start now. But someone take this issue :)

dralley added a commit to dralley/RustPython that referenced this issue Sep 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-compat A discrepancy between RustPython and CPython
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants