[Python-Dev] Deprecation warning on integer shifts and such

Barry A. Warsaw barry@python.org
Tue, 13 Aug 2002 08:08:38 -0400

>>>>> "GvR" == Guido van Rossum <guido@python.org> writes:

    GvR> In 2.3 (and 2.2.2), I propose the following semantics for
    GvR> 'k': if the argument is a Python int, a signed value within
    GvR> the range [INT_MIN,INT_MAX] is required; if it is a Python
    GvR> long, a nonnegative value in the range [0, 2*INT_MAX+1] is
    GvR> required.  These are the same semantics that are currently
    GvR> used by struct.pack() for 'L', I found out; I like these.

It's too bad struct.pack() and PyArg_ParseTuple() can't share the same
format character for the same semantics.  Py3k.