Commit Graph

64 Commits

Author SHA1 Message Date
Raymond Hettinger da176eeb68 Fixup new itertools recipes. 2010-04-10 06:51:41 +00:00
Raymond Hettinger b640bcc32b Cleanup itertools recipes 2010-04-02 06:21:59 +00:00
Raymond Hettinger ce2338a16b Add and update itertools recipes. 2010-04-02 02:37:33 +00:00
Raymond Hettinger 6044655d59 Update itertools recipes. 2010-03-28 18:12:35 +00:00
Raymond Hettinger c1bb12a5ea Fix markup. 2010-01-25 19:20:30 +00:00
Raymond Hettinger cef40c34a9 Issue 7764: Improve recipe for itertools.consume(). 2010-01-24 03:34:56 +00:00
Ezio Melotti b5ff9facec Merged revisions 77675 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77675 | ezio.melotti | 2010-01-21 22:50:57 +0200 (Thu, 21 Jan 2010) | 1 line

  #7746: rephrase a sentence
........
2010-01-21 20:52:23 +00:00
Raymond Hettinger 1aef4440fb Fix docstrings for itertools combinatoric functions. 2009-11-19 01:26:23 +00:00
Raymond Hettinger ceecb8d3d8 Fix typo 2009-04-20 18:23:26 +00:00
Raymond Hettinger fd2405415b Remove duplicate recipe. 2009-04-18 23:58:45 +00:00
Raymond Hettinger 21fde35e71 Fix alignment 2009-04-10 19:46:51 +00:00
Raymond Hettinger 099769c0e5 No start argument 2009-04-10 18:58:58 +00:00
Raymond Hettinger 92d1951f04 Add examples. 2009-04-10 18:52:23 +00:00
Raymond Hettinger d06358fe3e Clarify the table entries for combinatorics. 2009-04-10 04:29:23 +00:00
Raymond Hettinger 2b45819b75 Issue 5477: Fix buglet in the itertools documentation. 2009-03-12 00:35:05 +00:00
Raymond Hettinger 8ef4e78cf5 Fix typo. 2009-03-10 13:05:40 +00:00
Raymond Hettinger fb30cca591 Add consume() recipe to itertools docs. 2009-03-09 11:58:33 +00:00
Raymond Hettinger d31d294e89 Issue 5443: Fix typo. 2009-03-09 11:39:03 +00:00
Raymond Hettinger d187d52085 Sync-up itertools docs with Py3.1 version.
* Merge 69715:  rewrite introduction and add summary table
* Merge 69739:  generalize tee() recipe
* Merge 69141:  Fix tab alignment on recipes to match other recipes
* Merge 68942:  Update powerset() recipe
2009-02-23 21:23:04 +00:00
Raymond Hettinger fc9a6659b4 Update itertools recipes to use next(). 2009-02-23 19:59:57 +00:00
Raymond Hettinger 5894c2b548 Add some cross-references to the docs. Simplify the python code equivalent for izip(). Supply an optional argument for the nth() recipe. 2009-02-19 05:38:53 +00:00
Raymond Hettinger bb94fd8290 Generalize itertools.tee() recipe. 2009-02-18 21:04:16 +00:00
Raymond Hettinger 11485b4869 Minor doc fixes. 2009-02-04 19:34:31 +00:00
Raymond Hettinger cdc9f2c1d5 Fixup itertools recipe to cover a corner case. 2009-01-27 06:38:00 +00:00
Raymond Hettinger 5cd012b64e Backport r68942: update powerset() recipe. 2009-01-26 02:17:52 +00:00
Raymond Hettinger 825758c50b - Issue 4816: itertools.combinations() and itertools.product were raising
a ValueError for values of *r* larger than the input iterable.  They now
  correctly return an empty iterator.
2009-01-08 05:20:19 +00:00
Georg Brandl 734373cc4d Merged revisions 68133-68134,68141-68142,68145-68146,68148-68149,68159-68162,68166,68171-68174,68179,68195-68196,68210,68214-68215,68217-68222 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r68133 | antoine.pitrou | 2009-01-01 16:38:03 +0100 (Thu, 01 Jan 2009) | 1 line

  fill in actual issue number in tests
........
  r68134 | hirokazu.yamamoto | 2009-01-01 16:45:39 +0100 (Thu, 01 Jan 2009) | 2 lines

  Issue #4797: IOError.filename was not set when _fileio.FileIO failed to open
  file with `str' filename on Windows.
........
  r68141 | benjamin.peterson | 2009-01-01 17:43:12 +0100 (Thu, 01 Jan 2009) | 1 line

  fix highlighting
........
  r68142 | benjamin.peterson | 2009-01-01 18:29:49 +0100 (Thu, 01 Jan 2009) | 2 lines

  welcome to 2009, Python!
........
  r68145 | amaury.forgeotdarc | 2009-01-02 01:03:54 +0100 (Fri, 02 Jan 2009) | 5 lines

  #4801 _collections module fails to build on cygwin.

  _PyObject_GC_TRACK is the macro version of PyObject_GC_Track,
  and according to documentation it should not be used for extension modules.
........
  r68146 | ronald.oussoren | 2009-01-02 11:44:46 +0100 (Fri, 02 Jan 2009) | 2 lines

  Fix for issue4472: "configure --enable-shared doesn't work on OSX"
........
  r68148 | ronald.oussoren | 2009-01-02 11:48:31 +0100 (Fri, 02 Jan 2009) | 2 lines

  Forgot to add a NEWS item in my previous checkin
........
  r68149 | ronald.oussoren | 2009-01-02 11:50:48 +0100 (Fri, 02 Jan 2009) | 2 lines

  Fix for issue4780
........
  r68159 | ronald.oussoren | 2009-01-02 15:48:17 +0100 (Fri, 02 Jan 2009) | 2 lines

  Fix for issue 1627952
........
  r68160 | ronald.oussoren | 2009-01-02 15:52:09 +0100 (Fri, 02 Jan 2009) | 2 lines

  Fix for issue r1737832
........
  r68161 | ronald.oussoren | 2009-01-02 16:00:05 +0100 (Fri, 02 Jan 2009) | 3 lines

  Fix for issue 1149804
........
  r68162 | ronald.oussoren | 2009-01-02 16:06:00 +0100 (Fri, 02 Jan 2009) | 3 lines

  Fix for issue 4472 is incompatible with Cygwin, this patch
  should fix that.
........
  r68166 | benjamin.peterson | 2009-01-02 19:26:23 +0100 (Fri, 02 Jan 2009) | 1 line

  document PyMemberDef
........
  r68171 | georg.brandl | 2009-01-02 21:25:14 +0100 (Fri, 02 Jan 2009) | 3 lines

  #4811: fix markup glitches (mostly remains of the conversion),
  found by Gabriel Genellina.
........
  r68172 | martin.v.loewis | 2009-01-02 21:32:55 +0100 (Fri, 02 Jan 2009) | 2 lines

  Issue #4075: Use OutputDebugStringW in Py_FatalError.
........
  r68173 | martin.v.loewis | 2009-01-02 21:40:14 +0100 (Fri, 02 Jan 2009) | 2 lines

  Issue #4051: Prevent conflict of UNICODE macros in cPickle.
........
  r68174 | benjamin.peterson | 2009-01-02 21:47:27 +0100 (Fri, 02 Jan 2009) | 1 line

  fix compilation on non-Windows platforms
........
  r68179 | raymond.hettinger | 2009-01-02 22:26:45 +0100 (Fri, 02 Jan 2009) | 1 line

  Issue #4615.  Document how to use itertools for de-duping.
........
  r68195 | georg.brandl | 2009-01-03 14:45:15 +0100 (Sat, 03 Jan 2009) | 2 lines

  Remove useless string literal.
........
  r68196 | georg.brandl | 2009-01-03 15:29:53 +0100 (Sat, 03 Jan 2009) | 2 lines

  Fix indentation.
........
  r68210 | georg.brandl | 2009-01-03 20:10:12 +0100 (Sat, 03 Jan 2009) | 2 lines

  Set eol-style correctly for mp_distributing.py.
........
  r68214 | georg.brandl | 2009-01-03 20:44:48 +0100 (Sat, 03 Jan 2009) | 2 lines

  Make indentation consistent.
........
  r68215 | georg.brandl | 2009-01-03 21:15:14 +0100 (Sat, 03 Jan 2009) | 2 lines

  Fix role name.
........
  r68217 | georg.brandl | 2009-01-03 21:30:15 +0100 (Sat, 03 Jan 2009) | 2 lines

  Add rstlint, a little tool to find subtle markup problems and inconsistencies in the Doc sources.
........
  r68218 | georg.brandl | 2009-01-03 21:38:59 +0100 (Sat, 03 Jan 2009) | 2 lines

  Recognize usage of the default role.
........
  r68219 | georg.brandl | 2009-01-03 21:47:01 +0100 (Sat, 03 Jan 2009) | 2 lines

  Fix uses of the default role.
........
  r68220 | georg.brandl | 2009-01-03 21:55:06 +0100 (Sat, 03 Jan 2009) | 2 lines

  Remove trailing whitespace.
........
  r68221 | georg.brandl | 2009-01-03 22:04:55 +0100 (Sat, 03 Jan 2009) | 2 lines

  Remove tabs from the documentation.
........
  r68222 | georg.brandl | 2009-01-03 22:11:58 +0100 (Sat, 03 Jan 2009) | 2 lines

  Disable the line length checker by default.
........
2009-01-03 21:55:17 +00:00
Raymond Hettinger d84616535c Issue #4615. Document how to use itertools for de-duping. 2009-01-02 21:20:38 +00:00
Raymond Hettinger f080e6d7e0 Alter recipe to show how to call izip_longest() with
both a keyword argument and star arguments.
2008-07-31 01:19:50 +00:00
Raymond Hettinger efdf706a9f Neaten-up the itertools recipes. 2008-07-30 07:27:30 +00:00
Benjamin Peterson 5255cba4bc document default value for fillvalue 2008-07-25 17:02:11 +00:00
Georg Brandl 8c81fdad33 Use correct indentation. 2008-07-23 16:00:44 +00:00
Raymond Hettinger f1f46f0350 Clean-up itertools docs and recipes. 2008-07-19 23:58:47 +00:00
Raymond Hettinger 39e0eb766f Fix compress() recipe in docs to use itertools. 2008-07-19 23:21:57 +00:00
Raymond Hettinger 3369167089 Add recipe to the itertools docs. 2008-07-19 00:43:00 +00:00
Andrew M. Kuchling e2e031394c Typo fixes 2008-04-17 20:44:06 +00:00
Raymond Hettinger 5eaffc4ce1 Issue 2648: Add leading zero to money format recipe in the docs. 2008-04-17 10:48:31 +00:00
Raymond Hettinger e70bb8d6f2 Simplify demo code. 2008-03-23 00:55:46 +00:00
Georg Brandl e8f1b00372 Enable doctest running for several other documents.
We have now over 640 doctests that are run with "make doctest".
2008-03-22 22:04:10 +00:00
Raymond Hettinger e8b4b60555 Add recipe to docs. 2008-03-11 00:19:07 +00:00
Raymond Hettinger 38fb9bee6c Tweak recipes and tests 2008-03-07 01:33:20 +00:00
Raymond Hettinger 040f10e9b3 Add examples. 2008-03-06 01:15:52 +00:00
Raymond Hettinger d553d856e7 Beef-up docs and tests for itertools. Fix-up end-case for product(). 2008-03-04 04:17:08 +00:00
Andrew M. Kuchling 684868ac90 Fix sentence fragment 2008-03-04 01:47:38 +00:00
Raymond Hettinger 2b7a5c468b Tighten example code. 2008-03-02 11:17:51 +00:00
Raymond Hettinger f287f17779 Finish-up docs for combinations() and permutations() in itertools. 2008-03-02 10:59:31 +00:00
Raymond Hettinger 330958e647 Document impending updates to itertools. 2008-02-28 19:41:24 +00:00
Raymond Hettinger 18750ab2a0 Add repeat keyword argument to itertools.product(). 2008-02-28 09:23:48 +00:00
Raymond Hettinger c105289ec4 Simply the sample code for combinations(). 2008-02-27 01:44:34 +00:00
Raymond Hettinger 93e804da9c Add itertools.combinations(). 2008-02-26 23:40:50 +00:00