[New-bugs-announce] [issue44118] cython compiler error

Marc Udoff report at bugs.python.org
Wed May 12 17:31:16 EDT 2021

New submission from Marc Udoff <mlucool at gmail.com>:


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.

components: C API
files: cpython_error.txt
messages: 393548
nosy: mlucool
priority: normal
severity: normal
status: open
title: cython compiler error
type: compile error
versions: Python 3.7
Added file: https://bugs.python.org/file50039/cpython_error.txt

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list