Martin v. Löwis wrote: > Alternatively, couldn't LIST_APPEND check that this really is a list, > and, if it isn't, fall back to PyObject_CallMethod?
that's the obvious solution, of course. cf. existing shortcuts: $ grep -n INLINE Python-2.4.1/Python/ceval.c 1103: /* INLINE: int + int */ 1133: /* INLINE: int - int */ 1156: /* INLINE: list[int] */ 1305: /* INLINE: int + int */ 1335: /* INLINE: int - int */ 1967: /* INLINE: cmp(int, int) */ </F>
_______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com