Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add math.exp2 implemented in cpython 3.11#4150

Merged
youknowone merged 2 commits into
RustPython:mainRustPython/RustPython:mainfrom
jopemachine:add-exp2jopemachine/RustPython:add-exp2Copy head branch name to clipboard
Sep 12, 2022
Merged

Add math.exp2 implemented in cpython 3.11#4150
youknowone merged 2 commits into
RustPython:mainRustPython/RustPython:mainfrom
jopemachine:add-exp2jopemachine/RustPython:add-exp2Copy head branch name to clipboard

Conversation

@jopemachine

@jopemachine jopemachine commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

math.exp2 return 2 raised to the power x.

Related links

  • Python codes are copy-pasted from CPython.

@jopemachine jopemachine changed the title Added math.exp2 implemented in cpython 3.11 Add math.exp2 implemented in cpython 3.11 Sep 9, 2022
@youknowone

Copy link
Copy Markdown
Member

The rust part looks great. Could you also check if you followed this guideline?
https://github.com/RustPython/RustPython/wiki/How-to-update-test-files

@jopemachine

jopemachine commented Sep 10, 2022

Copy link
Copy Markdown
Contributor Author

The rust part looks great. Could you also check if you followed this guideline? RustPython/RustPython/wiki/How-to-update-test-files

Thanks for letting me know!
I just made a fixing commit.

I didn't include unrelated diffs with math.exp2 in the commit because I think including these diffs might be out of this PR's scope.

@youknowone

Copy link
Copy Markdown
Member

We usually 'sync' our version to a specific CPython version, instead of updating each function. The bulk update is easy by following the guideline.

@jopemachine

jopemachine commented Sep 11, 2022

Copy link
Copy Markdown
Contributor Author

We usually 'sync' our version to a specific CPython version, instead of updating each function. The bulk update is easy by following the guideline.

Understood. I attached @unittest.expectedFailure to the expected failed tests.

This could be fixed by the other 2 PRs that I made.

@youknowone youknowone left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great, thank you!

@youknowone youknowone merged commit fa7a8af into RustPython:main Sep 12, 2022
@youknowone youknowone added the z-ca-2022 Tag to track contrubution-academy 2022 label Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

z-ca-2022 Tag to track contrubution-academy 2022

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.