From f71ffa247aea0b2212469e9e305d24eb8f2ff2d8 Mon Sep 17 00:00:00 2001 From: Robert Kruszewski Date: Tue, 26 Sep 2023 17:19:17 +0100 Subject: [PATCH] Add docs about zig only methods --- docs/guide/classes.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/guide/classes.md b/docs/guide/classes.md index 0901a89c..eb5bbc9d 100644 --- a/docs/guide/classes.md +++ b/docs/guide/classes.md @@ -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