This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: cython compiler error
Type: compile error Stage: resolved
Components: C API Versions: Python 3.7
process
Status: closed Resolution: third party
Dependencies: Superseder:
Assigned To: Nosy List: mlucool
Priority: normal Keywords:

Created on 2021-05-12 21:31 by mlucool, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
cpython_error.txt mlucool, 2021-05-12 21:31 Error
Messages (2)
msg393548 - (view) Author: Marc Udoff (mlucool) Date: 2021-05-12 21:31
Hi,

The follow gives an unexpected error during compilation:

In [1]: %%cython  
   ...: #cython: infer_types=True 
   ...: class A: 
   ...:     def f(self): 
   ...:         x = max(self.a, self.a)


Removing max, or setting infer_types=False, or setting x = None first all make it compile.
msg393549 - (view) Author: Marc Udoff (mlucool) Date: 2021-05-12 21:38
Wrong forum
History
Date User Action Args
2022-04-11 14:59:45adminsetgithub: 88284
2021-05-12 21:38:22mlucoolsetstatus: open -> closed
resolution: third party
messages: + msg393549

stage: resolved
2021-05-12 21:31:16mlucoolcreate