You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PyNumber_Remainder does not use __mod__ on str and unicode
subclasses. I guess the fix would be to check for
nb_remainder first
and then fallback to PyString_Format or PyUnicode_Format.
The attached patch adds __mod__ to the 'str' and 'unicode'
types. The side effect of this is that PyNumber_Check returns
true for these types. This is not a huge loss since
PyNumber_Check is already pretty useless. selectmodule.c
was affected by this and was fixed by improving the error
message returned by PyFloat_AsDouble (matching what
PyInt_AsLong does) and using it to convert the timeout
argument to a float.
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: