* Florent Rougon: > This function doesn't return anything (well, actually, it returns the > object None). The correct version is: > > def compare(a, b): > return apt_pkg.VersionCompare(a, b) Yes, indeed, sorry about that. Too much Perl lately. Thanks for explaining the multi-way compare, too.