From 3a7b3a57ce44ba3919e6ff2a97aca9481192d423 Mon Sep 17 00:00:00 2001 From: zooko <> Date: Sun, 17 May 2009 00:35:48 +0000 Subject: [PATCH] edit [Imported from Trac: page CodingStandards, version 3] --- CodingStandards.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CodingStandards.md b/CodingStandards.md index 226a1a8..d6a093e 100644 --- a/CodingStandards.md +++ b/CodingStandards.md @@ -73,7 +73,7 @@ The "error message" that will accompany a failed expression should be a statemen ==== class invariants ==== -If your class has internal state which is complicated enough that a bug in the class's implementation could lead to garbled internal state, then you should have a class invariant. A class invariant is a method like this (an actual example from BlockWrangler, but truncated for space): +If your class has internal state which is complicated enough that a bug in the class's implementation could lead to garbled internal state, then you should have a class invariant. A class invariant is a method like this (an actual example from !BlockWrangler, but truncated for space): ``` def _assert_consistency(self):