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
Fraction constructor may accept spaces around '/' #88512
Comments
|
Per https://bugs.python.org/msg394731 suggestion. For instance, mpq_set_str() does support this. Also, gmpy2.mpq(). Tentative patch attached. |
|
Of course, I'm for it. But we have to be consistent... I was surprised to realize |
|
On Wed, Jun 09, 2021 at 06:18:22AM +0000, Vedran Čačić wrote:
Good catch, probably that should be allowed too.
The PEP-515 added '_' as a separator between digits. But the |
See previous discussion in bpo-9574. |
Given this, probably spaces around '/' should be disallowed. |
|
Implemented in #96496. |
skirpichev mannequin commentedJun 8, 2021
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: