koatl 0.1.39__tar.gz → 0.1.40__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.
- {koatl-0.1.39 → koatl-0.1.40}/Cargo.lock +1 -1
- {koatl-0.1.39 → koatl-0.1.40}/PKG-INFO +1 -1
- {koatl-0.1.39 → koatl-0.1.40}/koatl/Cargo.toml +1 -1
- {koatl-0.1.39 → koatl-0.1.40/koatl}/python/koatl/runtime/record.py +0 -3
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/lazy_module.tl +10 -4
- {koatl-0.1.39 → koatl-0.1.40}/koatl/src/lib.rs +17 -8
- {koatl-0.1.39/koatl → koatl-0.1.40}/python/koatl/runtime/record.py +0 -3
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/lazy_module.tl +10 -4
- {koatl-0.1.39 → koatl-0.1.40}/Cargo.toml +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/README.md +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/.github/workflows/CI.yml +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/.gitignore +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/LICENSE +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/README.md +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/__main__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/cli.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/notebook/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/notebook/magic.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/prelude/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/runtime/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/runtime/meta_finder.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/runtime/vattr.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/async.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/base.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/do.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/env.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/memo.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/alg/result.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/data/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/data/list.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/data/record.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/ext.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/io.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/iter.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/re.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/python/koatl/std/trait.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/requirements.txt +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/src/emit_py.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/containers.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/data.txt +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/decorators.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/destructure-for-and-fn.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/destructure.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/escape_ident.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/fstr.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/functions.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/generator.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/if_expr.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/loops.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/match.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/nary-list.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/placeholder.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/precedence.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/scopes.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/semantic_whitespace.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/short_circuit.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/base/with.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/async.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/aug_assign.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/coal.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/env.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/imports.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/iterables.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/list.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/memo.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/record.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/result.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/slice.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/try.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/prelude/virtual.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/util/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/util/module0.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/util/module1.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/e2e/util/module2.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/arith.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/assign.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/block-comments.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/deco.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/func.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/parse/matches.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/test_e2e.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl/tests/test_parse.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/Cargo.toml +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/Cargo.toml +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/src/ast.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/src/lexer.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/src/lib.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/src/parser.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/parser/src/util.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/inference.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/lib.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/main.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/parse_timer.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/parser.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/py/ast.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/py/emit.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/py/mod.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/py/util.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/resolve_scopes.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/transform.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/types.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/koatl-core/src/util.rs +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/pyproject.toml +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/__main__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/cli.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/notebook/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/notebook/magic.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/prelude/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/runtime/__init__.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/runtime/meta_finder.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/runtime/vattr.py +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/async.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/base.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/do.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/env.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/memo.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/alg/result.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/data/__init__.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/data/list.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/data/record.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/ext.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/io.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/iter.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/re.tl +0 -0
- {koatl-0.1.39 → koatl-0.1.40}/python/koatl/std/trait.py +0 -0
|
@@ -3,14 +3,14 @@ import collections
|
|
|
3
3
|
|
|
4
4
|
export LazyModule = class:
|
|
5
5
|
__init__ = (self, name) =>
|
|
6
|
-
self._name = name
|
|
7
|
-
self._module = None
|
|
8
|
-
self._submodules = {}
|
|
6
|
+
self.__dict__["_name"] = name
|
|
7
|
+
self.__dict__["_module"] = None
|
|
8
|
+
self.__dict__["_submodules"] = {}
|
|
9
9
|
|
|
10
10
|
__getattr__ = (self, attr) =>
|
|
11
11
|
try:
|
|
12
12
|
if self._module === None:
|
|
13
|
-
self._module = importlib.import_module(self._name)
|
|
13
|
+
self.__dict__["_module"] = importlib.import_module(self._name)
|
|
14
14
|
|
|
15
15
|
if hasattr(self._module, "__path__"):
|
|
16
16
|
if attr not in self._submodules:
|
|
@@ -30,6 +30,12 @@ export LazyModule = class:
|
|
|
30
30
|
|
|
31
31
|
raise AttributeError(f"Module '{self._name}' has no attribute '{attr}'")
|
|
32
32
|
|
|
33
|
+
__setattr__ = (self, attr, value) =>
|
|
34
|
+
if self._module === None:
|
|
35
|
+
self.__dict__["_module"] = importlib.import_module(self._name)
|
|
36
|
+
|
|
37
|
+
setattr(self._module, attr, value)
|
|
38
|
+
|
|
33
39
|
__repr__ = self => f"LazyModule({self._name})"
|
|
34
40
|
|
|
35
41
|
|
|
@@ -180,14 +180,23 @@ fn fast_vset_trait<'py, 'ptr>(
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
// TODO: what about conflicting traits?
|
|
183
|
-
vtbl.get_mut(&name).unwrap()
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
let vtbl_entry = vtbl.get_mut(&name).unwrap();
|
|
184
|
+
if let Some(existing) = vtbl_entry
|
|
185
|
+
.iter_mut()
|
|
186
|
+
.find(|e| e.name == trait_name.to_string())
|
|
187
|
+
{
|
|
188
|
+
existing.requirements = reqs;
|
|
189
|
+
existing.value = value.clone().unbind();
|
|
190
|
+
} else {
|
|
191
|
+
vtbl_entry.insert(
|
|
192
|
+
0,
|
|
193
|
+
TraitAttr {
|
|
194
|
+
name: trait_name.to_string(),
|
|
195
|
+
requirements: reqs,
|
|
196
|
+
value: value.clone().unbind(),
|
|
197
|
+
},
|
|
198
|
+
);
|
|
199
|
+
}
|
|
191
200
|
|
|
192
201
|
Ok(())
|
|
193
202
|
}
|
|
@@ -3,14 +3,14 @@ import collections
|
|
|
3
3
|
|
|
4
4
|
export LazyModule = class:
|
|
5
5
|
__init__ = (self, name) =>
|
|
6
|
-
self._name = name
|
|
7
|
-
self._module = None
|
|
8
|
-
self._submodules = {}
|
|
6
|
+
self.__dict__["_name"] = name
|
|
7
|
+
self.__dict__["_module"] = None
|
|
8
|
+
self.__dict__["_submodules"] = {}
|
|
9
9
|
|
|
10
10
|
__getattr__ = (self, attr) =>
|
|
11
11
|
try:
|
|
12
12
|
if self._module === None:
|
|
13
|
-
self._module = importlib.import_module(self._name)
|
|
13
|
+
self.__dict__["_module"] = importlib.import_module(self._name)
|
|
14
14
|
|
|
15
15
|
if hasattr(self._module, "__path__"):
|
|
16
16
|
if attr not in self._submodules:
|
|
@@ -30,6 +30,12 @@ export LazyModule = class:
|
|
|
30
30
|
|
|
31
31
|
raise AttributeError(f"Module '{self._name}' has no attribute '{attr}'")
|
|
32
32
|
|
|
33
|
+
__setattr__ = (self, attr, value) =>
|
|
34
|
+
if self._module === None:
|
|
35
|
+
self.__dict__["_module"] = importlib.import_module(self._name)
|
|
36
|
+
|
|
37
|
+
setattr(self._module, attr, value)
|
|
38
|
+
|
|
33
39
|
__repr__ = self => f"LazyModule({self._name})"
|
|
34
40
|
|
|
35
41
|
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|