Re: [Tutor] put?

2008-05-06 Thread Robert Kirkpatrick
Hey Alan! Is there a dict program for the MacOS flavour of *nix? That's a slick little bit of code but it doesn't work on my Mac: robertk01$ dict -bash: dict: command not found but it works fine when I ssh into a Linux box... > > OTOH, if you are happy with those ideas: > >>> word = raw_inp

[Tutor] Conventions for code snippets for debugging and testing?

2008-04-10 Thread Robert Kirkpatrick
Hi All, Just wondering if there are any basic conventions for including code snippets that are for testing / debugging only? For example, you could set a boolean variable called DEBUG, then have snippets of code like: if DEBUG: do stuff else: do otherstuff The use case I'm dealing with