Today I found out about Python's doctest module. "The doctest module searches for pieces of text that look like interactive Python sessions, and then executes those sessions to verify that they work exactly as shown."
...at least for Python 3.0.
Still hoping we can only wonder about sentences like the following in 10 years:
Some languages use special characters (Chinese, Japanese, Arabic, Klingon, etc.) that are difficult to handle with traditional software.
Python (2.4 and 2.5 tested) seems to have problems when an exception is thrown that contains non-ASCII text as a message.
In my case I constructed an exception like
>>> try: ... raise Exception(u'Error when printing ü') ... except Exception, e: ... print e ... Traceback (most recent call last): File "
", line 4, in ?
How to spell check Python source code, without wanting to non stop clicking "Ignore" for 'def' or other Python commands?
I have no IDE installed for python, quick Google check didn't give me any nice results, there's something for Emacs, brr.