cpython: 2f1e8b7fa534 (original) (raw)

Mercurial > cpython

changeset 84283:2f1e8b7fa534 2.7

Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise OverflowError when an argument of %c format is out of range. [#18184]

Serhiy Storchaka storchaka@gmail.com
date Sun, 23 Jun 2013 20:22:09 +0300
parents 8f0adcb66633
children 86d512e0ec66
files Misc/NEWS Objects/unicodeobject.c
diffstat 2 files changed, 21 insertions(+), 1 deletions(-)[+] [-] Misc/NEWS 3 Objects/unicodeobject.c 19

line wrap: on

line diff

--- a/Misc/NEWS +++ b/Misc/NEWS @@ -9,6 +9,9 @@ What's New in Python 2.7.6? Core and Builtins ----------------- +- Issue #18184: PyUnicode_FromFormat() and PyUnicode_FromFormatV() now raise

--- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -740,8 +740,25 @@ PyUnicode_FromFormatV(const char *format switch (*f) { case 'c':

+#ifdef Py_UNICODE_WIDE

+#else

+#endif /* fall through... */