# Managed spell reset methods **🟡 Intermediate · Lesson 45** Hand the next caller a clean object - managed_spell_reset_methods. A pooled object is reused, so whatever the last holder left in it would leak to the next one. Name its reset methods at bind: zero-argument methods the pool calls, in the order given, on EVERY release, before the object is idle again. The next lease then gets the same object, reset. A reset that raises means the object cannot be trusted: the pool destroys it (its disposal methods run, its place is freed) and the reset's error propagates from the release. The next meld builds a fresh object. ## Before you run Use the [Intermediate guide](../../intermediate/index.md) 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 ```bash python UX_and_AIX_experiences/02_intermediate/45_managed_spell_reset_methods.py ``` ```powershell py -3.14t UX_and_AIX_experiences/02_intermediate/45_managed_spell_reset_methods.py ``` {download}`Download this collection <../../downloads/intermediate-examples.zip>` · [Source on GitHub](https://github.com/Synaptic724/melder/blob/4b364a338debcb1c010d0f6e9dcbbabb62945ba0/UX_and_AIX_experiences/02_intermediate/45_managed_spell_reset_methods.py) ## Public surface md.Spellbook.bind (managed_spell_reset_methods, disposal_method_names), md.Existence.managed_spell_quantity, md.Conduit.meld, md.ReleaseManagedSpell (release, describe), md.Conduit.cleanup ## Code ```{literalinclude} ../../downloads/02_intermediate/45_managed_spell_reset_methods.py :language: python :linenos: ``` ## 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. [More intermediate examples](index.md) · [Level guide](../../intermediate/index.md) ## Related guides - [Managed spell pools](../../intermediate/managed-spells.md) ## API contracts - [Spellbook](../../reference/api/binding/spellbook.md) - [Conduit](../../reference/api/resolution/conduit.md) - [Existence](../../reference/api/resolution/existence.md) - [ReleaseManagedSpell](../../reference/api/resolution/releasemanagedspell.md)