pythonic equivalent of upvar?

2005-12-20 Thread David MacKay
illustrates the chunk of code, in case anyone is interested. #!/usr/bin/env python """ This program commandline.py illustrates a command-line reader (David MacKay, license: GPL) that works a little like perl's eval "\$$1=\$2" while @ARGV && $ARGV[0]=

Re: doctest fails to NORMALIZE_WHITESPACE ?

2005-12-17 Thread David MacKay
Thanks everyone! Silly me :-) * Tim Peters <[EMAIL PROTECTED]> [2005-12-17 12:01]: > [David MacKay] > > Hello, I'm a python-list newbie. I've got a question about doctest; perhaps > > a bug report. > > As things will turn out, it's just a question.

doctest fails to NORMALIZE_WHITESPACE ?

2005-12-17 Thread David MacKay
Hello, I'm a python-list newbie. I've got a question about doctest; perhaps a bug report. I really like doctest, but sometimes doctest gives a failure when the output looks absolutely fine to me -- indeed, even after I have gone to considerable effort to make my documentation match the output p