EconForge / interpolation.py

BSD 2-Clause "Simplified" License
125 stars 35 forks source link

Prepare world for Python 3.9 #76

Closed gboehl closed 3 years ago

gboehl commented 3 years ago

The current development branch of numba for py39 does not provide jitclass: https://github.com/stuartarchibald/numba#branch=wip/py39_2

Lucky that we don't need it.

albop commented 3 years ago

This issue popped up recently in the gitter chat. I tested with numba 0.52 and it was working fine on my computer. I didn't understand it was a python 3.9 issue. You are perfectly right that jitclasses are not used. They were there to implement dummy types for dispatch, but this has been replaced by strings, now that numba supports constant propagation. I'll merge it right now.

albop commented 3 years ago

@gboehl : I merged it a bit fast. Numba is not released yet for 3.9. On the other hand, I don't think it induces any regression, so there is no harm.