Commit Graph

8458 Commits

Author SHA1 Message Date
Benjamin Peterson ff94552763 tip-toe around dictionary keys view in the tutorial 2008-12-14 15:09:34 +00:00
Benjamin Peterson d9c03e0da3 string.maketrans -> str.maketrans 2008-12-13 03:03:41 +00:00
Georg Brandl acc68cc2b3 #4592: fix embedding example with new C API changes. 2008-12-09 23:48:44 +00:00
Georg Brandl 05b482caf8 #4586: fix usage of Py_InitModule. 2008-12-07 22:45:56 +00:00
Georg Brandl f9734076cf Merged revisions 67511,67536-67537,67543 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67511 | vinay.sajip | 2008-12-04 00:22:58 +0100 (Thu, 04 Dec 2008) | 1 line

  Issue #4384: Added logging integration with warnings module using captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging.
........
  r67536 | gregory.p.smith | 2008-12-04 21:21:09 +0100 (Thu, 04 Dec 2008) | 3 lines

  Adds a subprocess.check_call_output() function to return the output from a
  process on success or raise an exception on error.
........
  r67537 | vinay.sajip | 2008-12-04 21:32:18 +0100 (Thu, 04 Dec 2008) | 1 line

  Took Nick Coghlan's advice about importing warnings globally in logging, to avoid the possibility of race conditions: "This could deadlock if a thread spawned as a side effect of importing a module happens to trigger a warning. warnings is pulled into sys.modules as part of the interpreter startup - having a global 'import warnings' shouldn't have any real effect on logging's import time."
........
  r67543 | gregory.p.smith | 2008-12-05 03:27:01 +0100 (Fri, 05 Dec 2008) | 2 lines

  rename the new check_call_output to check_output.  its less ugly.
........
2008-12-07 15:30:06 +00:00
Georg Brandl 2080ea5f4b Forward-port r67624 and r67627. 2008-12-07 15:17:53 +00:00
Benjamin Peterson 6485f247e4 remove extraneous 'text' 2008-12-07 15:07:02 +00:00
Georg Brandl af265f4977 Merged revisions 67531-67532,67538,67553-67554,67556-67557,67571,67574-67575,67579-67580,67591,67597,67608,67631 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67531 | georg.brandl | 2008-12-04 19:54:05 +0100 (Thu, 04 Dec 2008) | 2 lines

  Add reference to enumerate() to indices example.
........
  r67532 | georg.brandl | 2008-12-04 19:59:16 +0100 (Thu, 04 Dec 2008) | 2 lines

  Add another heapq example.
........
  r67538 | georg.brandl | 2008-12-04 22:28:16 +0100 (Thu, 04 Dec 2008) | 2 lines

  Clarification to avoid confusing output with file descriptors.
........
  r67553 | georg.brandl | 2008-12-05 08:49:49 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4408: document regex.groups.
........
  r67554 | georg.brandl | 2008-12-05 08:52:26 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4409: fix asterisks looking like footnotes.
........
  r67556 | georg.brandl | 2008-12-05 09:02:17 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4441: improve doc for os.open() flags.
........
  r67557 | georg.brandl | 2008-12-05 09:06:57 +0100 (Fri, 05 Dec 2008) | 2 lines

  Add an index entry for "subclassing immutable types".
........
  r67571 | georg.brandl | 2008-12-05 10:13:45 +0100 (Fri, 05 Dec 2008) | 2 lines

  Use markup.
........
  r67574 | georg.brandl | 2008-12-05 10:25:32 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4441 followup: Add link to open() docs for Windows.
........
  r67575 | georg.brandl | 2008-12-05 12:34:51 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4544: add `dedent` to textwrap.__all__.
........
  r67579 | georg.brandl | 2008-12-05 16:29:39 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4517: add "special method" glossary entry and clarify when __getattribute__ is bypassed.
........
  r67580 | georg.brandl | 2008-12-05 16:32:29 +0100 (Fri, 05 Dec 2008) | 2 lines

  #4478: document that copyfile() can raise Error.
........
  r67591 | georg.brandl | 2008-12-05 19:00:06 +0100 (Fri, 05 Dec 2008) | 2 lines

  Followup to #4511: add link from decorator glossary entry to definition.
........
  r67597 | georg.brandl | 2008-12-05 20:03:19 +0100 (Fri, 05 Dec 2008) | 2 lines

  Remove confusing sentence part.
........
  r67608 | georg.brandl | 2008-12-06 12:57:12 +0100 (Sat, 06 Dec 2008) | 2 lines

  Follow-up to #4488: document PIPE and STDOUT properly.
........
  r67631 | georg.brandl | 2008-12-07 12:54:07 +0100 (Sun, 07 Dec 2008) | 2 lines

  Add link to the favicon to the docs.
........
2008-12-07 15:06:20 +00:00
Benjamin Peterson eb9fc524a8 document how to deal with binary standard streams 2008-12-07 14:58:03 +00:00
Georg Brandl 2ed237bd22 #4576: fix ob_type access. 2008-12-07 14:09:20 +00:00
Georg Brandl 17fe364b44 #4562: fix zip() examples. 2008-12-06 14:28:56 +00:00
Raymond Hettinger 518d8da05c Issue 1163367: Clarify super() docs. Also, fix-up the markup and XXX comment. 2008-12-06 11:44:00 +00:00
Georg Brandl 40c509d0b6 cmp() is not really gone. 2008-12-06 08:14:46 +00:00
Georg Brandl d2aa7e6627 #4557: remove 'c' typecode from array docs and add a note in whatsnew. 2008-12-06 08:12:11 +00:00
Georg Brandl badc7abc10 Use :samp: role. 2008-12-05 18:31:51 +00:00
Georg Brandl fed7d80988 #4549: Mention nonlocal statement in tutorial section about scoping. 2008-12-05 18:06:58 +00:00
Georg Brandl 6d204bf9b6 #4550: fix 2.x syntax in webservers howto. 2008-12-05 18:04:41 +00:00
Georg Brandl 48367816e9 Manually merged r67583: move __import__ doc to the bottom. 2008-12-05 15:55:41 +00:00
Georg Brandl 913b2a382f #4504, #4505: Update noddy examples in "Extending & Embedding". 2008-12-05 15:12:15 +00:00
Georg Brandl 7a259ca8e3 #4427: fix arguments for "y" BuildValue type. 2008-12-05 07:57:51 +00:00
Georg Brandl 7fe2c4af0e #4355: refer to urlencode in the correct module. 2008-12-05 07:32:56 +00:00
Guido van Rossum f519523f47 Tweak verbiage and markup for relative/absolute import. Backport candidate.
(I guess *all* changes to this file should be backported to the 3.0 branch.)
2008-12-05 05:49:12 +00:00
Benjamin Peterson 3432829ea0 fix Sphinx warnings 2008-12-05 03:05:29 +00:00
Georg Brandl c47408acc1 Add a skeleton 3.1 whatsnew document. 2008-12-04 18:44:53 +00:00
Georg Brandl 83ebf383d7 #4521: fix getcwdu() vs getcwdb(). 2008-12-04 18:21:46 +00:00
Georg Brandl a2361d908e #4526: fix typo. 2008-12-04 18:19:41 +00:00
Georg Brandl b159008a54 #4527: fix "unicode or string". 2008-12-04 18:18:16 +00:00
Fred Drake 9baee31a44 - fix markup error
- remove silly emoticon
2008-12-04 15:28:51 +00:00
Andrew M. Kuchling 2982c32a00 Wording change (flaunt -> disobey); markup fixes. The largest edit is to the paragraph on relative imports; please review. (Backport candidate) 2008-12-04 15:07:14 +00:00
Barry Warsaw 97f005d137 Prep for Python 3.1! 2008-12-03 16:46:14 +00:00
Guido van Rossum 815427c481 Remove remark about NaN==NaN, I misunderstood that issue. 2008-12-03 15:24:50 +00:00
Raymond Hettinger ab4c51c2b3 Minor edits. 2008-12-03 15:04:01 +00:00
Christian Heimes 6e72b9e619 Fixed a warning on whatsnew/3.0.rst 2008-12-03 13:39:03 +00:00
Georg Brandl ffd1a759da Use the :mod: role. 2008-12-03 06:44:59 +00:00
Guido van Rossum 08388ef361 Some textual tweaks, and fixed a few typos found by a spell checker. 2008-12-03 05:39:28 +00:00
Guido van Rossum b768d4f759 Fix bad markup. 2008-12-03 04:18:17 +00:00
Guido van Rossum fedd14051b More cleanup. Moved all Unicode and str/bytes info to the text/data
subsection in common pitfalls, rather than spreading it out.  Made
this the last subsection of common pitfalls.  All XXX comments are now
gone.  I'm sure much is still missing, we'll have to clean that up
post 3.0.  At least all PEPs and all implemented items in PEP 3100
have at least one mention.
2008-12-03 04:15:35 +00:00
Guido van Rossum 67d75ba7e7 Another checkpoint.
(A bit of a mess, a previous submit apparently didn't go through.)
2008-12-03 02:31:31 +00:00
Guido van Rossum 3828768f45 Another checkpoint -- some stuff I managed to do on the train. 2008-12-03 02:03:19 +00:00
Guido van Rossum 7396135b90 Another checkpoint. 2008-12-03 00:54:52 +00:00
Gregory P. Smith f3655c439d interators -> iterators (thanks Taggnostr) 2008-12-02 23:52:53 +00:00
Guido van Rossum c46ee546ee Finished what I'm going to write about the standard library. 2008-12-02 23:46:46 +00:00
Guido van Rossum 56076dab76 Finished the "porting to 3.0" section. Had to add a label to
howto/cporting.rst.
2008-12-02 22:58:36 +00:00
Guido van Rossum 715287f12f Another checkpoint. More XXXes added...
Also add some labels to 2.6.rst and howto/unicode.rst so I can refer
to them.  (Somehow a label named 'module-contextlib' couldn't be
referenced -- why???)
2008-12-02 22:34:15 +00:00
Guido van Rossum 5b78dd9fad Another checkpoint to switch machines. 2008-12-02 17:31:14 +00:00
Walter Dörwald eab34c954d Add missing bracket. 2008-12-02 11:58:09 +00:00
Walter Dörwald a443856935 Fix typo. 2008-12-02 11:55:30 +00:00
Benjamin Peterson cc163bb5db fix markup 2008-12-02 01:12:04 +00:00
Guido van Rossum eb3d8d4665 Checkpoint. Added some stuff. Mostly XXX notes for myself. :-) 2008-12-02 00:56:25 +00:00
Georg Brandl db6f108532 Merged revisions 67467 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67467 | benjamin.peterson | 2008-12-01 13:52:51 +0100 (Mon, 01 Dec 2008) | 1 line

  let people using SVN Sphinx still build the docs
........
2008-12-01 23:02:51 +00:00