[Cython] Raising exceptions under python 2.5

Stefan Behnel stefan_ml at behnel.de
Mon Jul 14 21:20:02 CEST 2008


Hi,

just a quick comment.

Johannes Wienke wrote:
> raise KeyError("No _ObserverItem found belonging to '%s'." % observer)

it's actually faster to write

  raise KeyError, "No _ObserverItem found belonging to '%s'." % observer

even if that's not the preferred way of doing it in Python.

Stefan


More information about the Cython-dev mailing list