Improve the class example for several languages.

Fix numerous inaccuracies in index.html (where it exists) and eliminate
unnecessary differences between the example code being wrapped.
This commit is contained in:
Olly Betts 2014-02-23 18:05:50 +13:00
commit 34c97ffdbd
23 changed files with 154 additions and 412 deletions

View file

@ -38,6 +38,8 @@ for o in [c,s]:
print " ", o
print " area = ", o.area()
print " perimeter = ", o.perimeter()
# prevent o from holding a reference to the last object looked at
o = None
print "\nGuess I'll clean up now"
@ -45,7 +47,5 @@ print "\nGuess I'll clean up now"
del c
del s
s = 3
print example.cvar.Shape_nshapes,"shapes remain"
print "Goodbye"