Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32.3k
gh-53032: support IEEE 754 contexts in the decimal module#122003
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes from1 commit
b833af8
f25524d
ead16e4
7a34bb2
042d643
75f7833
11dd047
1b26d6f
4053dbb
3d016c9
7caf3e5
35f7035
70cbbce
1b8ede3
702fb8c
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -427,8 +427,6 @@ def IEEEContext(bits, /): | ||
""" | ||
import sys | ||
vstinner marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
if bits <= 0 or bits > IEEE_CONTEXT_MAX_BITS or bits % 32: | ||
raise ValueError("argument must be a multiple of 32, " | ||
f"with a maximum of {IEEE_CONTEXT_MAX_BITS}") | ||
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -4417,7 +4417,6 @@ def assert_rest(self, context): | ||
assert_rest(self, c) | ||
# Invalid values | ||
self.assertRaises(ValueError, IEEEContext, -1) | ||
skirpichev marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
self.assertRaises(ValueError, IEEEContext, 123) | ||
self.assertRaises(ValueError, IEEEContext, 1024) | ||
Uh oh!
There was an error while loading.Please reload this page.