Problems with FAQ


the FAQ solution to "How do I make vertical xticklabels?" does not work:
Python 2.5.1 (r251:54863, Jan 10 2008, 18:00:49)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from pylab import *
>>> plot([1,2,3,4], [1,4,9,16])
[<matplotlib.lines.Line2D object at 0x1bcc250>]
>>> set(gca(), 'xticks', [1,2,3,4])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: set expected at most 1 arguments, got 3

Since Python 2.4 set() is a built-in (

The method set() is used in several places in the FAQ. Please update it.

Here are some other things:

- Some code examples are indented with spaces. It would be better if there
were not. This would make copy+paste to the python shell easier.

- The FAQ says it can be used with mod_python. That's true, but it would be better
to use mod_wsgi since it is faster, easier to debug, more flexible, ...

Please CC to me, I am not on the list.

  Thomas Güttler


Thomas Guettler,
E-Mail: guettli (*) thomas-guettler + de