Python
Python doctest and Unicode
Submitted by Christoph on 25 September, 2008 - 06:18Today 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."
Creating KDE4 apps with Python
Submitted by Christoph on 15 April, 2008 - 23:15Creating the Python KDE4 application id3encodingconverter makes me dive into PyKDE programming again after the first version of EncodingConverter EncodingConverter a KDE Amarok plugin with PyKDE 3.
Unicode finally takes the lead...
Submitted by Christoph on 31 March, 2008 - 19:12...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 and Exceptions containing Unicode messages
Submitted by Christoph on 30 March, 2008 - 23:40Python (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 ?
Spell check python source code
Submitted by Christoph on 18 February, 2008 - 00:46How 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.
