Commit Graph

1837 Commits

Author SHA1 Message Date
Mark Dickinson e07acb5f15 Use consistent spelling for nans (thanks Georg for noticing). 2010-04-06 22:10:55 +00:00
Mark Dickinson 99e73f9145 Issue #7947: Clarify math module behaviour for IEEE 754 special cases, along
with a number of additional minor edits and typo corrections.
2010-04-06 19:50:03 +00:00
Georg Brandl abe448c49b #8320: document return value of recv_into(). 2010-04-06 08:18:15 +00:00
Antoine Pitrou f9de534c21 Issue #8321: Give access to OpenSSL version numbers from the `ssl` module,
using the new attributes `ssl.OPENSSL_VERSION`, `ssl.OPENSSL_VERSION_INFO`
and `ssl.OPENSSL_VERSION_NUMBER`.
2010-04-05 21:35:07 +00:00
Michael Foord d341ec82c7 Further documentation fix for unittest.rst 2010-04-05 10:30:14 +00:00
Michael Foord c5ff3f6ff0 Furterh documentation fix for unittest.rst 2010-04-05 10:28:27 +00:00
Michael Foord 3165503b4a Documentation fixes for unittest 2010-04-05 10:26:26 +00:00
Ezio Melotti 9ccc58113e Fix markup errors. 2010-04-05 08:16:41 +00:00
Ezio Melotti 01fa86a0bd Fix markup, punctuation and whitespaces in _winreg.rst. 2010-04-05 08:02:54 +00:00
Michael Foord 554303530c Document signal handling functions in unittest.rst 2010-04-05 00:39:50 +00:00
Michael Foord ddb20df018 Adding documentation for new unittest.main() parameters 2010-04-04 23:28:44 +00:00
Ezio Melotti 6f65d2dd1b Fix markup in decimal.rst. 2010-04-04 23:21:53 +00:00
Michael Foord 09e2980c15 unittest documentation formatting changes 2010-04-04 22:41:54 +00:00
Mark Dickinson b1affc517f Add versionchanged entry for Decimal(float) construction.
Also add an example of constructing a Decimal directly from a float,
update the quickstart tutorial, and tweak another couple of
sentences.
2010-04-04 22:09:21 +00:00
Raymond Hettinger bb006cf26c Add tests for cmp_to_key.
Adopt PEP 8 compliant function name.
Factor-out existing uses cmp_to_key.
Update documentation to use internal pointers instead of external resource.
2010-04-04 21:45:01 +00:00
Raymond Hettinger a551f31d48 Add functools.CmpToKey() 2010-04-04 18:34:45 +00:00
Raymond Hettinger 0d57caa267 Documentation nit 2010-04-04 07:33:46 +00:00
Ezio Melotti 4edfe96381 Revert 79733 - Counter is new in 2.7, the versionadded is not necessary - and fix a typo. 2010-04-04 06:50:58 +00:00
Ezio Melotti 0cee3794c7 Add a versionadded to Counter.subtract() doc. 2010-04-04 06:41:27 +00:00
Raymond Hettinger 20ae90d887 Issue 5479: Add functools.total_ordering class decorator. 2010-04-04 01:24:59 +00:00
Antoine Pitrou 945d4ccdd9 Fix wording / typography, and a slightly misleading statement
(memoryviews don't support complex structures right now)
2010-04-03 21:22:38 +00:00
Raymond Hettinger 5f516edd77 Add count() method to collections.deque(). 2010-04-03 18:10:37 +00:00
Michael Foord ba097ec1be Documenting new features in unittest 2010-04-03 17:03:11 +00:00
Mark Dickinson 4846a8e828 Issue #8300: Let struct.pack use __index__ to convert and pack non-integers.
Based on a patch by Meador Inge.
2010-04-03 14:05:10 +00:00
Raymond Hettinger 34c35b2788 Add subtract() method to collections.Counter() objects. 2010-04-03 10:22:00 +00:00
Brian Curtin e5aa886b44 Implement #1220212. Add os.kill support for Windows.
os.kill takes one of two newly added signals, CTRL_C_EVENT and
CTRL_BREAK_EVENT, or any integer value. The events are a special case
which work with subprocess console applications which implement a
special console control handler. Any other value but those two will
cause os.kill to use TerminateProcess, outright killing the process.

This change adds win_console_handler.py, which is a script to implement
SetConsoleCtrlHandler and applicable handler function, using ctypes.

subprocess also gets another attribute which is a necessary flag to
creationflags in Popen in order to send the CTRL events.
2010-04-02 23:26:06 +00:00
Mark Dickinson 7c63eee485 Issue #8294: Allow float and Decimal arguments in Fraction constructor. 2010-04-02 22:27:36 +00:00
Brian Curtin e33fa887d3 Implement #7347. Add CreateKeyEx, DeleteKeyEx, and update _winreg tests.
*ReflectionKey functions used to not be documented or tested, but they are
now sufficiently documented and tested on platforms where they apply.
Additionally, fixed a bug in QueryReflectionKey which was returning an
incorrect value.

All tests pass from XP through Windows 7, on 32 and 64-bit platforms.
2010-04-02 21:18:14 +00:00
Raymond Hettinger ed171abd93 Issue 8257: Decimal constructor to accept float. 2010-04-02 18:39:24 +00:00
Andrew M. Kuchling dc36d7cf85 #6647: add note to two examples 2010-04-02 17:54:26 +00:00
Andrew M. Kuchling d886290464 #6647: document that catch_warnings is not thread-safe 2010-04-02 17:48:23 +00:00
Georg Brandl d3bab6aba9 Remove col-spanning cells in logging docs. 2010-04-02 09:03:18 +00:00
Mark Dickinson 99d8096c17 Issue #2531: Make float-to-decimal comparisons return correct results.
Float to decimal comparison operations now return a result based on
the numeric values of the operands.  Decimal.__hash__ has also been
fixed so that Decimal and float values that compare equal have equal
hash value.
2010-04-02 08:53:22 +00:00
Georg Brandl 49b9192b12 #2768: add a note on how to get a file descriptor. 2010-04-02 08:39:09 +00:00
Raymond Hettinger f28dd0d1bf Cleanup itertools recipes 2010-04-02 06:23:12 +00:00
Raymond Hettinger 4bfd3bda2e Add and update itertools recipes. 2010-04-02 02:44:31 +00:00
Raymond Hettinger f54c268326 Document link to Sorting HowTo 2010-04-01 07:54:16 +00:00
R. David Murray 6c9fc4cf2b A couple small grammar fixes in test.rst, and rewrite the
check_warnings docs to be clearer.
2010-04-01 01:28:39 +00:00
Benjamin Peterson 7e213255ce add inspect.getcallargs, which binds function arguments like a normal call #3135
Patch by George Sakkis
2010-03-30 17:58:13 +00:00
Michael Foord e6410c536c Backport of weakref.WeakSet and tests from Python 3. 2010-03-29 20:04:23 +00:00
Raymond Hettinger b8d688cd7c Update itertools recipe for consume(). 2010-03-28 18:25:01 +00:00
Raymond Hettinger d282b931a3 Add a note on optimizing the itertools recipes for production. 2010-03-28 18:08:15 +00:00
Raymond Hettinger 5b027f87b5 Update itertools recipes. 2010-03-28 18:02:41 +00:00
Brian Curtin fbe519975b Fix #6538. Markup RegexObject and MatchObject as classes. Patch by Ryan Arana. 2010-03-25 23:48:54 +00:00
Vinay Sajip 66d19e2a0c logging: Updated SysLogHandler documentation. 2010-03-24 17:36:35 +00:00
Vinay Sajip a3c39c0f72 logging: Documentation tweak. 2010-03-24 15:10:40 +00:00
Vinay Sajip b0623d64a8 logging: Added LOG_FTP for SysLogHandler and updated documentation. 2010-03-24 14:31:21 +00:00
Senthil Kumaran 67b4e187e1 Fixed Issue8209 - OptionParser keyword arg 'epilog' not mentioned in the docs 2010-03-23 08:46:31 +00:00
Ezio Melotti 0d0b80bc3e Link specifically to the UCD version 5.2.0. 2010-03-23 00:38:12 +00:00
Ezio Melotti 88b6f8bada Remove link to objects.rst (gone in r79179). 2010-03-23 00:25:19 +00:00
Ezio Melotti ae735a763e Update the version number of the Unicode Database in a few more places. 2010-03-22 23:07:32 +00:00
Vinay Sajip 804899b4ab logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter. 2010-03-22 15:29:01 +00:00
Georg Brandl aa89f8d04c Remove leftover word. 2010-03-21 11:50:58 +00:00
Georg Brandl ce00cf2ce7 Update text for newest US DST regulation. The sample file already has the calculation right. 2010-03-21 09:58:36 +00:00
Georg Brandl 0b56ce0bc4 Clarify that for shell=True, the shell PID will be the child PID. 2010-03-21 09:28:16 +00:00
Georg Brandl d1068be653 Document that GzipFile supports iteration. 2010-03-21 09:09:38 +00:00
Georg Brandl 3814ddfcfc Add a paragraph about set displays. 2010-03-21 09:08:00 +00:00
Georg Brandl dad0203f0a Remove the "built-in objects" file. It only contained two paragraphs of which only one contained useful information, which belongs in the ref manual however. 2010-03-21 09:02:01 +00:00
Georg Brandl 118c55778e Fix some issues found by Jacques Ducasse on the docs list. 2010-03-21 09:01:27 +00:00
Benjamin Peterson 2405547a2a wrap 2010-03-20 16:17:37 +00:00
Benjamin Peterson d47667c32b document exitfunc fixer 2010-03-20 16:16:44 +00:00
Michael Foord 98e7b7644b Issue 7832: renaming unittest.TestCase.assertSameElements to assertItemsEqual and changing behaviour 2010-03-20 03:00:34 +00:00
Sean Reifscheider 95ce1fcf8b Adding an example of reproducing the rfc822.Message() parsing. 2010-03-19 23:19:55 +00:00
Collin Winter 001a3952c9 Add support for weak references to code objects. This will be used by an optimization in the incoming Python 3 JIT.
Patch by Reid Kleckner!
2010-03-18 21:54:01 +00:00
Florent Xicluna 735885428d #8155: Preserve backward compatibility for test_support.check_warnings(). Add regression tests. 2010-03-18 19:51:47 +00:00
Vinay Sajip 2060e42206 Issue #8162: logging: Clarified docstring and documentation for disable function. 2010-03-17 15:05:57 +00:00
Georg Brandl 65db5872b0 #8137: add iso-8859-16 to the standard encodings table. 2010-03-14 09:55:08 +00:00
Florent Xicluna 88db6f402e Minor documentation updates for xml.etree. 2010-03-14 01:22:09 +00:00
Florent Xicluna a231e45fb1 Add the keyword argument "method=None" to the .write() method and the tostring/tostringlist functions.
Update the function, class and method signatures, according to the new convention.
2010-03-13 20:30:15 +00:00
Florent Xicluna 583302c54e Update some parts of the xml.etree documentation. 2010-03-13 17:56:19 +00:00
Ezio Melotti 93dd9b808e #8011: use exc.tb_lineno instead of traceback.tb_lineno() and pep8ify variable names. 2010-03-13 01:21:34 +00:00
Ezio Melotti c4785a7547 fix broken links 2010-03-13 00:15:36 +00:00
Georg Brandl f6d3674599 Fix warnings from "make check". 2010-03-12 10:02:03 +00:00
Vinay Sajip ecfa08fdf8 Issue #8117: Updated NEWS entry and added to logging documentation. 2010-03-12 09:16:10 +00:00
Florent Xicluna 3e8c189faa Issue #6472: The xml.etree package is updated to ElementTree 1.3. The cElementTree module is updated too. 2010-03-11 14:36:19 +00:00
Raymond Hettinger 9bd3508530 Add nicer docstrings to namedtuples().
Provides better tooltips and looks better in help().
2010-03-09 09:01:46 +00:00
Raymond Hettinger 08090bf36a Improve the basic example.
* Show both the decorator and regular form for assertRaises()
* Use assertTrue() instead of assertIn() to teach useful minimal subset of the API
2010-03-09 08:44:18 +00:00
Florent Xicluna cf741ceb69 Fix syntax: "rc != None" -> "rc is not None" 2010-03-08 10:58:12 +00:00
Florent Xicluna fc8a1ed70e Refresh the documentation for the test.test_support module. 2010-03-07 19:14:12 +00:00
Mark Dickinson 154b7ad07e Issue #1530559: When packing a non-integer with any integer conversion
code using struct.pack, attempt to convert to an integer first using
the argument's __int__ method (if present).  Also raise a
DeprecationWarning for any such usage of __int__.

This fixes a regression from 2.6, where some (but not all) integer
conversion codes already used __int__.
2010-03-07 16:24:45 +00:00
Georg Brandl 21e99f4924 #5341: more built-in vs builtin fixes. 2010-03-07 15:23:59 +00:00
Benjamin Peterson a7fa0324fb settscdump is definitely an implementation detail 2010-03-06 03:13:33 +00:00
Gerhard Häring 3bbb67273a Merged code from pysqlite 2.6.0. 2010-03-05 09:12:37 +00:00
R. David Murray 3f3330f388 Fix documentation of email.Message.get_filename to match
the fix applied in Issue 7082.
2010-03-04 17:34:05 +00:00
Benjamin Peterson ac80c157c7 rephrase 2010-03-03 21:28:25 +00:00
Lars Gustäbel 6458104188 Issue #7232: Add support for the context manager protocol
to the TarFile class.
2010-03-03 11:55:48 +00:00
Benjamin Peterson c516d199ec fix Sphinx warnings 2010-03-03 02:04:24 +00:00
Benjamin Peterson 90c5802e6b edit for style 2010-03-03 01:55:09 +00:00
Georg Brandl d2decd9965 Add some x-refs. 2010-03-02 22:17:38 +00:00
Benjamin Peterson a39e966e97 set svn:eol-style 2010-03-02 22:05:59 +00:00
Michael Foord abe6331cca Link correction in documentation. 2010-03-02 14:22:15 +00:00
Steven Bethard e9330e7941 Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
2010-03-02 08:38:09 +00:00
Andrew M. Kuchling 66dab172fe #7191: describe more details of wbits parameter 2010-03-01 19:51:43 +00:00
Andrew M. Kuchling f8af7b46fd #7637: update discussion of minidom.unlink() and garbage collection 2010-03-01 19:45:21 +00:00
Gregory P. Smith 3c699d334a Adds c_ssize_t to ctypes. issue 6729. 2010-03-01 04:56:12 +00:00
Gregory P. Smith e6390a1503 Adds the hashlib.algorithms attribute. See issue7418. 2010-03-01 02:01:47 +00:00
Ezio Melotti 68beef6633 Pep8ify test names in the examples. 2010-02-28 03:11:07 +00:00
Ezio Melotti 8dd547f689 Fix missing parenthesis. 2010-02-27 13:50:35 +00:00
Ezio Melotti 84424f1532 typo: __next__ -> next 2010-02-26 23:27:06 +00:00
Andrew M. Kuchling 9aeeffa929 #7407: specify default maxsize value; patch by Floris Bruynooghe 2010-02-26 13:22:50 +00:00
Senthil Kumaran c994186dad Fixing issue5475 : urllib2.getproxies not documented 2010-02-26 00:47:05 +00:00
Eric Smith 271b7e1abb Issue #7928: Document str.format element_index better. 2010-02-25 14:26:33 +00:00
Eric Smith de8b2ac332 Issue #5965: Add documentation for parts of format specification language. 2010-02-25 14:14:35 +00:00
Dirkjan Ochtman 2d78070f63 Issue #7733: add explicit reference in asyncore docs. 2010-02-24 04:00:52 +00:00
Georg Brandl 6ae19ade64 #8000: fix deprecated directive. What a shame to lose that glorious issue number to such a minor bug :) 2010-02-23 21:33:17 +00:00
Dirkjan Ochtman 8614817875 Fix #1537721: add writeheader() method to csv.DictWriter.
Reviewed by skip.montanaro and thomas.wouters.
2010-02-23 21:09:52 +00:00
Jack Diederich 1605b3316f fixup markup error 2010-02-23 17:23:30 +00:00
Tarek Ziadé 48cc8dc958 added make_archive (and secondary APIs) to shutil 2010-02-23 05:16:41 +00:00
Jack Diederich 8f48f4c5f6 fixes issue #7530, serve_forever() 2010-02-22 18:17:16 +00:00
Mark Dickinson f5be4e612c Clarify description of three-argument pow for Decimal types: the exponent of the result is always 0. 2010-02-22 15:40:28 +00:00
Andrew M. Kuchling dfd0148909 #6414: clarify description of processor endianness.
Text by Alexey Shamrin; I changed 'DEC Alpha' to the more relevant 'Intel Itanium'.
2010-02-22 15:13:17 +00:00
Andrew M. Kuchling 25d6ddd38b #7076: mention SystemRandom class near start of the module docs; reword change description for clarity. Noted by Shawn Ligocki. 2010-02-22 02:29:10 +00:00
Vinay Sajip 61afd2694b logging: Documented warnings module integration. 2010-02-19 23:53:17 +00:00
Georg Brandl 74cbd664d2 #7967: PyXML is no more. 2010-02-19 19:36:08 +00:00
Fred Drake cc43b56960 - apply patch from issue 7005
- add corresponding documentation
2010-02-19 05:24:30 +00:00
Mark Dickinson 6d8effb1fc Issue #7633: Context method in the decimal module (with the exception
of the 'canonical' and 'is_canonical' methods) now consistently accept
integer arguments wherever a Decimal instance is accepted.  Thanks
Juan José Conti for the patch.
2010-02-18 14:27:02 +00:00
R. David Murray 6dfe66298b Make the references to Popen in the description of Call
and check_call into links.
2010-02-16 17:55:26 +00:00
Eric Smith cef34099b5 Remove incorrect apostrophe. 2010-02-15 11:55:38 +00:00
Ezio Melotti a68f7b8a0d #7921: fix links. Patch by Brian Curtin. 2010-02-14 02:50:23 +00:00
Ezio Melotti 6164d7ac84 #7907: fix wrong function name in doc. Patch by Brian Curtin. 2010-02-11 23:50:57 +00:00
R. David Murray 7c29f071d5 Issue 5754: tweak shelve doc wording to make it clearer that even when
writeback=True values are written to the backing store when assigned to
the shelf.  Add test to confirm that this happens.  Doc patch and added
test by Robert Lehmann.  I also fixed the cross references to the sync
and close methods.
2010-02-11 01:38:42 +00:00
Michael Foord db43b5a1f5 Issue 7893 and Issue 7588 2010-02-10 14:25:12 +00:00
Michael Foord 7b5aa463f9 Doc fix for unittest. 2010-02-08 23:15:22 +00:00
Michael Foord fe6349c965 Make assertMultiLineEqual the default for comparing unicode strings. 2010-02-08 22:41:16 +00:00
Ronald Oussoren dd25e86cf4 Issue 6003: ZipFile.writestr "compression_type" argument 2010-02-07 20:18:02 +00:00
Georg Brandl dc3694bee0 Rename "exc_value" attribute on assertRaises context manager to "exception". 2010-02-07 17:02:22 +00:00
Ronald Oussoren ab3f5cbabd A number of APIs in macostools cannot work in 64-bit mode because they
use Carbon APIs that aren't available there.

This patch disables tests for the affected entrypoints in macostools and
mentions this in the documentation.

In theory it is possible to replace the implementation by code that does
work in 64-bit mode, but that would require further updates to the Carbon
wrappers because the modern APIs aren't wrapped properly.
2010-02-07 11:38:28 +00:00
Georg Brandl 6f82cd309c #5341: fix "builtin" where used as an adjective ("built-in" is correct). 2010-02-06 18:44:44 +00:00
Georg Brandl b79dc307ad Review sysconfig docs. 2010-02-06 10:23:16 +00:00
Georg Brandl 1c7c7304a3 #7864: make deprecation notices a bit clearer. 2010-02-06 10:08:21 +00:00
Michael Foord ba7732ea6a Minor doc change. 2010-02-05 23:28:12 +00:00
Michael Foord fb0844bcc8 Adding versionadded to test skipping section of unittest documentation. 2010-02-05 21:45:12 +00:00
Michael Foord 1f3fa8ae68 Example of using assertRaises as a context manager in the unittest documentation. 2010-02-05 21:07:38 +00:00
Michael Foord 1c43001cf3 Closes issue 7030. 2010-02-05 20:52:14 +00:00
Vinay Sajip 0e6e97d9ad Issue #7851: logging: clarification on logging configuration files. 2010-02-04 20:23:45 +00:00
Ezio Melotti 85ee3e1b1e Use correct assert* methods in the examples. 2010-02-04 20:06:38 +00:00
Nick Coghlan 7dfc9e1cd4 Issue 6760: Clarify args handling for subprocess.Popen. Patch by Chris Rebert 2010-02-04 12:43:58 +00:00
R. David Murray f8f42075df Explicitly mention the default value for formatdate's usegmt parameter. 2010-02-03 13:36:23 +00:00
Tarek Ziadé 1b93fc1077 first version of the sysconfig module documentation 2010-02-02 22:27:58 +00:00
Michael Foord e70c72c06b Minor modification to unittest documentation. 2010-01-31 19:59:26 +00:00
Georg Brandl 979d79cd31 Fix-up ftplib documentation:
move exception descriptions to toplevel, not inside a class
remove attribution in "versionadded"
spell and grammar check docstring of FTP_TLS
2010-01-31 18:51:49 +00:00
Benjamin Peterson 3fd2db9074 move distutils.rst to different toc 2010-01-31 18:09:34 +00:00
Georg Brandl 53ffca5afb #7802: fix invalid example (heh). 2010-01-30 17:57:48 +00:00
Victor Stinner 75d3fb1ebb #7801: fix xmlrpclib binary example, open the picture in binary mode 2010-01-30 02:00:26 +00:00
Ezio Melotti 7b4e02c862 #7765: typos 2010-01-27 20:25:11 +00:00
Jesse Noller 654ade3e6a Issue #6963: Added maxtasksperchild argument to multiprocessing.Pool 2010-01-27 03:05:57 +00:00
Eric Smith 096d0bf8b1 Fix type on getwindowsversion documentation. Thanks Taggnostr. 2010-01-27 00:55:16 +00:00
Eric Smith ee931b7253 Issue #7766: Change sys.getwindowsversion() return value to a named tuple and add the additional members returned in an OSVERSIONINFOEX structure. The new members are service_pack_major, service_pack_minor, suite_mask, and product_type. 2010-01-27 00:28:29 +00:00
Facundo Batista 47b66590f6 Added a note about Event.is_set() syntax being new to 2.6 2010-01-25 06:15:01 +00:00
Georg Brandl c3b0cd75b2 #7725: fix referencing issue. 2010-01-23 08:47:54 +00:00
Ezio Melotti 77a64e7159 #7746: rephrase a sentence 2010-01-21 20:50:57 +00:00
Georg Brandl 6cbb7f945a #7699: improve datetime docs: straightforward linking to strftime/strptime section, mark classmethods as such. 2010-01-17 08:42:30 +00:00
Ezio Melotti 5afe42b69b remove wrong markup 2010-01-16 19:36:42 +00:00
Antoine Pitrou 5a9112c0cc Issue #2846: Add support for gzip.GzipFile reading zero-padded files.
Patch by Brian Curtin.
2010-01-13 14:32:10 +00:00
Ezio Melotti d0ff51c43f #7685: typo 2010-01-13 00:25:03 +00:00
Alexandre Vassalotti b227f47b2b Added documentation for dictionary views fixer. 2010-01-12 18:25:33 +00:00
Alexandre Vassalotti 69eb51697c Issue #1967: Backport dictionary views. 2010-01-11 23:17:10 +00:00
R. David Murray 0e207dff31 Issue #7119: document that a program-generated Message object
tree may be mutated when serialized.
2010-01-10 17:41:28 +00:00
Brett Cannon 6fdd3dcb6a DeprecationWarning is now silent by default.
This was originally suggested by Guido, discussed on the stdlib-sig mailing
list, and given the OK by Guido directly to me. What this change essentially
means is that Python has taken a policy of silencing warnings that are only
of interest to developers by default. This should prevent users from seeing
warnings which are triggered by an application being run against a new
interpreter before the app developer has a chance to update their code.

Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
for helping with the issue.
2010-01-10 02:56:19 +00:00
Georg Brandl 8360b21270 #7422: make it clear that getargspec() only works on Python functions. 2010-01-09 09:47:11 +00:00
Georg Brandl 705a358265 #5950: document that zip files with comments are unsupported in zipimport. 2010-01-06 18:26:08 +00:00
Ezio Melotti b9c3ed4f82 #3340: document print/get_usage and print/get_version 2010-01-04 21:43:02 +00:00
Ezio Melotti 81982566aa fixed markup errors 2010-01-04 09:00:11 +00:00
Ezio Melotti 5129ed38c3 #7618: fix highlight of code blocks 2010-01-03 09:01:27 +00:00
Gregory P. Smith 9d3252154f issue3972: HTTPConnection and HTTPSConnection now support a
source_address parameter.

Also cleans up an annotation in the socket documentation.
2010-01-03 02:06:07 +00:00
Gregory P. Smith 79a3eb1058 Adds an optional source_address parameter to socket.create_connection().
For use by issue3972.
2010-01-03 01:29:44 +00:00
Mark Dickinson 5a485c188e Clarify that the rect, phase and polar functions work with radians. 2010-01-02 14:29:52 +00:00
Georg Brandl b7953f00b1 We only support Windows NT derivatives now. 2009-12-30 19:03:00 +00:00
Ezio Melotti 569e61f351 #5511: Added the ability to use ZipFile as a context manager. Patch by Brian Curtin. 2009-12-30 06:14:51 +00:00
Georg Brandl fa1ffb69c4 #7595: fix typo in argument default constant. 2009-12-29 21:09:17 +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 0d19eaf1eb document new fix_callable behavior 2009-12-28 20:51:17 +00:00
Georg Brandl 66d8d69cd8 #7404: remove reference to non-existing example files. 2009-12-28 08:48:24 +00:00
Georg Brandl fe8df4fa35 #7586: fix typo. 2009-12-28 08:01:59 +00:00
Ezio Melotti 1ac1c39aca Updated sys.flags table in Doc 2009-12-25 02:12:01 +00:00
Ezio Melotti 9c236bfb9f Added markup and default arg, fixed example 2009-12-24 02:54:53 +00:00
Senthil Kumaran f9a21f43c4 Fix for Issue7570: Error in urllib2 example. 2009-12-24 02:18:14 +00:00
Benjamin Peterson 1c2353b0d9 builtin-ins -> builtins 2009-12-20 15:23:22 +00:00
Georg Brandl 6ab5d083f2 #7381: subprocess documentation and library docstring consistency fixes. 2009-12-20 14:33:20 +00:00
Senthil Kumaran 0732fd952b Document the headers parameter for set_tunnel. 2009-12-20 07:29:31 +00:00
Ezio Melotti 062d2b52f3 #7388: "python".capitalize() in the Doc 2009-12-19 22:41:49 +00:00
Antoine Pitrou e812d29b52 Issue #7545: improve documentation of the `buffering` argument in io.open(). 2009-12-19 21:01:10 +00:00
Georg Brandl d86e9d7616 #7480: remove tautology. 2009-12-19 18:20:18 +00:00
Georg Brandl c51d1f0862 #7479: add note about function availability on Unices. 2009-12-19 18:16:31 +00:00
Georg Brandl 8b10f13aaf #7527: use standard versionadded tags. 2009-12-19 17:30:28 +00:00
Mark Dickinson 5ff37ae14b Issue #3366: Add error function and complementary error function to
math module.
2009-12-19 11:07:23 +00:00
Vinay Sajip 0c6a0e3318 Issue #7529: logging: Minor correction to documentation. 2009-12-17 14:52:00 +00:00
Mark Dickinson 9cae178f21 Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
2009-12-16 20:13:40 +00:00
Benjamin Peterson bf306cadd6 adverb 2009-12-15 03:25:27 +00:00
Mark Dickinson 9be87bc992 Issue #3366: Add lgamma function to math module. 2009-12-11 17:29:33 +00:00
Raymond Hettinger a5fd24e97d Add a reverse() method to collections.deque(). 2009-12-10 06:42:54 +00:00
Philip Jenvey 2627553afa #7177: clarify the potential PIPE deadlock warnings 2009-12-03 02:25:54 +00:00
Antoine Pitrou 30b3b35cba Issue #7333: The `posix` module gains an `initgroups()` function providing
access to the initgroups(3) C library call on Unix systems which implement
it.  Patch by Jean-Paul Calderone.
2009-12-02 20:37:54 +00:00
Georg Brandl 8d8f874c19 Fix versions and spacing. 2009-11-28 11:11:50 +00:00
Gregory P. Smith 761ae0b8cc fix typo 2009-11-27 17:51:12 +00:00
Martin v. Löwis 50ea4565bd Issue #6508: Add posix.{getresuid,getresgid,setresuid,setresgid}. 2009-11-27 13:56:01 +00:00
Antoine Pitrou acbe3bdbab Issue #6845: Add restart support for binary upload in ftplib. The
`storbinary()` method of FTP and FTP_TLS objects gains an optional `rest`
argument.  Patch by Pablo Mouzo.

(note: the patch also adds a test for the rest argument in retrbinary())
2009-11-27 13:18:34 +00:00
Georg Brandl 2600a33219 #7400: typo. 2009-11-26 20:48:25 +00:00
Antoine Pitrou e236c3c8c2 Forgot to add a `versionadded` tag 2009-11-25 23:03:22 +00:00
Antoine Pitrou bcfaf8007d Issue #5788: `datetime.timedelta` objects get a new `total_seconds()` method returning
the total number of seconds in the duration.  Patch by Brian Quinlan.
2009-11-25 22:59:36 +00:00
Mark Dickinson 6b87f117ca Fix some documentation examples involving the repr of a float. 2009-11-24 14:27:02 +00:00
Mark Dickinson 9dd5e16c5d Issue #7117, continued: Remove substitution of %g-style formatting for
%f-style formatting, which used to occur at high precision.  Float formatting
should now be consistent between 2.7 and 3.1.
2009-11-23 20:54:09 +00:00
Georg Brandl faa25999a3 #7345: fix arguments of formatyear(). 2009-11-23 19:53:19 +00:00
Jesse Noller 6c3767445c issue5738: The distribution example was confusing, and out of date. It's too large to include inline in the docs as well. It belongs in an addons module outside the stdlib. Removing. 2009-11-21 14:01:56 +00:00
R. David Murray 4823961596 Issue 7363: fix indentation in socketserver udpserver example. 2009-11-20 13:29:43 +00:00
Raymond Hettinger 9eac119ba8 Fix docstrings for itertools combinatoric functions. 2009-11-19 01:22:04 +00:00
Georg Brandl 1136ff541e Fix markup. 2009-11-18 20:05:15 +00:00
Georg Brandl 8c18a47e77 upcase Python 2009-11-18 19:39:14 +00:00
Georg Brandl d3571c8d59 #7302: fix link. 2009-11-16 16:44:05 +00:00
Antoine Pitrou ccd5e02d2b Issue #2054: ftplib now provides an FTP_TLS class to do secure FTP using
TLS or SSL.  Patch by Giampaolo Rodola'.
2009-11-15 17:22:09 +00:00
Antoine Pitrou d5b34d4597 Issue #4969: The mimetypes module now reads the MIME database from
the registry under Windows.  Patch by Gabriel Genellina.
2009-11-15 14:10:48 +00:00
Nick Coghlan 49868cb686 Issue #6816: expose the zipfile and directory execution mechanism to Python code via the runpy module. Also consolidated some script execution functionality in the test harness into a helper module and removed some implementation details from the runpy module documentation. 2009-11-15 07:30:34 +00:00
Georg Brandl b6fb8dcbce Fix terminology. 2009-11-14 11:50:51 +00:00
Benjamin Peterson 2fb77bd6f5 revert r76243; I was right, actually :) 2009-11-13 22:56:00 +00:00
Benjamin Peterson c4a346cc55 never mind about eval mode in this case 2009-11-13 22:17:17 +00:00
Benjamin Peterson e36199b49d fix several compile() issues by translating newlines in the tokenizer 2009-11-12 23:39:44 +00:00
Georg Brandl 7232d41569 Give the profile module a module directive. 2009-11-12 08:29:46 +00:00
Raymond Hettinger 610326d48a Show example of how to make a sorted dictionary 2009-11-10 19:35:55 +00:00
R. David Murray a5dcf2125f Remove redundant sentence. 2009-11-09 14:18:14 +00:00
Benjamin Peterson 0ac6942a76 discuss how to use -p 2009-11-09 04:10:53 +00:00
Georg Brandl 1a22e87a30 #7271: fix typo. 2009-11-07 08:26:07 +00:00
Georg Brandl efc285880c #7259: show correct equivalent for operator.i* operations in docstring; fix minor issues in operator docs. 2009-11-04 07:38:12 +00:00
Georg Brandl a6714b2887 #7256: add versionadded tags for functions copied from cgi. 2009-11-03 18:34:27 +00:00
Mark Dickinson 5b54432b1d Fix doc typo reported by Arfrever. 2009-11-03 16:26:14 +00:00
Skip Montanaro 6418577bb5 typo (space-o?) 2009-11-03 02:43:59 +00:00
Antoine Pitrou 2c970a2ba2 Remove official documentation entry for thread._count() and make the
docstring more descriptive instead.
2009-10-30 22:19:09 +00:00
Antoine Pitrou 59c44f36e0 Issue #7222: Make thread "reaping" more reliable so that reference
leak-chasing test runs give sensible results. The previous method of
reaping threads could return successfully while some Thread objects were
still referenced. This also introduces a new private function:
:func:hread._count().
2009-10-30 17:07:08 +00:00
Vinay Sajip a7d44001b1 Issue 7199: Documentation made slightly more consistent w.r.t. logging level enumeration. 2009-10-28 23:28:16 +00:00
Mark Dickinson da8652d920 Issue #7117 (backport py3k float repr) continued:
Add sys.float_repr_style attribute ('short' if short float
repr is in used;  'legacy' otherwise).
2009-10-24 14:01:08 +00:00
Georg Brandl 5460ff9d9f Fix markup. 2009-10-24 10:04:19 +00:00
Fred Drake d617cba62d add further note about what's passed to optionxform 2009-10-23 13:04:51 +00:00
Georg Brandl dc0205296b #7188: fix optionxform() docs. 2009-10-23 08:14:44 +00:00
Georg Brandl d1bed8e5ef #6977: getopt does not support optional option arguments. 2009-10-22 15:54:35 +00:00
Georg Brandl 76d6d4a010 #7156: document curses as Unix-only. 2009-10-22 15:52:15 +00:00
Georg Brandl f4ffae2b2a #7035: improve docs of the various <method>_errors() functions, and give them docstrings. 2009-10-22 15:42:32 +00:00
Georg Brandl c5026f8a7b #7088: document new functions in signal as Unix-only. 2009-10-22 15:04:09 +00:00
Georg Brandl 6c14e587f5 Use "impl-detail" directive where applicable. 2009-10-22 11:48:10 +00:00
Georg Brandl 08be2e2f35 Add a new directive marking up implementation details and start using it. 2009-10-22 08:05:04 +00:00
Georg Brandl ceb32af23f Fix markup. 2009-10-22 07:56:02 +00:00
Georg Brandl 0968fd679b Fix punctuation. 2009-10-22 07:05:48 +00:00
Benjamin Peterson ff81cb812d rewrite to be nice to other implementations 2009-10-22 02:36:47 +00:00
Georg Brandl cf842ad418 #7170: fix explanation about non-weakrefable builtin types. 2009-10-21 07:15:59 +00:00
Benjamin Peterson eb7c377659 clarify buffer arg #7178 2009-10-20 21:55:17 +00:00
Benjamin Peterson e047d7953f use property api 2009-10-20 03:14:10 +00:00
Georg Brandl 11abfe640f Fix missing word. 2009-10-18 07:58:12 +00:00
Senthil Kumaran 83f1ef681f Fix a typo. 2009-10-18 01:58:45 +00:00
Senthil Kumaran 45a505f7e7 Fix for Issue7155 - urllib do not document default use of system proxy configuration 2009-10-18 01:24:41 +00:00
Georg Brandl 9b4e5820cb #7116: str.join() takes an iterable. 2009-10-14 18:48:32 +00:00