-
Notifications
You must be signed in to change notification settings - Fork 291
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
to allow "default" parameter in min and max issue 334 #459
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/future/builtins/misc.py
Outdated
@@ -13,6 +13,8 @@ | |||
- ``open`` (equivalent to io.open on Py2) | |||
- ``super`` (backport of Py3's magic zero-argument super() function | |||
- ``round`` (new "Banker's Rounding" behaviour from Py3) | |||
- ``max`` (new max behaviour from Py3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ``max`` (new max behaviour from Py3) | |
- ``max`` (new default option from Py3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
src/future/builtins/misc.py
Outdated
@@ -13,6 +13,8 @@ | |||
- ``open`` (equivalent to io.open on Py2) | |||
- ``super`` (backport of Py3's magic zero-argument super() function | |||
- ``round`` (new "Banker's Rounding" behaviour from Py3) | |||
- ``max`` (new max behaviour from Py3) | |||
- ``min`` (new min behaviour from Py3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- ``min`` (new min behaviour from Py3) | |
- ``min`` (new default option from Py3) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
tests/test_future/test_builtins.py
Outdated
@@ -138,6 +138,7 @@ def test_round(self): | |||
self.assertEqual(round(0.125000001, 2), 0.13) | |||
self.assertEqual(round(123.5, 0), 124.0) | |||
self.assertEqual(round(123.5), 124) | |||
self.assertEqual(round(123.5), 124) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.assertEqual(round(123.5), 124) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Looks like test failures are unrelated. Thanks for implementing! :) |
Thanks Jordan! It is my first open source contribution. Thanks for helping
me out :)
On Tue, May 7, 2019 at 4:25 PM Jordan M. Adler ***@***.***> wrote:
Merged #459 <#459>
into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#459 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADLGNH74TJ6CYTU7IFTDNXLPUHQSJANCNFSM4HLLFWMQ>
.
--
Being receptive is different from being fickle.
|
It was my pleasure! You did an excellent job and surpassed my expectations. Thank you for your help :) |
No description provided.