Suggestions
Post suggestions for new articles as comments to this page:
If you can, format your suggestion as an article stub, so the editors can just cut and paste when creating the actual article page. Complete articles are of course even better. For some tips on formatting, see the example on this page.
If you have other suggestions, feel free to post them here as well.
Note: Suggestions for the Tutor FAQ should be posted to this page.
Note: Comments on the Python documentation should be posted to the
relevant bug tracker. See the Comments and Questions
section on
this page for details.
Note: The comment section below is not properly formatted. Don’t worry about how things look on this page; the formatting will be fixed if the page is published.
Comment:
An article about escaping and "unescaping" HTML/XML would be nice, I think. Stuff to look at: cgi.escape, xml.sax.saxutils, HTML and XML parsers, htmlentitydefs, my re.sub examples, etc.
Posted by Fredrik (2006-10-29)
Comment (moved from 'How do I share global variables across modules?'):
For clarity, the sentence "Note that using a module is also the basis for implementing the Singleton design pattern, for the same reason." should link to a FAQ "How to implement the Singleton design pattern".
Posted by Ikipou (2006-11-05)
Comment:
Q: How do I calculate what quoted strings and numbers mean?
A: eval(source, {'builtins': {}}) works, without also accidentally accepting OS commands as input.
Note: Eval might surprise you if you mistype this idiom as: eval(source, {}).
Note: This idiom makes sense of ordinary Python literals (such as 010, 0x8, 8.125e+0, and "\x45ight"). This idiom also correctly interprets simple literal expressions, such as 64**0.5.
Posted by Pat LaVarre (2006-11-10)
I'm afraid "eval" is never a good choice if you cannot trust the source; it's trivial to do various denial-of-service attacks. See this page for an example. A FAQ entry that discusses sa
Comment:
The "Python's Design" questions should probably be broken out into a FAQ of their own.
Posted by amk
I've started tagging such entries with "CATEGORY: design" /F