Author larry
Recipients larry, serhiy.storchaka
Date 2012-05-02.11:23:19
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1335957800.52.0.151027955601.issue14705@psf.upfronthosting.co.za>
In-reply-to
Content
> For this purpose it is appropriate to use a special converter
> (with 'O&').

The converter works--but, then, a similar converter would also work
for double, and float, and long long and many others.  If long long
is special enough to merit explicit support in PyArg_ParseTuple,
then bool definitely is, as I strongly suspect bool is used much more
frequently.


> I suppose it must be a strict сonverter; there is no point
> in specifying followlinks=[1, 2, 3].

I don't see a need for that either, but--where would you draw the line?  What is the principle that says "ints are okay, floats are... okay, lists are not"?

Python has a long-established concept of the "truthiness" of an expression.  I *strongly* suggest we stick with that unless we have a *very* good reason why not.


> note that 'b' and 'B' are already used.

I'm a moron!  I must have looked right at it and it didn't register.

't' (truth) and 'f' (false) are also taken.  As is 'c' (conditional).
The only thing I can come up with that's remotely related and
isn't already taken is 'p' for predicate.


> It is better first to use the сonverter, and expand the format
> only when the enough number of uses.

I suspect there are already loads of places in the standard library
that should be using this rather than abusing 'i'.
History
Date User Action Args
2012-05-02 11:23:20larrysetrecipients: + larry, serhiy.storchaka
2012-05-02 11:23:20larrysetmessageid: <1335957800.52.0.151027955601.issue14705@psf.upfronthosting.co.za>
2012-05-02 11:23:19larrylinkissue14705 messages
2012-05-02 11:23:19larrycreate