l0n0lc 0.10.1__tar.gz → 0.10.2__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.
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/PKG-INFO +1 -1
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc/c/345/237/272/347/241/200/345/244/204/347/220/206.py +0 -8
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc.egg-info/PKG-INFO +1 -1
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/pyproject.toml +1 -1
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/LICENSE +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/README.md +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc/StdList.py +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc/StdMap.py +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc/__init__.py +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc/jit.py +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc//347/274/226/350/257/221.py" +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc//351/200/232/347/224/250.py" +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc.egg-info/SOURCES.txt +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc.egg-info/dependency_links.txt +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/l0n0lc.egg-info/top_level.txt +0 -0
- {l0n0lc-0.10.1 → l0n0lc-0.10.2}/setup.cfg +0 -0
@@ -108,11 +108,6 @@ def py类型转c类型(类型):
|
|
108
108
|
return cpp类型.ANY
|
109
109
|
|
110
110
|
|
111
|
-
def cpp类型检查(类型, 支持提示: str):
|
112
|
-
if 类型 not in [int, float, str, bool]:
|
113
|
-
raise Exception(f'{支持提示} 仅支持 [int, float, str, bool]')
|
114
|
-
|
115
|
-
|
116
111
|
class list初始化列表:
|
117
112
|
def __init__(
|
118
113
|
self,
|
@@ -134,7 +129,6 @@ def 从list构建初始化列表(value: List):
|
|
134
129
|
初始化列表 = []
|
135
130
|
for v in value:
|
136
131
|
dtype = type(v)
|
137
|
-
cpp类型检查(dtype, 'List')
|
138
132
|
数据类型列表.append(dtype)
|
139
133
|
初始化列表.append(toCString(v))
|
140
134
|
# 构建初始化列表
|
@@ -171,9 +165,7 @@ def 从dict构建初始化列表(value: dict):
|
|
171
165
|
value类型列表 = []
|
172
166
|
for k, v in value.items():
|
173
167
|
key类型 = type(k)
|
174
|
-
cpp类型检查(key类型, 'Map')
|
175
168
|
value类型 = type(v)
|
176
|
-
cpp类型检查(value类型, 'Map')
|
177
169
|
key类型列表.append(key类型)
|
178
170
|
value类型列表.append(value类型)
|
179
171
|
code.append(f'{{ {toCString(k)}, {v} }}')
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|