bool-hybrid-array 9.10.18.post2__py3-none-any.whl → 9.10.18.post3__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.
- bool_hybrid_array/__init__.py +1 -1
- bool_hybrid_array/core.py +6 -4
- {bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/METADATA +2 -1
- bool_hybrid_array-9.10.18.post3.dist-info/RECORD +10 -0
- bool_hybrid_array-9.10.18.post2.dist-info/RECORD +0 -10
- {bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/WHEEL +0 -0
- {bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/licenses/LICENSE +0 -0
- {bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/top_level.txt +0 -0
bool_hybrid_array/__init__.py
CHANGED
|
@@ -3,7 +3,7 @@ from types import ModuleType,FunctionType
|
|
|
3
3
|
from . import core
|
|
4
4
|
from .core import __builtins__,builtins
|
|
5
5
|
from . import int_array
|
|
6
|
-
__version__ = "9.10.18.
|
|
6
|
+
__version__ = "9.10.18.post3"
|
|
7
7
|
public_objects = []
|
|
8
8
|
def jit_class_methods(cls):
|
|
9
9
|
for attr_name in dir(cls):
|
bool_hybrid_array/core.py
CHANGED
|
@@ -495,7 +495,7 @@ class BoolHybridArray(MutableSequence,Exception,metaclass=ResurrectMeta):
|
|
|
495
495
|
def get_shape(self):
|
|
496
496
|
return (self.size,)
|
|
497
497
|
def __array__(self,dtype = np.bool_,copy = None):
|
|
498
|
-
arr = np.fromiter(map(
|
|
498
|
+
arr = np.fromiter(map(np.bool_,self), dtype=dtype)
|
|
499
499
|
return arr.copy() if copy else arr.view()
|
|
500
500
|
def view(self):
|
|
501
501
|
arr = TruesArray(0)
|
|
@@ -613,9 +613,11 @@ class BHA_bool(int,metaclass=ResurrectMeta):
|
|
|
613
613
|
def __del__(self):
|
|
614
614
|
if not sys.is_finalizing():
|
|
615
615
|
print(f'你删除或修改了1个常变量:{repr(self)}!')
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
616
|
+
try:
|
|
617
|
+
if self:builtins.T = BHA_bool(1)
|
|
618
|
+
else:builtins.F = BHA_bool(0)
|
|
619
|
+
except:pass
|
|
620
|
+
else:raise TypeError(f'禁止删除或修改常变量{repr(self)}!')
|
|
619
621
|
__rand__,__ror__,__rxor__ = __and__,__or__,__xor__
|
|
620
622
|
class BHA_Bool(BHA_bool,metaclass=ResurrectMeta):
|
|
621
623
|
__module__ = 'bool_hybrid_array'
|
{bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bool-hybrid-array
|
|
3
|
-
Version: 9.10.18.
|
|
3
|
+
Version: 9.10.18.post3
|
|
4
4
|
Summary: 一个高效的布尔数组(密集+稀疏混合存储,节省内存)
|
|
5
5
|
Home-page: https://github.com/BKsell/bool-hybrid-array
|
|
6
6
|
Author: 蔡靖杰
|
|
@@ -566,6 +566,7 @@ except OverflowError as e:
|
|
|
566
566
|
* **9.10.18**:新增BoolHybridArray的序列化和反序列化支持
|
|
567
567
|
* **9.10.18.post1**:修复TypeError: cannot pickle 'itertools._tee' object错误
|
|
568
568
|
* **9.10.18.post2**:尝试修复“满屏错误”的问题
|
|
569
|
+
* **9.10.18.post3**:尝试修复“满屏错误”的问题×2
|
|
569
570
|
|
|
570
571
|
|
|
571
572
|
## **彩蛋:**
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
bool_hybrid_array/__init__.py,sha256=IznI89s88jmL64-jkgiPAMiBnLCPHoy_R7kFQOgdGGk,1666
|
|
2
|
+
bool_hybrid_array/__main__.py,sha256=3MsUAXMj6Pe1EzP7YreuUePbXZeQvFSCnejnTeS42kU,8324
|
|
3
|
+
bool_hybrid_array/core.py,sha256=-T5PzZyXoTMwaJc3H0C4mIgLb5lOrejjIbSE6Ect1Do,37154
|
|
4
|
+
bool_hybrid_array/秘密.md,sha256=Ii2NvXmv-Ktu04zJsGLcQZvlzT4gOatByE4B2wTK1Ks,48
|
|
5
|
+
bool_hybrid_array/int_array/__init__.py,sha256=EnjBonyL35YKDTtQ2g6tnrf4tTKEt5k-EAEbqLRuptI,8548
|
|
6
|
+
bool_hybrid_array-9.10.18.post3.dist-info/licenses/LICENSE,sha256=Sg4rnGXkBDYkwJCWyxdWp5H60rhVAxpNvFh_l3JWZdY,1070
|
|
7
|
+
bool_hybrid_array-9.10.18.post3.dist-info/METADATA,sha256=-Ts9DgWXfCNyFgf0fE2N-lgwlVi0E51h0E9fsRKS3nA,23257
|
|
8
|
+
bool_hybrid_array-9.10.18.post3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
+
bool_hybrid_array-9.10.18.post3.dist-info/top_level.txt,sha256=vk-TD77wuVQsN1rJ6uVWZX4sC_wya_WplRDwQKJoBZM,18
|
|
10
|
+
bool_hybrid_array-9.10.18.post3.dist-info/RECORD,,
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
bool_hybrid_array/__init__.py,sha256=xQKvM2413WWbFDHNJIBDJww4iSIuEQdEu1eKtB623ZE,1666
|
|
2
|
-
bool_hybrid_array/__main__.py,sha256=3MsUAXMj6Pe1EzP7YreuUePbXZeQvFSCnejnTeS42kU,8324
|
|
3
|
-
bool_hybrid_array/core.py,sha256=v7LFLXQVbka9jOXkXUcHE6syJEKgx1amiu5i0QQmoa8,37100
|
|
4
|
-
bool_hybrid_array/秘密.md,sha256=Ii2NvXmv-Ktu04zJsGLcQZvlzT4gOatByE4B2wTK1Ks,48
|
|
5
|
-
bool_hybrid_array/int_array/__init__.py,sha256=EnjBonyL35YKDTtQ2g6tnrf4tTKEt5k-EAEbqLRuptI,8548
|
|
6
|
-
bool_hybrid_array-9.10.18.post2.dist-info/licenses/LICENSE,sha256=Sg4rnGXkBDYkwJCWyxdWp5H60rhVAxpNvFh_l3JWZdY,1070
|
|
7
|
-
bool_hybrid_array-9.10.18.post2.dist-info/METADATA,sha256=r-05c5QuhCKfRbrDhk2dXcBdoLZP5IH-wZmV9hEtDkc,23191
|
|
8
|
-
bool_hybrid_array-9.10.18.post2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
9
|
-
bool_hybrid_array-9.10.18.post2.dist-info/top_level.txt,sha256=vk-TD77wuVQsN1rJ6uVWZX4sC_wya_WplRDwQKJoBZM,18
|
|
10
|
-
bool_hybrid_array-9.10.18.post2.dist-info/RECORD,,
|
{bool_hybrid_array-9.10.18.post2.dist-info → bool_hybrid_array-9.10.18.post3.dist-info}/WHEEL
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|