Skip to content

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.

👍

- ``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.

- ``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.

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