1 |
On Monday 31 October 2005 02:14, Brian Harring wrote: |
2 |
|
3 |
+++ pym/cache/util.py (revision 0) |
4 |
+ def exception(self, key, *arg): print "exec",key,arg |
5 |
|
6 |
Should "exec" be "exec"? |
7 |
|
8 |
|
9 |
+++ pym/cache/mappings.py (revision 0) |
10 |
+ def __init__(self, pull_items, initial_items=[]): |
11 |
... |
12 |
+ self.pull = pull_items |
13 |
... |
14 |
+ self.d.update(self.pull()) |
15 |
|
16 |
What is pull_items? A function that returns a dict? If so, might be a good |
17 |
idea to name the parameter to something with "func" in it. |
18 |
|
19 |
|
20 |
+++ pym/cache/metadata.py (revision 0) |
21 |
+ for idx, c in enumerate(line): |
22 |
|
23 |
"enumerate" is a new one. Do you know which python version that was added in? |
24 |
|
25 |
|
26 |
+++ pym/cache/sql_template.py (revision 0) |
27 |
+ SCHEMA_VALUES_CREATE = "CREATE TABLE %s ( pkgid integer references %s |
28 |
(pkgid) on delete cascade, \ |
29 |
|
30 |
There's plenty more, but this is a good enough example. You realize that MySQL |
31 |
won't be supported (until 5.1) ? Not saying that MySQL need be supported; |
32 |
just ensuring that you realize it. |
33 |
|
34 |
|
35 |
Haven't had a close look yet. It will probably all make more sense after |
36 |
looking at the second patch. You should probably commit the lot to subversion |
37 |
though. Tracing out bugs when they appear will speed up understanding |
38 |
greatly. ;) |
39 |
|
40 |
-- |
41 |
Jason Stubbs |
42 |
-- |
43 |
gentoo-portage-dev@g.o mailing list |