[Python-checkins] r46247 - in python/branches/sreifschneider-newnewexcept: Makefile.pre.in Objects/exceptions.c Python/exceptions.c

Tim Peters tim.peters at gmail.com
Thu May 25 23:11:47 CEST 2006


>> +        PyObject *temp = PySequence_GetItem(self->args, 0);
>> +        PyObject *unicode_obj;

[Jim Jewett]
> Do these have to go in the other order, because of a C89 requirement
> about declarations before operations?

No; they're both declarations, and that's fine.  This would violate C89:

        PyObject *temp;
        temp = PySequence_GetItem(self->args, 0);
        PyObject *unicode_obj;

That split the declarations, and that's not allowed.


More information about the Python-checkins mailing list