l0n0lc 0.10.0__tar.gz → 0.10.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -3,10 +3,6 @@ from .通用 import 生成变量Id, toCString, 通用信息
3
3
  import ctypes
4
4
 
5
5
 
6
- def cpp获取变量类型(v):
7
- return f'decltype({v})'
8
-
9
-
10
6
  class cpp类型:
11
7
  INT8_T = 'int8_t'
12
8
  INT16_T = 'int16_t'
@@ -54,11 +50,11 @@ def py类型转ctypes类型(类型):
54
50
  ret = 执行额外函数(额外py转ctypes函数, 类型)
55
51
  if ret is not None:
56
52
  return ret
57
-
53
+
58
54
  ret = 通用信息.类型映射表.get(类型)
59
55
  if ret is not None:
60
56
  return ret.对应的ctypes类型
61
-
57
+
62
58
  return py2ctypes映射表.get(类型)
63
59
 
64
60
 
@@ -207,8 +203,8 @@ class c变量:
207
203
  return self.c名字
208
204
 
209
205
  @property
210
- def c类型(self):
211
- return cpp获取变量类型(self)
206
+ def decltype(self):
207
+ return f'decltype({self})'
212
208
 
213
209
  def 初始化(self, 初始值, 强转类型: str | None = None):
214
210
  if 强转类型:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: l0n0lc
3
- Version: 0.10.0
3
+ Version: 0.10.1
4
4
  Summary: 一个将python函数翻译为c++函数并运行的jit编译器
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Requires-Python: >=3.10
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "l0n0lc"
3
- version = "0.10.0"
3
+ version = "0.10.1"
4
4
  description = "一个将python函数翻译为c++函数并运行的jit编译器"
5
5
  readme = "README.md"
6
6
  requires-python = ">=3.10"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes