Skip to content

docs: add Magic Methods documentation and update navigation#11

Merged
Almas-Ali merged 1 commit into
masterfrom
feature/update-latest-docs
May 29, 2026
Merged

docs: add Magic Methods documentation and update navigation#11
Almas-Ali merged 1 commit into
masterfrom
feature/update-latest-docs

Conversation

@Almas-Ali

Copy link
Copy Markdown
Member

This pull request updates the documentation and navigation for magic methods and class object lifecycle. The main changes include adding documentation for the __destructor__ magic method and updating the navigation to include a dedicated Magic Methods page.

Documentation improvements:

  • Added a row for the __destructor__ magic method in the magic methods table in docs/classes.md, explaining its usage for object deletion and how it is invoked (del foo or foo.__destructor__(); delete(foo)).
  • Added a footnote clarifying that delete is pseudocode and illustrates that the destructor is called before variable removal.

Navigation updates:

  • Added a "Magic Methods" entry to the documentation navigation in mkdocs.yml to make magic methods easier to find.

@Almas-Ali Almas-Ali merged commit f57c3ad into master May 29, 2026
1 check passed
github-actions Bot added a commit that referenced this pull request May 29, 2026
docs: add Magic Methods documentation and update navigation
@Almas-Ali Almas-Ali deleted the feature/update-latest-docs branch May 29, 2026 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant