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 |