Author lemburg
Recipients eric.smith, ezio.melotti, lemburg, mark.dickinson, ron_adam, ysj.ray
Date 2010-07-28.13:44:53
SpamBayes Score 0.000449655
Marked as misclassified No
Message-id <4C503454.2030801@egenix.com>
In-reply-to <1280322700.64.0.489091395657.issue7330@psf.upfronthosting.co.za>
Content
Ray.Allen wrote:
> 
> Ray.Allen <ysj.ray@gmail.com> added the comment:
> 
> I feel it's not proper to allow the width restrict on types %S, %R, %A. These types correspond to PyObject_Str(), PyObject_Repr, PyObject_ASCII() respectively, the results of them are usually a complete string representation of a object. If you put a width restriction on the string, it's likely that the result string is intercepted and is of no complete meaning. If you really want to put a width restriction on the result, you can use %s instead, with one or two more lines to get the corresponding char* from the object.

I agree with that, but don't feel strongly about not allowing this
use case.

If it's easy to support, why not have it ? Otherwise, I'd be +1 on
adding a check and raise an error in case a width modifier is used
with these markers.
History
Date User Action Args
2010-07-28 13:44:55lemburgsetrecipients: + lemburg, mark.dickinson, eric.smith, ron_adam, ezio.melotti, ysj.ray
2010-07-28 13:44:53lemburglinkissue7330 messages
2010-07-28 13:44:53lemburgcreate