[Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalid (original) (raw)
Victor Stinner victor.stinner at gmail.com
Sun Oct 7 23:09:34 CEST 2012
- Previous message: [Python-Dev] cpython: Issue #16148: implemented PEP 424
- Next message: [Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalid
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
Does anyone know if there is a good reason why PyUnicode_FromFormatV() does not fail on invalid format string, but copies the format string as-if into the result?
I would like to change this to raise a ValueError instead. PyUnicode_FromFormatV() is used by PyErr_Format(), so PyErr_Format() may now fail with a ValueError if the format string is invalid.
Victor
- Previous message: [Python-Dev] cpython: Issue #16148: implemented PEP 424
- Next message: [Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalid
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]