numbox 0.1.0__py3-none-any.whl → 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of numbox might be problematic. Click here for more details.
- numbox/__init__.py +1 -1
- numbox/core/any_type.py +13 -35
- {numbox-0.1.0.dist-info → numbox-0.1.1.dist-info}/METADATA +1 -1
- numbox-0.1.1.dist-info/RECORD +12 -0
- numbox-0.1.0.dist-info/RECORD +0 -12
- {numbox-0.1.0.dist-info → numbox-0.1.1.dist-info}/LICENSE +0 -0
- {numbox-0.1.0.dist-info → numbox-0.1.1.dist-info}/WHEEL +0 -0
- {numbox-0.1.0.dist-info → numbox-0.1.1.dist-info}/top_level.txt +0 -0
numbox/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.1'
|
numbox/core/any_type.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
from numba import njit
|
|
2
2
|
from numba.core.errors import NumbaError
|
|
3
3
|
from numba.core.types import StructRef
|
|
4
|
-
from numba.core.typing import Signature
|
|
5
4
|
from numba.experimental.structref import define_boxing, new, register, StructRefProxy
|
|
6
5
|
from numba.extending import overload, overload_method
|
|
7
6
|
|
|
@@ -63,6 +62,11 @@ class Any(StructRefProxy):
|
|
|
63
62
|
raise NotImplementedError('You need to access `p` via `get_as`')
|
|
64
63
|
|
|
65
64
|
|
|
65
|
+
def _any_deleted_ctor(p):
|
|
66
|
+
raise NumbaError(deleted_any_ctor_error)
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
overload(Any)(_any_deleted_ctor)
|
|
66
70
|
define_boxing(AnyTypeClass, Any)
|
|
67
71
|
AnyType = AnyTypeClass([("p", ErasedType)])
|
|
68
72
|
|
|
@@ -85,40 +89,14 @@ def ol_get_as(self_class, ty_class):
|
|
|
85
89
|
|
|
86
90
|
|
|
87
91
|
@overload_method(AnyTypeClass, "reset", strict=False)
|
|
88
|
-
def ol_reset(self_class,
|
|
89
|
-
def _(self,
|
|
90
|
-
self.p = cast(_Content(
|
|
91
|
-
return _
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
def any_constructor(p):
|
|
95
|
-
return NotImplementedError('Not for use from pure Python')
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
@overload(any_constructor, strict=False)
|
|
99
|
-
def ol_any_constructor(x_ty):
|
|
100
|
-
def _(x):
|
|
101
|
-
any = new(AnyType)
|
|
102
|
-
any.p = cast(_Content(x), ErasedType)
|
|
103
|
-
return any
|
|
92
|
+
def ol_reset(self_class, x_class):
|
|
93
|
+
def _(self, x):
|
|
94
|
+
self.p = cast(_Content(x), ErasedType)
|
|
104
95
|
return _
|
|
105
96
|
|
|
106
97
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
def make_any_(x):
|
|
113
|
-
return any_constructor(x)
|
|
114
|
-
return make_any_
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
make_any = make_any_maker()
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
def _any_deleted_ctor(p):
|
|
121
|
-
raise NumbaError(deleted_any_ctor_error)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
overload(Any)(_any_deleted_ctor)
|
|
98
|
+
@njit
|
|
99
|
+
def make_any(x):
|
|
100
|
+
any = new(AnyType)
|
|
101
|
+
any.p = cast(_Content(x), ErasedType)
|
|
102
|
+
return any
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
numbox/__init__.py,sha256=ls1camlIoMxEZz9gSkZ1OJo-MXqHWwKPtdPbZJmwp7E,22
|
|
2
|
+
numbox/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
numbox/core/any_type.py,sha256=fLdDEXCJ6-2rZpTCY8-iqxUFbOXTS8HrQshNxXdjVbw,2093
|
|
4
|
+
numbox/core/meminfo.py,sha256=-b7wlCRyqOZjvKjEuwNwzqE4XvnEWxu3I2k4DEP3Cqk,1755
|
|
5
|
+
numbox/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
+
numbox/utils/highlevel.py,sha256=hAmF2y2ayPJT0qpwHrGDt09R4-6Ts9sTkCTh-8FTIUU,319
|
|
7
|
+
numbox/utils/lowlevel.py,sha256=6CRfFbMeBZGM7hqPAQzyClzU_e_IsNpqONJknFWGzJM,1405
|
|
8
|
+
numbox-0.1.1.dist-info/LICENSE,sha256=YYgNvjH_p6-1NsdrIqGJnr1GUbZzA_8DxsP6vVfM6nY,1446
|
|
9
|
+
numbox-0.1.1.dist-info/METADATA,sha256=jmdNZuvX53cJ9U_At9VQSyFGrFKgohjosGsfLCWz26A,1926
|
|
10
|
+
numbox-0.1.1.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
11
|
+
numbox-0.1.1.dist-info/top_level.txt,sha256=A67jOkfqidCSYYm6ifjN_WZyIiR1B27fjxv6nNbPvjc,7
|
|
12
|
+
numbox-0.1.1.dist-info/RECORD,,
|
numbox-0.1.0.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
numbox/__init__.py,sha256=IMjkMO3twhQzluVTo8Z6rE7Eg-9U79_LGKMcsWLKBkY,22
|
|
2
|
-
numbox/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
-
numbox/core/any_type.py,sha256=UT2cDsQjdVLLipu1mJOPzTLkr4pgeR113T-nuCUrjsE,2538
|
|
4
|
-
numbox/core/meminfo.py,sha256=-b7wlCRyqOZjvKjEuwNwzqE4XvnEWxu3I2k4DEP3Cqk,1755
|
|
5
|
-
numbox/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
6
|
-
numbox/utils/highlevel.py,sha256=hAmF2y2ayPJT0qpwHrGDt09R4-6Ts9sTkCTh-8FTIUU,319
|
|
7
|
-
numbox/utils/lowlevel.py,sha256=6CRfFbMeBZGM7hqPAQzyClzU_e_IsNpqONJknFWGzJM,1405
|
|
8
|
-
numbox-0.1.0.dist-info/LICENSE,sha256=YYgNvjH_p6-1NsdrIqGJnr1GUbZzA_8DxsP6vVfM6nY,1446
|
|
9
|
-
numbox-0.1.0.dist-info/METADATA,sha256=htXzICNISIDMny-tPQJLPdQvCqvfxRwQO0IxRXobBUw,1926
|
|
10
|
-
numbox-0.1.0.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
11
|
-
numbox-0.1.0.dist-info/top_level.txt,sha256=A67jOkfqidCSYYm6ifjN_WZyIiR1B27fjxv6nNbPvjc,7
|
|
12
|
-
numbox-0.1.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|