bool-hybrid-array 9.10.18.post1__tar.gz → 9.10.18.post3__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.post1 → bool_hybrid_array-9.10.18.post3}/PKG-INFO +3 -2
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/README.md +2 -1
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/__init__.py +1 -1
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/core.py +7 -5
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/PKG-INFO +3 -2
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/setup.py +1 -1
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/LICENSE +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/__main__.py +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/int_array/__init__.py +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array//347/247/230/345/257/206.md" +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/SOURCES.txt +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/dependency_links.txt +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/requires.txt +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/top_level.txt +0 -0
- {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/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.post3
|
|
4
4
|
Summary: 一个高效的布尔数组(密集+稀疏混合存储,节省内存)
|
|
5
5
|
Home-page: https://github.com/BKsell/bool-hybrid-array
|
|
6
6
|
Author: 蔡靖杰
|
|
@@ -565,7 +565,8 @@ except OverflowError as e:
|
|
|
565
565
|
* **9.10.17**:给保护字典添加__import__方法,支持from导入
|
|
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
|
## **彩蛋:**
|
|
@@ -525,7 +525,8 @@ except OverflowError as e:
|
|
|
525
525
|
* **9.10.17**:给保护字典添加__import__方法,支持from导入
|
|
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
|
|
529
530
|
|
|
530
531
|
|
|
531
532
|
## **彩蛋:**
|
{bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/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.post3"
|
|
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.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/core.py
RENAMED
|
@@ -495,14 +495,14 @@ 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)
|
|
502
502
|
arr.__dict__ = self.__dict__
|
|
503
503
|
return arr
|
|
504
504
|
def __reduce__(self):
|
|
505
|
-
return BoolHybridArr,(
|
|
505
|
+
return BoolHybridArr,(tuple(self),self.is_sparse,self.Type,self.hash_,),
|
|
506
506
|
class BoolHybridArr(BoolHybridArray,metaclass=ResurrectMeta):
|
|
507
507
|
__module__ = 'bool_hybrid_array'
|
|
508
508
|
def __new__(cls, lst: Iterable, is_sparse=None, Type = None, hash_ = True) -> BoolHybridArray:
|
|
@@ -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'
|
|
@@ -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: 蔡靖杰
|
|
@@ -565,7 +565,8 @@ except OverflowError as e:
|
|
|
565
565
|
* **9.10.17**:给保护字典添加__import__方法,支持from导入
|
|
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
|
## **彩蛋:**
|
|
File without changes
|
{bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/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
|