@@ -120,3 +120,61 @@ ghte rc file, but it might be helpful to a newbie.
120120
121121#. There is still a TODO in the file to include a complete list of symbols
122122
123+ coding guide (reviewed by EF)
124+ -----------------------------
125+
126+ Mostly fine, just a few comments. Also, there are a couple
127+ of typos, but I would rather just edit those directly in
128+ another pass (if you don't happen to find them) than include
129+ them as formal review notes.
130+
131+ #. Import recommendation for ma: given that the trunk is
132+ requiring numpy 1.1, perhaps we should be consistent and
133+ recommend the form::
134+
135+ import numpy.ma as ma
136+
137+ for use in the trunk.
138+ A note about the difference between the two forms and the
139+ history can stay in place, and the alternative form would
140+ still be required for the maintenance branch, I presume.
141+
142+ #. This is peripheral, but regarding the example::
143+
144+ mpl.rcParams['xtick.major.pad'] = 6
145+
146+ At least at the application level, I think we should move
147+ towards using validation routinely when setting rcParams,
148+ to reduce a source of hard-to-find bugs. I don't know to
149+ what extent Darren's traits-based system takes care of
150+ this, but if it does, that is a big point in its favor.
151+ There are alternatives (e.g. building validation into the
152+ rc() function and using that instead of setting the
153+ dictionary entries directly), if necessary.
154+
155+ #. You give the example::
156+
157+ import matplotlib.cbook as cbook
158+
159+ Should there also be a list of the standard variants like
160+ ``mtransforms``? (And, again peripherally, I would
161+ shorten that one to ``mtrans``.)
162+
163+ #. The treatment of whitespace is split into two parts
164+ separated by paragraphs on docstrings and line length;
165+ this can be consolidated. It might be worth mentioning
166+ the ``reindent.py `` and ``tabnanny.py `` utilities here.
167+
168+ #. Minor question of literary style: should use of the first
169+ person be avoided in most places? It is used, for
170+ example, in the discussion of the automatic kwarg doc
171+ generation. I don't mind leaving the first person in,
172+ with the general understanding that it means you.
173+
174+ #. Licenses: you might want to add a link to your
175+ explanation of your BSD choice. Peripheral question: is
176+ there any problem with basemap's inclusion of
177+ sub-packages with the gamut of licenses, GPL to MIT?
178+
179+
180+
0 commit comments