bool-hybrid-array 9.10.19__py3-none-any.whl → 9.10.20__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.
@@ -3,8 +3,9 @@ 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.19"
6
+ __version__ = "9.10.20"
7
7
  public_objects = []
8
+ BHA_jit_log = {}
8
9
  def jit_class_methods(cls):
9
10
  for attr_name in dir(cls):
10
11
  if not attr_name.startswith("_"):
@@ -12,14 +13,14 @@ def jit_class_methods(cls):
12
13
  if isinstance(attr, FunctionType):
13
14
  try:
14
15
  setattr(cls, attr_name, jit(attr))
15
- except:
16
- pass
16
+ except Exception as e:
17
+ BHA_jit_log[attr_name] = e
17
18
  elif isinstance(attr, classmethod):
18
19
  original_func = attr.__func__
19
20
  try:
20
21
  setattr(cls, attr_name, classmethod(jit(original_func)))
21
- except:
22
- pass
22
+ except Exception as e:
23
+ BHA_jit_log[attr_name] = e
23
24
  return cls
24
25
  for name in dir(core):
25
26
  if not name.startswith("_"):
@@ -28,9 +29,15 @@ for name in dir(core):
28
29
  public_objects.append(name)
29
30
  if isinstance(obj,FunctionType):
30
31
  try:setattr(core,name,jit(obj))
31
- except:pass
32
+ except Exception as e:
33
+ BHA_jit_log[name] = e
32
34
  elif isinstance(obj,type):
33
35
  jit_class_methods(obj)
36
+ try:
37
+ bisect.bisect_left = jit(bisect.bisect_left)
38
+ bisect.bisect_right = jit(bisect.bisect_right)
39
+ except Exception as e:
40
+ BHA_jit_log["bisect"] = e
34
41
  __all__ = public_objects + ["__version__","__builtins__","core","builtins","__dict__","int_array"]
35
42
  globals().update({
36
43
  name: getattr(core, name)