[Cython] CF based type inference

Stefan Behnel stefan_ml at behnel.de
Wed May 9 11:34:18 CEST 2012


Stefan Behnel, 08.05.2012 14:24:
> Vitja has rebased the type inference on the control flow

On a related note, is this fixable now?

  def test():
      x = 1    # inferred as int
      del x    # error: Deletion of non-Python, non-C++ object

http://trac.cython.org/cython_trac/ticket/768

It might be enough to infer "object" for names that are being del-ed for
now, and to fix "del" The Right Way when we split entries.

Stefan


More information about the cython-devel mailing list