getlogbook / logbook

A cool logging replacement for Python.
http://logbook.readthedocs.org
Other
1.48k stars 165 forks source link

Building fails with cython 3.0.0 #336

Closed TimB87 closed 1 year ago

TimB87 commented 1 year ago

Running cython3 logbook/_speedups.pyx fails:

+ /usr/bin/cython3 logbook/_speedups.pyx                                                      

Error compiling Cython file:                                                                  
------------------------------------------------------------                                  
...                                                                                           
        return getattr(obj.group, self.name)                                                  

    def __set__(self, obj, value):                                                            
        setattr(obj, self._name, value)                                                       

    def __del__(self, obj):                                                                   
    ^                                                                                         
------------------------------------------------------------                                  

logbook/_speedups.pyx:54:4: Special method __del__ has wrong number of arguments (2 declared, 1 expected)
RazerM commented 1 year ago

I'll fix this before the next release

TimB87 commented 1 year ago

337 is a perfect fix, thanks!