Fix markup

This commit is contained in:
Nick Coghlan 2013-03-05 01:57:51 +10:00
parent 043d7cfaaa
commit 685514f87a
1 changed files with 4 additions and 0 deletions

View File

@ -268,6 +268,7 @@ Order preserving classes
------------------------ ------------------------
:: ::
class OrderedClass(namespace=collections.OrderedDict()): class OrderedClass(namespace=collections.OrderedDict()):
a = 1 a = 1
b = 2 b = 2
@ -278,6 +279,7 @@ Prepopulated namespaces
----------------------- -----------------------
:: ::
seed_data = dict(a=1, b=2, c=3) seed_data = dict(a=1, b=2, c=3)
class PrepopulatedClass(namespace=seed_data.copy()): class PrepopulatedClass(namespace=seed_data.copy()):
pass pass
@ -287,6 +289,7 @@ Cloning a prototype class
------------------------- -------------------------
:: ::
class NewClass(namespace=Prototype.__dict__.copy()): class NewClass(namespace=Prototype.__dict__.copy()):
pass pass
@ -295,6 +298,7 @@ Defining an extensible class
---------------------------- ----------------------------
:: ::
class Extensible: class Extensible:
namespace = locals() namespace = locals()