On this page
Bind vocabulary cheatsheet๏
๐ข Beginner ยท Lesson 37
The whole bind vocabulary on one page - every kwarg a beginner will meet, printed as a cheatsheet next to a registration that uses ALL of them at once.
Before you run๏
Use the Beginner guide for prerequisite concepts. Run from a checkout with Melder installed and Python 3.14 free-threading selected. The collection download includes the level's local helper modules.
Run the saved script๏
python UX_and_AIX_experiences/01_beginner/37_bind_vocabulary_cheatsheet.py
py -3.14t UX_and_AIX_experiences/01_beginner/37_bind_vocabulary_cheatsheet.py
Public surface๏
bind(spell, existence, permissions, spellframe, binding_name, disposal_method_names, profile, **kwargs)
Code๏
1"""
2TIER: beginner (37)
3GOAL: The whole bind vocabulary on one page - every kwarg a beginner
4 will meet, printed as a cheatsheet next to a registration that
5 uses ALL of them at once.
6SURFACE EXERCISED: bind(spell, existence, permissions, spellframe,
7 binding_name, disposal_method_names, profile, **kwargs)
8"""
9import melder as md
10
11
12class FullyDressed:
13 def close(self) -> None:
14 pass
15
16
17def main() -> None:
18 vocabulary = [
19 ("spell", "the class/function/instance being registered"),
20 ("existence", "where reuse stops (unique / many / per-conduit)"),
21 ("permissions", "linking policy for shared worlds (tier 02)"),
22 ("spellframe", "top-level classification key (dict-style)"),
23 ("binding_name", "sub-key; (frame, name) is the full address"),
24 ("disposal_method_names", "your teardown verbs, called at cleanup"),
25 ("profile", "spell profile family (default: general)"),
26 ("**kwargs", "hook lists only; unknown keys silently ignored - beware"),
27 ]
28 for kwarg, meaning in vocabulary:
29 print(f"{kwarg:24s} {meaning}")
30
31 book = md.Spellbook()
32 book.bind(
33 spell=FullyDressed,
34 existence=md.Existence.unique,
35 spellframe="demo",
36 binding_name="fully-dressed",
37 disposal_method_names=["close"],
38 profile="general",
39 )
40 instance = book.conjure().meld(
41 spell=FullyDressed, spellframe="demo", binding_name="fully-dressed"
42 )
43 assert isinstance(instance, FullyDressed)
44 print("registration using the full vocabulary melded:", type(instance).__name__)
45
46
47if __name__ == "__main__":
48 main()
Check the outcome๏
The script contains its own assertions or demonstrated refusal paths. Run it to evaluate those checks against your installed version. The code above is taken directly from the saved file; no run output is invented here.