Commit graph

12 commits

Author SHA1 Message Date
Pablo Galindo Salgado
ac80f2d978 Fix some crashes
```
import types
types.LazyImportType({}, "3", 0)
```

```
def f():
    exec("lazy import json")
f()
```
2025-12-08 01:07:05 +00:00
Bénédikt Tran
023f806d75
Fix and improve Objects/lazyimportobject.c (#31)
* re-order imports

* simplify static type definition

* fix undefined behaviors

* reject keyword arguments for `lazy_import`
2025-12-08 01:05:40 +01:00
Pablo Galindo Salgado
0b36549378 Fix tests 2025-12-06 18:01:39 +00:00
Pablo Galindo Salgado
76846fedf4 Address feedback 2025-12-06 17:52:23 +00:00
Pablo Galindo
e6cb131a53 Implement more of PEP 810 2025-12-06 15:21:17 +00:00
Dino Viehland
0c246bc79d __import__ is loaded at reification time 2025-10-08 13:33:16 -07:00
Dino Viehland
c5efb20d48 Expose LazyImportType in types module 2025-10-08 13:31:57 -07:00
Pablo Galindo Salgado
6a911327d0 Implement better error 2025-10-02 13:22:54 -07:00
Dino Viehland
f992ee760e Import lazy.get 2025-10-02 13:22:54 -07:00
Dino Viehland
058bc6e884 Flow import func through to lazy imports object and __lazy_import__ 2025-10-02 13:22:54 -07:00
Dino Viehland
9eef03cc80 Export lazy_import in imp module 2025-10-02 13:22:53 -07:00
Dino Viehland
1c691ea756 Lazy imports grammar / AST changes 2025-10-02 13:22:53 -07:00