Commit Graph

66 Commits

Author SHA1 Message Date
Mariatta e1b02ff588 [2.7] bpo-28315: Improve code examples in docs (GH-1372) (#1447)
Replace
   File "<stdin>", line 1, in ?
with
   File "<stdin>", line 1, in <module>.
(cherry picked from commit 8856940cf2)
2017-05-03 18:54:28 -07:00
Martin Panter e3e362e398 Issue #26638: Mask undefined CLI options to defeat new Sphinx warnings 2016-10-30 05:19:02 +00:00
Serhiy Storchaka dc0e3a8907 Issue #19795: Improved more markups of True/False. 2016-10-19 18:30:16 +03:00
Martin Panter de2d4d2048 Issue #26439: Document that RTLD_NOW is always added 2016-09-27 05:10:40 +00:00
Serhiy Storchaka 12d547a80d Issue #23921: Standardized documentation whitespace formatting.
Original patch by James Edwards.
2016-05-10 13:45:32 +03:00
Martin Panter 4f23cabc16 Corrections for a/an in code comments and documentation 2016-05-08 13:45:55 +00:00
Serhiy Storchaka 9a118f1dc3 Issue #26778: Fixed "a/an/and" typos in code comment and documentation. 2016-04-17 09:37:36 +03:00
Martin Panter 6a8163a928 Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
This affects documentation and code comments.
2016-04-15 02:14:19 +00:00
Martin Panter 53ae0ba6e3 Issue #26304: Change "allows to <verb>" to "allows <verb>ing" or similar
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
2016-02-10 05:44:01 +00:00
Martin Panter a339e86dc0 Issue #19023: Document ctypes array and pointer classes
Also add some more tests. Based on patch by Sye van der Veen.
2016-01-29 10:12:19 +00:00
Zachary Ware fa45a0e3d2 Fix grammar.
Reported by Anatoly Techtonik on docs@
2016-01-01 12:22:16 -06:00
Georg Brandl 500380135b #22613: minor other fixes in library docs (thanks Jacques Ducasse) 2014-10-31 10:25:48 +01:00
Georg Brandl f3f50526cc Doc: fix default role usage (except in unittest mock docs) 2014-10-30 22:26:26 +01:00
R David Murray 72601e1456 #14201: Update ctypes docs to match behavior changed from 214b28d7a999.
Original patch by Erik Johansson, slightly updated by Meador Inge.
2014-10-04 18:24:32 -04:00
Benjamin Peterson ad715d9e97 put notes in a ..note section 2014-01-20 00:10:23 -05:00
Benjamin Peterson 235a7c59f1 document that a new Python thread context is created in ctypes callbacks (closes #6627)
Patch by Nikolaus Rath.
2014-01-20 00:09:53 -05:00
Serhiy Storchaka b712873a63 Removed spaces before colons and semicolons. 2013-12-24 11:04:06 +02:00
Serhiy Storchaka 610f84af0d Removed spaces before commas and periods. 2013-12-23 18:19:34 +02:00
Serhiy Storchaka 26d936a71e Issue #19795: Improved markup of True/False constants. 2013-11-29 12:16:53 +02:00
Ezio Melotti c62403818c #19319: fix ctypes docs: sizeof is an operator in C, not a function. 2013-10-21 04:41:40 +03:00
Ned Deily d7cb506789 Issue #18026: fix ctypes doc typo 2013-05-20 14:27:06 -07:00
Eli Bendersky 26e2faf57d Add warning in ctypes documentation for #16575 and #16576 2013-03-09 05:56:35 -08:00
Eli Bendersky e754636a5e Closing #17378: ctypes documentation fix.
Document that ctypes automatically applies byref() when argtypes declares
POINTER.
2013-03-08 05:34:58 -08:00
Eli Bendersky 82078bcfc3 Fix doc grammar and line width 2013-03-06 06:53:39 -08:00
R David Murray c454fe4509 #16371: fix up the English. 2012-10-31 10:53:13 -04:00
Sandro Tosi 98ed08f24e update to new C roles and directives 2012-01-14 16:42:02 +01:00
Ezio Melotti 1e87da16ea Remove duplication. 2011-10-19 10:39:35 +03:00
Sandro Tosi 25fb852e55 #12670: Fix struct code after forward declaration on ctypes doc 2011-08-02 16:16:11 +02:00
Georg Brandl 3c865231c1 Markup backport fix. 2011-02-25 11:27:48 +00:00
Georg Brandl 280460271d Merged revisions 87627,87638,87760,87986,88108,88115,88165,88263,88329,88364-88365,88423-88424 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87627 | georg.brandl | 2011-01-02 15:23:43 +0100 (So, 02 Jan 2011) | 1 line

  #1665333: add more docs for optparse.OptionGroup.
........
  r87638 | georg.brandl | 2011-01-02 20:07:51 +0100 (So, 02 Jan 2011) | 1 line

  Fix code indentation.
........
  r87760 | georg.brandl | 2011-01-05 11:59:48 +0100 (Mi, 05 Jan 2011) | 1 line

  Fix duplicate end tag.
........
  r87986 | georg.brandl | 2011-01-13 08:31:18 +0100 (Do, 13 Jan 2011) | 1 line

  Fix the example output of count().
........
  r88108 | georg.brandl | 2011-01-19 09:42:03 +0100 (Mi, 19 Jan 2011) | 1 line

  Suppress trailing spaces in table paragraphs.
........
  r88115 | georg.brandl | 2011-01-19 21:05:49 +0100 (Mi, 19 Jan 2011) | 1 line

  #10944: add c_bool to types table.
........
  r88165 | georg.brandl | 2011-01-24 20:53:18 +0100 (Mo, 24 Jan 2011) | 1 line

  Typo fix.
........
  r88263 | georg.brandl | 2011-01-30 13:19:35 +0100 (So, 30 Jan 2011) | 1 line

  #10680: fix mutually exclusive arguments in argument groups.
........
  r88329 | georg.brandl | 2011-02-03 08:08:25 +0100 (Do, 03 Feb 2011) | 1 line

  Punctuation typos.
........
  r88364 | georg.brandl | 2011-02-07 13:10:46 +0100 (Mo, 07 Feb 2011) | 1 line

  #11138: fix order of fill and align specifiers.
........
  r88365 | georg.brandl | 2011-02-07 13:13:58 +0100 (Mo, 07 Feb 2011) | 1 line

  #8691: document that right alignment is default for numbers.
........
  r88423 | georg.brandl | 2011-02-15 13:41:17 +0100 (Di, 15 Feb 2011) | 1 line

  Apply logging SocketHandler doc update by Vinay.
........
  r88424 | georg.brandl | 2011-02-15 13:44:43 +0100 (Di, 15 Feb 2011) | 1 line

  Remove editing slip.
........
2011-02-25 11:01:04 +00:00
Gregory P. Smith 3c699d334a Adds c_ssize_t to ctypes. issue 6729. 2010-03-01 04:56:12 +00:00
Georg Brandl c2aad8ad15 Fix wrong markup. 2009-12-29 11:25:38 +00:00
Georg Brandl a25658b755 Improve markup of ctypes docs. 2009-12-29 11:06:31 +00:00
Georg Brandl d2ff48602a #7569: clarification about c_char_p. 2009-12-29 10:34:34 +00:00
Benjamin Peterson bf306cadd6 adverb 2009-12-15 03:25:27 +00:00
Georg Brandl 185bd22564 Typo fix. 2009-08-27 18:59:02 +00:00
Georg Brandl 42a826408b Remove period from end of headings. 2009-06-08 07:57:35 +00:00
Benjamin Peterson 91d517c54b remove mention of old ctypes version 2009-05-23 20:59:09 +00:00
Georg Brandl 490096e760 Fix example output for doctest-like demos. 2009-05-15 08:03:03 +00:00
Georg Brandl 2b0dd8e199 #4820: use correct module for ctypes.util. 2009-02-05 11:35:28 +00:00
Thomas Heller 757d25526a Change an example in the docs to avoid a mistake when the code is copy
pasted and changed afterwards.
2009-01-16 18:53:44 +00:00
Georg Brandl dd7e313035 Fix two issues found by the suspicious builder. 2009-01-04 10:24:09 +00:00
Georg Brandl e92818f58c Fix uses of the default role. 2009-01-03 20:47:01 +00:00
Georg Brandl 0b9999c079 #4399: fix typo. 2008-11-23 21:57:30 +00:00
Andrew M. Kuchling cad8da8abd Markup fixes. (optparse.rst probably needs an entire revision pass.) 2008-09-30 13:01:46 +00:00
Andrew M. Kuchling bf0a5951c9 Tidy up some sentences 2008-08-30 15:21:23 +00:00
Andrew M. Kuchling 00f34c69b3 Re-word 2008-07-13 21:43:25 +00:00
Thomas Heller 41a9e15333 Markup fixes, thanks Georg for the help.
Document ctypes.util.find_library() and ctypes.util.find_msvcrt().
2008-06-11 19:58:22 +00:00
Thomas Heller c0a296f1dc Add versionadded marker to ctypes.c_longdouble. 2008-06-11 19:10:22 +00:00
Thomas Heller 35b9020246 Smaller doc fixes. 2008-06-11 18:40:51 +00:00