bool-hybrid-array 9.10.18.post2__tar.gz → 9.10.18.post4__tar.gz
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-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/PKG-INFO +3 -1
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/README.md +2 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/__init__.py +1 -1
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/core.py +3 -9
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array.egg-info/PKG-INFO +3 -1
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/setup.py +1 -1
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/LICENSE +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/__main__.py +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/int_array/__init__.py +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array//347/247/230/345/257/206.md" +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array.egg-info/SOURCES.txt +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array.egg-info/dependency_links.txt +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array.egg-info/requires.txt +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array.egg-info/top_level.txt +0 -0
- {bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/setup.cfg +0 -0
|
@@ -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.post4
|
|
4
4
|
Summary: 一个高效的布尔数组(密集+稀疏混合存储,节省内存)
|
|
5
5
|
Home-page: https://github.com/BKsell/bool-hybrid-array
|
|
6
6
|
Author: 蔡靖杰
|
|
@@ -566,6 +566,8 @@ 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
|
|
570
|
+
* **9.10.18.post4**:尝试修复“满屏错误”的问题×3
|
|
569
571
|
|
|
570
572
|
|
|
571
573
|
## **彩蛋:**
|
|
@@ -526,6 +526,8 @@ except OverflowError as e:
|
|
|
526
526
|
* **9.10.18**:新增BoolHybridArray的序列化和反序列化支持
|
|
527
527
|
* **9.10.18.post1**:修复TypeError: cannot pickle 'itertools._tee' object错误
|
|
528
528
|
* **9.10.18.post2**:尝试修复“满屏错误”的问题
|
|
529
|
+
* **9.10.18.post3**:尝试修复“满屏错误”的问题×2
|
|
530
|
+
* **9.10.18.post4**:尝试修复“满屏错误”的问题×3
|
|
529
531
|
|
|
530
532
|
|
|
531
533
|
## **彩蛋:**
|
{bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/__init__.py
RENAMED
|
@@ -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.post4"
|
|
7
7
|
public_objects = []
|
|
8
8
|
def jit_class_methods(cls):
|
|
9
9
|
for attr_name in dir(cls):
|
{bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/core.py
RENAMED
|
@@ -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)
|
|
@@ -610,12 +610,6 @@ class BHA_bool(int,metaclass=ResurrectMeta):
|
|
|
610
610
|
return hash(self.data)
|
|
611
611
|
def __len__(self):
|
|
612
612
|
raise TypeError("'BHA_bool' object has no attribute '__len__'")
|
|
613
|
-
def __del__(self):
|
|
614
|
-
if not sys.is_finalizing():
|
|
615
|
-
print(f'你删除或修改了1个常变量:{repr(self)}!')
|
|
616
|
-
if self:builtins.T = BHA_bool(1)
|
|
617
|
-
else:builtins.F = BHA_bool(0)
|
|
618
|
-
raise TypeError(f'禁止删除或修改常变量{repr(self)}!')
|
|
619
613
|
__rand__,__ror__,__rxor__ = __and__,__or__,__xor__
|
|
620
614
|
class BHA_Bool(BHA_bool,metaclass=ResurrectMeta):
|
|
621
615
|
__module__ = 'bool_hybrid_array'
|
|
@@ -647,10 +641,10 @@ class BHA_List(list,metaclass=ResurrectMeta):
|
|
|
647
641
|
return self.hash_value
|
|
648
642
|
def __call__(self, func):
|
|
649
643
|
func.self = self
|
|
650
|
-
def wrapper(
|
|
644
|
+
def wrapper(*args, **kwargs):
|
|
651
645
|
return func(self, *args, **kwargs)
|
|
652
646
|
setattr(self, func.__name__, wrapper)
|
|
653
|
-
return
|
|
647
|
+
return func
|
|
654
648
|
def __str__(self):
|
|
655
649
|
def Temp(v):
|
|
656
650
|
if isinstance(v,(BoolHybridArray,np.ndarray,BHA_List,array.array)):
|
|
@@ -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.post4
|
|
4
4
|
Summary: 一个高效的布尔数组(密集+稀疏混合存储,节省内存)
|
|
5
5
|
Home-page: https://github.com/BKsell/bool-hybrid-array
|
|
6
6
|
Author: 蔡靖杰
|
|
@@ -566,6 +566,8 @@ 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
|
|
570
|
+
* **9.10.18.post4**:尝试修复“满屏错误”的问题×3
|
|
569
571
|
|
|
570
572
|
|
|
571
573
|
## **彩蛋:**
|
|
File without changes
|
{bool_hybrid_array-9.10.18.post2 → bool_hybrid_array-9.10.18.post4}/bool_hybrid_array/__main__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|