Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Set @overload "default" behaviour of nopython=True.
As title. This preserves the historical behaviour of `@overload`
having the kwarg default of `nopython=True`. Without this,
`@overload`s that end up with `literally` calls in their path can
refuse to resolve as `object-mode` fallback occurs and there's no
compiler pass for handling `literally` calls in that mode.
  • Loading branch information
stuartarchibald committed Oct 31, 2022
commit 4e776598f53fe5fd7d72f765b18f63da787f4992
6 changes: 4 additions & 2 deletions numba/core/extending.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ def generic(self):


# By default, an *overload* does not have a cpython wrapper because it is not
# callable from python.
_overload_default_jit_options = {'no_cpython_wrapper': True}
# callable from python. It also has `nopython=True`, this has been default since
# its inception!
_overload_default_jit_options = {'no_cpython_wrapper': True,
'nopython':True}


def overload(func, jit_options={}, strict=True, inline='never',
Expand Down