• Software
    • CMake Graphviz Output Cleaner
    • FlickrExifTagger
    • copyiptcandxmp
  • Vita
  • Contact
Semipol

Tag Archives: Python

How to set up a build system in C++, Python and Java

May 15, 2013 7:03 pm / Leave a Comment / languitar
Screen Shot 2013-05-15 at 7.03.33 PM

I don’t know why, but setting up the build system for a new software project and maintaining it seems to be something people are always afraid of. I’ve often heard people say “Eclipse does the job. It’s just additional work.” This usually leads to confusion and a lot of bulk and weird solutions several days … Read More →

Posted in: programming / Tagged: ant, build system, c++, CMake, distutils, Java, Python, setuptools

Python logging configuration

April 29, 2013 4:50 pm / Leave a Comment / languitar
Python logging system

In case you ever wondered how to correctly configure the python logging system, e.g. from files and configuration server, this might be a useful link, which I hadn’t see before: Logging Cookbook.

Posted in: programming / Tagged: Python

Difference between comparisons with == and is in Python

April 8, 2013 1:10 pm / Leave a Comment / languitar
python code example

In Python, two operators exist to perform equality comparisons: == and is. Often you can read instructions like “When comparing to None, always use is instead of ==”, but the real reason is not explained. However, looking at the language expression specification section of the Python manual you can find the difference: “The operators is and is not test for … Read More →

Posted in: programming / Tagged: Python

Evauation of Default Arguments in Python

January 19, 2011 9:55 pm / Leave a Comment / languitar

Today I stumbled upon a very subtle problem with default arguments in python. I noticed that loading a python module already instantiated one of my classes even though I could not find an installation of this class. In the end it turned out to be a default argument for a function:

Python
1
2
def foo(arg=MyClass()):
    pass

As I am … Read More →

Posted in: programming / Tagged: Python, work-planet

PyGTK Segfault durch bereits geladenes GTK

June 17, 2008 6:20 pm / Leave a Comment / languitar

Seit zwei Wochen bastel ich mich jetzt schon um einen mir unerklärlichen Segfault beim Importieren von PyGTK herum. Heute hab ich dann endlich mal etwas Zeit gehabt das ganze genauer unter die Lupe zu nehmen. Das Modul in meinem Projekt, das die GUI-Funktionalität bereitstellt, enthält folgende Imports: [python] import pygtk pygtk.require(’2.0′) import gtk [/python] Bis … Read More →

Posted in: programming / Tagged: GTK, PyGTK, Python, Segfault

Style Guide für Python

June 15, 2008 12:29 pm / Leave a Comment / languitar

Style Guides für Java und C/C++ gibt es ja zu Hauf, für Python war mir aber bisher noch kein explizit aufgeschriebener aufgefallen – zumindest bis gestern: PEP 8 — Style Guide for Python

Posted in: programming / Tagged: Python

Related Sites

  • Photography portfolio
  • Profile at CoR-Lab

Tags

amd64 API assembler bash BGL book boost boost.test browser bug c++ C/C++ c64 CD CDT CMake Computer Vision continuous integration Design Patterns Documentation Doxygen Eclipse enigmail Fahrrad firefox flickr Fotos freedesktop geocaching google image processing Java jenkins linux Mensa OpenCV Panorama Python Schild Speiseplan spelling error thunderbird ubuntu Unit Testing work-planet

Categories

  • internet
  • music
  • photography
  • programming
  • system administration
  • Uncategorized
  • university

Meta

  • Log in
  • Entries RSS
  • Comments RSS
  • WordPress.org
© Copyright 2013 - Semipol
Infinity Theme by DesignCoral / WordPress