Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add docs about zig only methods #141

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/guide/classes.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ Static methods are similar to class methods but do not have access to the class
--8<-- "example/classes.zig:staticmethods"
```

## Zig Only Methods

Classes can define methods that are not exposed to python via `py.zig` wrapper

```zig
--8<-- "example/classes.zig:zigonly"
```

## Dunder Methods

Dunder methods, or "double underscore" methods, provide a mechanism for overriding builtin
Expand Down