numbox 0.1.1__py3-none-any.whl → 0.1.2__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.
- numbox/__init__.py +1 -1
- numbox/core/any_type.py +4 -18
- {numbox-0.1.1.dist-info → numbox-0.1.2.dist-info}/METADATA +1 -1
- numbox-0.1.2.dist-info/RECORD +12 -0
- numbox-0.1.1.dist-info/RECORD +0 -12
- {numbox-0.1.1.dist-info → numbox-0.1.2.dist-info}/LICENSE +0 -0
- {numbox-0.1.1.dist-info → numbox-0.1.2.dist-info}/WHEEL +0 -0
- {numbox-0.1.1.dist-info → numbox-0.1.2.dist-info}/top_level.txt +0 -0
numbox/__init__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = '0.1.
|
|
1
|
+
__version__ = '0.1.2'
|
numbox/core/any_type.py
CHANGED
|
@@ -27,8 +27,6 @@ class _Content:
|
|
|
27
27
|
|
|
28
28
|
@overload(_Content, strict=False)
|
|
29
29
|
def ol_content(x_ty):
|
|
30
|
-
""" Custom version of `numba.experimental.structref.define_constructor` that extracts
|
|
31
|
-
first-class function type from the `Dispatcher` to be used as struct's member type """
|
|
32
30
|
x_ty = prune_type(x_ty)
|
|
33
31
|
content_type = ContentTypeClass([("x", x_ty)])
|
|
34
32
|
|
|
@@ -51,15 +49,13 @@ class Any(StructRefProxy):
|
|
|
51
49
|
def __new__(cls, x):
|
|
52
50
|
raise NotImplementedError(deleted_any_ctor_error)
|
|
53
51
|
|
|
52
|
+
@njit
|
|
54
53
|
def get_as(self, ty):
|
|
55
|
-
return get_as(
|
|
54
|
+
return self.get_as(ty)
|
|
56
55
|
|
|
56
|
+
@njit
|
|
57
57
|
def reset(self, val):
|
|
58
|
-
return reset(
|
|
59
|
-
|
|
60
|
-
@property
|
|
61
|
-
def p(self):
|
|
62
|
-
raise NotImplementedError('You need to access `p` via `get_as`')
|
|
58
|
+
return self.reset(val)
|
|
63
59
|
|
|
64
60
|
|
|
65
61
|
def _any_deleted_ctor(p):
|
|
@@ -71,16 +67,6 @@ define_boxing(AnyTypeClass, Any)
|
|
|
71
67
|
AnyType = AnyTypeClass([("p", ErasedType)])
|
|
72
68
|
|
|
73
69
|
|
|
74
|
-
@njit
|
|
75
|
-
def get_as(self, ty):
|
|
76
|
-
return self.get_as(ty)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
@njit
|
|
80
|
-
def reset(self, val):
|
|
81
|
-
return self.reset(val)
|
|
82
|
-
|
|
83
|
-
|
|
84
70
|
@overload_method(AnyTypeClass, "get_as", strict=False)
|
|
85
71
|
def ol_get_as(self_class, ty_class):
|
|
86
72
|
def _(self, ty):
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
numbox/__init__.py,sha256=mdp2CftfqYbdKtP-eWv1z7rAUycYv6X1ntXSMUf8Kss,22
|
|
2
|
+
numbox/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
|
+
numbox/core/any_type.py,sha256=CvEwFk7EcuFwg5VqDJrYQYmWp_t3Kil92wC7gUOEl-Y,1711
|
|
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.2.dist-info/LICENSE,sha256=YYgNvjH_p6-1NsdrIqGJnr1GUbZzA_8DxsP6vVfM6nY,1446
|
|
9
|
+
numbox-0.1.2.dist-info/METADATA,sha256=-xVLPSJg3MLfTBO61O1pEzpgA8wa9fPIxGp0abcpVEs,1926
|
|
10
|
+
numbox-0.1.2.dist-info/WHEEL,sha256=P9jw-gEje8ByB7_hXoICnHtVCrEwMQh-630tKvQWehc,91
|
|
11
|
+
numbox-0.1.2.dist-info/top_level.txt,sha256=A67jOkfqidCSYYm6ifjN_WZyIiR1B27fjxv6nNbPvjc,7
|
|
12
|
+
numbox-0.1.2.dist-info/RECORD,,
|
numbox-0.1.1.dist-info/RECORD
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|