Skip to content
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

Merged
merged 7 commits into from
May 7, 2019

Conversation

SameeraSomisetty
Copy link

No description provided.

Copy link
Contributor

@jmadler jmadler left a comment

Choose a reason for hiding this comment

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

👍

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- ``max`` (new max behaviour from Py3)
- ``max`` (new default option from Py3)

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- ``min`` (new min behaviour from Py3)
- ``min`` (new default option from Py3)

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@@ -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)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
self.assertEqual(round(123.5), 124)

Copy link
Author

Choose a reason for hiding this comment

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

Done.

@jmadler
Copy link
Contributor

jmadler commented May 7, 2019

Looks like test failures are unrelated. Thanks for implementing! :)

@jmadler jmadler merged commit dc0b808 into PythonCharmers:master May 7, 2019
@SameeraSomisetty
Copy link
Author

SameeraSomisetty commented May 7, 2019 via email

@jmadler
Copy link
Contributor

jmadler commented May 8, 2019

It was my pleasure! You did an excellent job and surpassed my expectations.

Thank you for your help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants