You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .agents/languages/python.md
-6Lines changed: 0 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,12 @@ Load this file when changing `python/`, Cython serialization, or Python xlang be
25
25
collisions before publishing resolver maps. Lazy TypeDef completion preserves a configured
26
26
serializer, does not retain partial state, and restores the prior serializer and TypeDef after
27
27
failed completion without adding a lifecycle state.
28
-
-`ThreadSafeFory` accepts serializer classes or factories and constructs a serializer for each
29
-
child resolver. It must reject resolver-bound serializer instances instead of replaying one
30
-
instance across pooled children.
31
28
- Registry freeze prohibits explicit type and serializer registration after the first root; it
32
29
does not prohibit native runtime type resolution. Non-strict native writes may discover runtime
33
30
classes or callables, and reads may resolve those authorized by the deserialization policy. Both
34
31
paths may materialize resolver-owned type information or serializer cache entries without
35
32
creating or changing an explicit type, serializer, ID, name, or policy registration. Do not
36
33
describe these operations as late registration.
37
-
- Function serialization writes captured globals as a data-only exact `dict`. Keep the reader's
38
-
exact-type check before sizing or merging the namespace; a dict subclass or other mapping must not
39
-
introduce runtime behavior into function reconstruction.
40
34
- Use explicit Cython fields and methods for fixed hot-path shapes. Avoid `__getattr__`, generic `object` fields, public bridge internals, or `Fory` backreferences where ownership can stay explicit.
41
35
- Keep Python and Cython context/ref-tracking branch conditions and stack mutations semantically aligned unless a documented intentional difference exists.
42
36
- Root deserialization graph memory budget state belongs to pure-Python and Cython `ReadContext`.
0 commit comments