Gentoo Archives: gentoo-portage-dev

From: "René 'Necoro' Neumann" <lists@××××××.eu>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] [RFC/PATCH] New objects cpv, pv and version to be used instead of raw strings.
Date: Fri, 18 Jul 2008 11:29:23
Message-Id: 9f8b54c5510285282d555e0367161906@mail.necoro.eu
In Reply to: [gentoo-portage-dev] [RFC/PATCH] New objects cpv, pv and version to be used instead of raw strings. by Ali Polatel
1 On Fri, 18 Jul 2008 12:41:52 +0300, Ali Polatel <hawking@g.o> wrote:
2 > Hi,
3 > Attached patch adds objects cpv, pv and version to portage.versions. This
4 > is
5 > meant as a thin layer over functions vercmp(), pkgcmp(), pkgsplit() and
6 > catpkgsplit().
7 > Using these objects instead of the mentioned functions allows us to write
8 > cleaner code and remove deprecated stuff like:
9 > list.sort(pkgcmp)
10 > which won't exist in py3k.
11 >
12 > Please comment.
13
14 Is there a reason, why you are using "__new__" instead of "__init__"?
15
16 Regards,
17 René
18
19 --
20 gentoo-portage-dev@l.g.o mailing list

Replies