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.

Author mlucool
Recipients mlucool
Date 2021-05-12.21:31:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1620855076.33.0.624506762469.issue44118@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-05-12 21:31:16mlucoolsetrecipients: + mlucool
2021-05-12 21:31:16mlucoolsetmessageid: <1620855076.33.0.624506762469.issue44118@roundup.psfhosted.org>
2021-05-12 21:31:16mlucoollinkissue44118 messages
2021-05-12 21:31:16mlucoolcreate