[sf-lug] [PYCLASS] Digression: doctests

jim jim at well.com
Mon Nov 10 20:48:17 PST 2008


 
   so where were you guys? molly and i were 
down at the noisebridge place waiting. she's 
still there, i think (she started about a 
week ago, reading to catch up, on chapter 3, 
maybe further by now. 


On Mon, 2008-11-10 at 22:58 -0500, Asheesh Laroia wrote:
> Today we discussed:
> 
> * Importing your code as a module
> * Docstrings, like:
> 
> def yourmom():
>  	'''Your mom has a docstring.'''
> 
> * Doctests, like in the attachment.
> * repr() vs. str()
> * eval(), repr(), and print
> 
> Then Alex Kleider wrote his own Python interpreter in two lines of code!
> 
> Yay!
> 
> Then we talked about slide projectors, Betamax, and transparent aluminum.
> 
> -- Asheesh.
> 
> -- 
> Pray:  To ask that the laws of the universe be annulled in behalf of a single
> petitioner confessedly unworthy.
>  		-- Ambrose Bierce
> _______________________________________________ sf-lug mailing list sf-lug at linuxmafia.com http://linuxmafia.com/mailman/listinfo/sf-lug





More information about the sf-lug mailing list