Issue 801306: Bad RE in scanf example (original) (raw)
Issue801306
Created on 2003-09-05 19:03 by jimm_domingo, last changed 2022-04-10 16:11 by admin. This issue is now closed.
Messages (3) | ||
---|---|---|
msg18073 - (view) | Author: Jimm Domingo (jimm_domingo) * | Date: 2003-09-05 19:03 |
In section 4.2.6 "Examples" of the Python Library Reference, the regular expression for scanf format tokens %e, %E, %f, %g does not allow an optional sign in the exponent. The RE should be: [-+]?(\d+(\.\d*)?|\d*\.\d+)([eE][-+]?\d+)? | ||
msg18074 - (view) | Author: Brett Cannon (brett.cannon) * ![]() |
Date: 2003-09-06 21:10 |
Logged In: YES user_id=357491 Double-checking with K&R, Jimm is right and regex looks good to me. Hope that helps in some way, Raymond. | ||
msg18075 - (view) | Author: Raymond Hettinger (rhettinger) * ![]() |
Date: 2003-09-09 01:32 |
Logged In: YES user_id=80475 Fixed. Thanks for the report. And, Brett, thanks for the confirmation. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-10 16:11:02 | admin | set | github: 39189 |
2003-09-05 19:03:07 | jimm_domingo | create |