[Python-Dev] Out of date FAQ entries
Wed, 22 May 2002 22:24:34 -0400
I was looking over the FAQ and noticed a out-of-date entries.
I fixed a few:
6.6. Why can't I derive a class from built-in types (e.g. lists or files)? **
Added note that this doesn't apply to 2.2+
6.21. How do you specify and enforce an interface spec in Python? **
Added note that pychecker can find these problems.
But there are some others, which I can't do a good job updating.
The one's I did update could use some work too. :-)
6.5. Why does Python use methods for some functionality (e.g. list.index()) but functions for other (e.g. len(list))?
Perhaps update comment about strings, numbers not having methods.
6.12. Why is there no more efficient way of iterating over a dictionary than first constructing the list of keys()?
for k in d: # now works
6.13. Can Python be compiled to machine code, C or some other language?
Should mention pysco?
6.24. Why no class methods or mutable class variables?
Mention classmethod(), staticmethod()?
I'm sure there's others that could use fixing.