A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2012-October/122121.html below:

[Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalid

[Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalid [Python-Dev] Issue #16153: PyUnicode_FromFormatV() must fail if the format string is invalidVictor Stinner victor.stinner at gmail.com
Mon Oct 8 23:23:59 CEST 2012
2012/10/8 Barry Warsaw <barry at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20121008/c15b8fdf/attachment.html>
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4