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

2012-10-08 Thread Serhiy Storchaka
On 09.10.12 00:23, Victor Stinner wrote: 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"? You should follow the deprecation procedure. ___ Python-Dev mailing list Pyth

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

2012-10-08 Thread Barry Warsaw
On Oct 08, 2012, at 11:23 PM, Victor Stinner wrote: >2012/10/8 Barry Warsaw : >>>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 Va

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

2012-10-08 Thread Victor Stinner
2012/10/8 Barry Warsaw : >>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 PyEr

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

2012-10-08 Thread Barry Warsaw
On Oct 07, 2012, at 11:09 PM, Victor Stinner wrote: >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_FromFor