Archives for November, 2012

svg support for app engine running python on windows xp

While investigating app engine – svgz support (I’ll have a separate post for that) I encountered an even more basic issue: an app engine development server running on windows xp has no svg support at all. Every svg file referenced in a page is downloaded by the browser A closer look revealed a wrong response header for […]

Python – referencing a class from another Python file

Use the “from” keyword in addition to “import”, to reference the other file Syntax: from other_file_name import class_name_to_import Example: file first.py has class A definition To use in file second.py, add to the header of second.py: from first import A …