From 0571bab3820477b7f2e419d9872d5154922b2d26 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Thu, 9 May 2013 16:08:39 -0500 Subject: [PATCH] Return None in --init-- because due to a syntax flaw we have to! --- docs/tutorial.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/tutorial.rst b/docs/tutorial.rst index 9b3127d..cad438f 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -451,7 +451,10 @@ In Hy: (defclass FooBar [object] [[--init-- (fn [self x] - (setv self.x x))] + (setv self.x x) + ; Currently needed for --init-- because __init__ needs None + ; Hopefully this will go away :) + None)] [get-x (fn [self]