Commit Graph

10001 Commits

Author SHA1 Message Date
Tarek Ziadé e6aeba7444 #5158: added documentation on the depends option in distutils extensions 2009-02-13 09:12:33 +00:00
Georg Brandl 5b2cb1d56e Add links to the other versions we have in stock. 2009-02-13 09:08:34 +00:00
Raymond Hettinger 31c769ca89 Issue 5032: added a step argument to itertools.count() and allowed non-integer arguments. 2009-02-12 05:39:46 +00:00
Benjamin Peterson 1312b4bcfd os.fsync() should be used to ensure that data is written to disk 2009-02-12 03:50:00 +00:00
Raymond Hettinger e4ae63c402 Clean-up named tuple docs. 2009-02-11 00:06:17 +00:00
Mark Dickinson 4015f62e39 Issue #5175: PyLong_AsUnsignedLongLong now raises OverflowError for
negative arguments.  Previously, it raised TypeError.

Thanks Lisandro Dalcin.
2009-02-10 15:46:50 +00:00
Raymond Hettinger 322daea7c3 Issue 1818: collections.namedtuple() to support automatic renaming of invalid fieldnames. 2009-02-10 01:24:05 +00:00
Benjamin Peterson b8e17f7370 a few edits and typos 2009-02-08 15:14:57 +00:00
Benjamin Peterson c5e68b1898 document numliterals fixer 2009-02-08 14:38:13 +00:00
Nick Coghlan 0194f5bc98 Issue #4512 closeout: Make ZipImport.get_filename() a public method 2009-02-08 03:17:00 +00:00
Nick Coghlan d39600e69f Issue 4195: Restore the ability to execute packages with the -m switch (but this time in a way that leaves the import machinery in a valid state). (Original patch by Andi Vajda) 2009-02-08 01:26:34 +00:00
Benjamin Peterson e0820e2ea7 document individual 2to3 fixers 2009-02-07 23:01:19 +00:00
Georg Brandl 95f8ef2825 make "super only for new-style classes" a note. 2009-02-07 18:49:54 +00:00
Georg Brandl 34feea3205 #5174: fix wrong file closing in example. 2009-02-07 12:21:17 +00:00
Benjamin Peterson a96a94af50 fix download link 2009-02-06 01:47:31 +00:00
Eric Smith 81fe09344c Implement issue #4285, convert sys.version_info to a named
tuple. Patch by Ross Light.
2009-02-06 00:48:26 +00:00
Georg Brandl ecd2afa452 #5031: fix Thread.daemon property docs. 2009-02-05 11:40:35 +00:00
Georg Brandl 85c5ccfab9 #4563: disable alpha and roman lists, fixes wrong formatting of contributor list. 2009-02-05 11:38:23 +00:00
Georg Brandl 2b0dd8e199 #4820: use correct module for ctypes.util. 2009-02-05 11:35:28 +00:00
Georg Brandl 253a29fa4d #4827: fix callback example. 2009-02-05 11:33:21 +00:00
Georg Brandl 4400d84bf7 #5015: document PythonHome API functions. 2009-02-05 11:32:18 +00:00
Georg Brandl 3ceebd2ca7 PyErr_PrintEx is also in 2.x... 2009-02-05 11:23:47 +00:00
Georg Brandl b21c75beab #5059: fix example. 2009-02-05 10:59:28 +00:00
Georg Brandl acc802b171 #5144: document that PySys_SetArgv prepends the script directory (or the empty string) to sys.path. 2009-02-05 10:37:07 +00:00
Georg Brandl 174fbe7742 #5153: fix typo in example. 2009-02-05 10:30:57 +00:00
Raymond Hettinger aff711d32a Clarify that named tuples do not have to subclass tuple. 2009-02-04 19:25:17 +00:00
Raymond Hettinger 939a3cc5a2 Tweak the docs for Counter() objects. 2009-02-04 11:31:30 +00:00
Raymond Hettinger 8184f5a46c Doc fixes. Remove overbroad, redundant warnings. Fixup example code. 2009-02-04 11:14:18 +00:00
Raymond Hettinger d507afdc81 Minor doc fixups. 2009-02-04 10:52:32 +00:00
Raymond Hettinger 4a1b62a555 Record operator deprecations in docs. 2009-02-03 03:18:14 +00:00
Gregory P. Smith 86cc5029dc wording for for issue4903. 2009-02-01 00:24:21 +00:00
Gregory P. Smith 5501d65590 Update doc wording as suggested in issue4903. 2009-02-01 00:16:01 +00:00
David Goodger a528dc507c markup fix 2009-01-31 22:53:46 +00:00
Benjamin Peterson 4829136965 fix indentation 2009-01-31 20:01:48 +00:00
Benjamin Peterson 0ef803ff0f PyErr_BadInternalCall() raises a SystemError, not TypeError #5112 2009-01-31 16:52:03 +00:00
Andrew M. Kuchling 8c2f85c43e Text edits and markup fixes 2009-01-31 03:26:02 +00:00
Andrew M. Kuchling a17cd4a574 Add a section 2009-01-31 02:50:09 +00:00
Benjamin Peterson 6c8321883e fix download url 2009-01-29 03:03:00 +00:00
Brett Cannon 8aa2c6ce8e Minor spelling mistake in datetime docs. 2009-01-29 00:54:32 +00:00
Brett Cannon 5b0d5531f2 Clarify some __del__ stuff. 2009-01-29 00:54:11 +00:00
Raymond Hettinger 1712baa852 Correct docs for ABCs (MutableSequence was missing __setiem). Simplify the table by taking out inherited requirements for abstract methods. 2009-01-28 23:58:16 +00:00
Guilherme Polo cda93aafde Added the ttk module. See issue #2983: Ttk support for Tkinter. 2009-01-28 13:09:03 +00:00
Raymond Hettinger d081abc8be Promote combinations_with_replacement() from a recipe to a regular itertool. 2009-01-27 02:58:49 +00:00
Raymond Hettinger 22bfa9e3e8 Tweak column alignment for collections docs. 2009-01-27 02:36:33 +00:00
Georg Brandl 0c2430beda Copy over docs on advanced role features from Sphinx docs. 2009-01-26 21:29:38 +00:00
Brett Cannon 93881c6c58 Backport importlib in the form of providing importlib.import_module(). This has
been done purely to help transitions from 2.7 to 3.1.
2009-01-26 01:16:50 +00:00
Raymond Hettinger 68d919e4d6 Improved itertools recipe for generating powerset(). 2009-01-25 21:31:47 +00:00
Raymond Hettinger 2bcb8e9b0d Promote compress() from a recipe to being a regular itertool. 2009-01-25 21:04:14 +00:00
Tarek Ziadé 1af3b5a9a4 Issue #4863, removing remaining bits 2009-01-25 19:29:10 +00:00
Jesse Noller b5a4b0abed Properly document multiprocessing's logging support, resolve outstanding issues with the custom levels 2009-01-25 03:36:13 +00:00
Andrew M. Kuchling 466bd9d3af Add various items 2009-01-24 03:28:18 +00:00
Jesse Noller 403c6632e6 Issue 4593: apply() documentation is unclear 2009-01-22 21:53:22 +00:00
Georg Brandl 40e8415509 Clarify wording. 2009-01-22 18:29:28 +00:00
Raymond Hettinger 7bdca05a3b More doc tweaks. 2009-01-22 05:20:47 +00:00
Raymond Hettinger 0a1f7b8f72 Tighten-up the docs for Counter(). 2009-01-21 23:12:51 +00:00
Raymond Hettinger 4571f347f9 Simplify explanation of multiset operations by removing restrictions on negative inputs. 2009-01-21 20:31:50 +00:00
Andrew M. Kuchling 42ffbdb903 Markup fixes 2009-01-21 02:16:26 +00:00
Andrew M. Kuchling 9cb4277c60 Add some items 2009-01-21 02:15:43 +00:00
Raymond Hettinger acdc84abcf Beautify and cleanup the references section. 2009-01-20 23:42:54 +00:00
Raymond Hettinger 196a0f7a8a Fix typos. 2009-01-20 12:59:36 +00:00
Raymond Hettinger 230dd27628 Don't disrupt automatic url target name generation
with manually specified, conflicting names.

Before:
    http://docs.python.org/dev/library/collections.html#id1

After:
    http://docs.python.org/dev/library/collections.html#counter-objects
2009-01-20 07:11:47 +00:00
Raymond Hettinger bad1eb2ff3 Build-outs for Counter() class:
* Constructor and update() support keyword args (like their dict counterparts).
* The 'del' statement no longer raises KeyError for missing values.
* Add multiset operations:  __add__, __sub__, __and__, __or__.
2009-01-20 01:19:26 +00:00
Benjamin Peterson c84ebe73a7 add email address 2009-01-19 16:18:27 +00:00
Benjamin Peterson b6c7beb722 move BufferedIOBase into the base class section 2009-01-19 16:17:54 +00:00
Vinay Sajip 4b78233cbd Added more cross-reference targets and tidied up list of useful handlers. 2009-01-19 06:49:19 +00:00
Georg Brandl fe11f4d524 #4986: augassigns are not expressions. 2009-01-18 18:25:30 +00:00
Georg Brandl af9a97b245 #4923: clarify what was added. 2009-01-18 14:41:52 +00:00
Georg Brandl 4a565cc41d #4857: fix augmented assignment target spec. 2009-01-18 13:47:26 +00:00
Georg Brandl 9f7fb849df #4979: correct result range for some random functions. 2009-01-18 13:24:10 +00:00
Georg Brandl bb550c99cb #4914: trunc is in math. 2009-01-18 10:48:16 +00:00
Georg Brandl 79f722da6c #4974: fix redundant mention of lists and tuples. 2009-01-18 10:45:22 +00:00
Georg Brandl 6c81b54cc4 #4976: union() and intersection() take multiple args, but talk about "the other". 2009-01-18 10:42:35 +00:00
Jesse Noller 6ab22154dd Resolve issue 4449: AssertionError in mp_benchmarks.py 2009-01-18 02:45:38 +00:00
Benjamin Peterson b746448f46 fix grammar 2009-01-18 01:28:46 +00:00
Benjamin Peterson f1a4069481 bytearrays are mutable sequences 2009-01-18 01:28:09 +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
Vinay Sajip b1a15e489a Minor changes/corrections in markup. 2009-01-15 23:04:47 +00:00
Vinay Sajip b5902e6054 Made minor changes/corrections in markup. Added a couple of section headings. 2009-01-15 22:48:13 +00:00
Raymond Hettinger 2950bca89c Fix-up indentation of sample code blocks for namedtuple mthod definitions. 2009-01-14 01:39:51 +00:00
Raymond Hettinger 59894127e4 Minor doc tweaks. 2009-01-14 00:15:21 +00:00
Andrew M. Kuchling 847c43a22d Note that first coord. is left alone 2009-01-13 13:40:54 +00:00
Raymond Hettinger fbcf749479 Add table of idioms/patterns for using Counter objects.
Improve the appearance and flow of the References section -- it used
to have a box around it that wasn't distinct from the preceding code
boxes and it had a weird bolding pattern and hanging indents that
made the section disproportionately large.
2009-01-13 08:38:14 +00:00
Georg Brandl dd958e0d28 Fix call signature and markup. 2009-01-13 08:11:07 +00:00
Raymond Hettinger 8278385a05 Minor documentation tweaks and simpler update() example. 2009-01-13 03:49:43 +00:00
Benjamin Peterson 5a0c864045 small logic correction 2009-01-13 01:49:10 +00:00
Raymond Hettinger aaa6e630f8 Simplify Counter() API. Replace items keyword argument
with a mapping.  Makes Counter() idempotent, makes update()
API the same as Counter.__init__(), makes a more readable
repr, makes the API more dict-like, and allows Steven
Bethard's update() example to work.
2009-01-13 01:05:03 +00:00
Raymond Hettinger f94d7fa5fb Issue 1696199: Add collections.Counter(). 2009-01-12 22:58:41 +00:00
Vinay Sajip 99234c5c74 Minor changes/corrections in markup. 2009-01-12 20:36:18 +00:00
Benjamin Peterson 51a37034db add email addresses 2009-01-11 19:48:15 +00:00
Gregory P. Smith 987735c4ec Update the documentation for binascii and zlib crc32/adler32 functions
to better describe the signed vs unsigned return value behavior on
different platforms and versions of python.  Mention the workaround to
make them all return the same thing by using & 0xffffffff.

Fixes issue4903.

Also needs to be merged into release26-maint, release30-maint, & py3k.
2009-01-11 17:57:54 +00:00
Gregory P. Smith 26f8d1bbe2 correct email address 2009-01-11 17:53:33 +00:00
Benjamin Peterson 5ed4f6cfb9 macos 9 isn't supported 2009-01-10 23:49:08 +00:00
Benjamin Peterson 4db53b212c move seealso to a more appropiate place 2009-01-10 23:41:59 +00:00
Vinay Sajip c2211adcc1 Corrected minor typo and added .currentmodule directives to fix missing cross-references. 2009-01-10 19:22:57 +00:00
Benjamin Peterson 590c66810f fix encoding 2009-01-10 19:08:49 +00:00
Benjamin Peterson 35b80e0442 tp_iter only exists with Py_TPFLAGS_HAVE_ITER #4901 2009-01-10 17:36:44 +00:00
Vinay Sajip 7c303e9a98 Corrected an incorrect self-reference. 2009-01-10 13:42:04 +00:00
Vinay Sajip 99505c841e Minor documentation changes cross-referencing NullHandler to the documentation on configuring logging in a library. 2009-01-10 13:38:04 +00:00
Kristján Valur Jónsson 0e2d8c36e3 Issue 4293: Make Py_AddPendingCall() thread safe
Add test cases and documentation
2009-01-09 21:35:16 +00:00
Benjamin Peterson a924289e9a fix spelling 2009-01-09 03:03:05 +00:00