asodeur / numba-passthru Goto Github PK
View Code? Open in Web Editor NEWA pass-through type for Numba
License: BSD 2-Clause "Simplified" License
A pass-through type for Numba
License: BSD 2-Clause "Simplified" License
Examples and tests should require a lot less boilerplate using Numba's new mutable structures.
operator.is_(Opaque, Opaque)
will be in Numba 0.51 and there should not be a duplicated implementation here ( see 5834).
Move to typed.List
?
Checking the exception message in TestPassThruContainer.test_eq_any
seems to be depending on locale/OS.
Originally reported by @eric-wieser here.
The current behaviour in nopython mode is False == (container == any_other_type)
and any_other_type == container
raises a TypingError
.
PassThruContainerType.__eq__
should only cover comparison of two PassThruContainerType
s and fallback to generic eq
in any other case like returning NotImplemented
from the __eq__
implementation on the Python side. However, Python's fallback behaviour for classes is object.__eq__
which is operator.is_
and hence is different from Numba's generic eq
.
container == any_other_type
and any_other_type == container
should raise NotImplementedError
when called from Python and raise TypingError
during compilation. This seems to be the most consistent behaviour achievable.
The renaming of builtin numba modules leads to the following issue:
>>> import numba_passthru
ImportError: cannot import name 'cgutils' from 'numba'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.