/Misc/NEWS.help

http://unladen-swallow.googlecode.com/ · Unknown · 73 lines · 48 code · 25 blank · 0 comment · 0 complexity · 432385b077a5290686e81811c671c96d MD5 · raw file

  1. -*- text -*-
  2. If you edited Misc/NEWS before it was converted to ReST format skimming this
  3. file should help make the transition a bit easier. For full details about
  4. Docutils and ReST, go to the Docutils website:
  5. http://docutils.sourceforge.net/
  6. To process Misc/NEWS using Docutils, you'll need the latest docutils
  7. snapshot:
  8. http://docutils.sf.net/docutils-snapshot.tgz
  9. Docutils works with Python 2.2 or newer.
  10. To process NEWS into NEWS.html, first install Docutils, and then run
  11. this command:
  12. python .../docutils/tools/rst2html.py NEWS NEWS.html
  13. Here ".../docutils" is the directory into which the above snapshot was
  14. extracted. (I hope this recipe will change for the better.)
  15. David Goodger made a change to the allowable structure of internal
  16. references which greatly simplified initial conversion of the file.
  17. The changes required fell into the following categories:
  18. * The top-level "What's New" section headers changed to:
  19. What's New in Python 2.3 alpha 1?
  20. =================================
  21. *Release date: DD-MMM-2002*
  22. Note that the release date line is emphasized, with a "*" at each
  23. end.
  24. * Subsections are underlined with a single row of hyphens:
  25. Type/class unification and new-style classes
  26. --------------------------------------------
  27. * Places where "balanced" single quotes were used were changed to use
  28. apostrophes as both the opening and closing quote (`string' -> 'string').
  29. * In a few places asterisks needed to be escaped which would otherwise have
  30. been interpreted as beginning blocks of italic or bold text, e.g.:
  31. - The type of tp_free has been changed from "``void (*)(PyObject *)``"
  32. to "``void (*)(void *)``".
  33. Note that only the asterisks preceded by whitespace needed to be escaped.
  34. * One instance of a word ending with an underscore needed to be quoted
  35. ("PyCmp_" became "``PyCmp_``").
  36. * One table was converted to ReST form (search Misc/NEWS for "New codecs"
  37. for this example).
  38. * A few places where chunks of code or indented text were displayed needed
  39. to be properly introduced (preceding paragraph terminated by "::" and the
  40. chunk of code or text indented w.r.t. the paragraph). For example:
  41. - Note that PyLong_AsDouble can fail! This has always been true,
  42. but no callers checked for it. It's more likely to fail now,
  43. because overflow errors are properly detected now. The proper way
  44. to check::
  45. double x = PyLong_AsDouble(some_long_object);
  46. if (x == -1.0 && PyErr_Occurred()) {
  47. /* The conversion failed. */
  48. }