For msilib, 'int numbers' should just be 'ints' or 'integers'. --- For PC/winreg.c '''\ PyDoc_STRVAR(PyHKEY_Detach_doc, "key.Detach() -> int\n" ... "On 64 bit windows, the result of this function is a long integer");''' This last line should be deleted rather than modified, as its only point is to override the signature declaration of returning int. --- I cannot vouch for this change: -/* necessary to make sure types aren't coerced (e.g., int and long) */ +/* necessary to make sure types aren't coerced (e.g., float and complex) */ I presume you thought about it carefully in context. --- The rest of the changes look grammatically correct. I cannot be sure about the executable code changes.
Thank you Ezio and Terry for reviews. > I presume you thought about it carefully in context. Yes. Here can be any different types for which instances can be equal (1 == 1L, 1.0 == 1.0+0.0j). > This kind of changes are a bit out of place in a patch like this. They risk to > introduce subtle problems and might go unnoticed during commit reviews. I reverted code back to PyErr_SetString. The only nontrivial changes are in Lib/pickletools.py, Lib/test/test_itertools.py and Lib/test/test_long.py (removed redundant handling of 'L' suffix in long representation).
History
Date
User
Action
Args
2022-04-11 14:57:49
admin
set
github: 62983
2013-08-27 17:40:16
serhiy.storchaka
set
status: open -> closedresolution: fixedstage: patch review -> resolved