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.
Files changed (15) hide show
  1. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/PKG-INFO +3 -2
  2. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/README.md +2 -1
  3. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/__init__.py +1 -1
  4. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/core.py +7 -5
  5. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/PKG-INFO +3 -2
  6. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/setup.py +1 -1
  7. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/LICENSE +0 -0
  8. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/__main__.py +0 -0
  9. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array/int_array/__init__.py +0 -0
  10. {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
  11. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/SOURCES.txt +0 -0
  12. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/dependency_links.txt +0 -0
  13. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/requires.txt +0 -0
  14. {bool_hybrid_array-9.10.18.post1 → bool_hybrid_array-9.10.18.post3}/bool_hybrid_array.egg-info/top_level.txt +0 -0
  15. {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.post1
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
  ## **彩蛋:**
@@ -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.post1"
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):
@@ -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(dtype,self), dtype=np.bool_)
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,(np.array(self),self.is_sparse,self.Type,self.hash_,),
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
- if self:builtins.T = BHA_bool(1)
617
- else:builtins.F = BHA_bool(0)
618
- raise TypeError(f'禁止删除或修改常变量{repr(self)}!')
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.post1
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
  ## **彩蛋:**
@@ -8,7 +8,7 @@ def get_long_description():
8
8
  return "一个高效的布尔数组(密集+稀疏混合存储,节省内存)"
9
9
  setup(
10
10
  name="bool-hybrid-array",
11
- version="9.10.18.post1",
11
+ version="9.10.18.post3",
12
12
  author="蔡靖杰",
13
13
  extras_require={"int_array":[]},
14
14
  author_email="1289270215@qq.com",