(original) (raw)
2012/10/8 Barry Warsaw <barry@python.org>:
\>>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.
\>
\> This behavior is inherited from PyUnicode\_FromFormat() which documents the
\> current behavior, so you can't change this in backward incompatible way.
Yes, the current behaviour is documented, but I consider it as a bug. Would it be possible to change the behaviour to fix a "bug"?
Victor