Commit Graph

10808 Commits

Author SHA1 Message Date
Tarek Ziadé 1b93fc1077 first version of the sysconfig module documentation 2010-02-02 22:27:58 +00:00
Andrew M. Kuchling 039c899388 Add various items 2010-02-01 02:04:26 +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
Ezio Melotti 91d26b43c9 Use the correct markup for args 2010-01-30 13:27:05 +00:00
Ezio Melotti 99af64820a Relocate a couple of stars and remove redundant backticks 2010-01-30 13:08:54 +00:00
Mark Dickinson a36507c64c Issue #7767: Add new C-API function PyLong_AsLongLongAndOverflow, a
long long variant of PyLong_AsLongAndOverflow.  Patch by Case Van
Horsen.
2010-01-30 10:08:33 +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
Georg Brandl 6878ee8d43 #7762: fix refcount annotation of PyUnicode_Tailmatch(). 2010-01-23 08:43:31 +00:00
Ezio Melotti 77a64e7159 #7746: rephrase a sentence 2010-01-21 20:50:57 +00:00
Benjamin Peterson 9179dab3f4 data descriptors do not override the class dictionary if __get__ is not defined
Adjust documentation and add a test to verify this behavior.

See http://mail.python.org/pipermail/python-dev/2010-January/095637.html for
discussion.
2010-01-18 23:07:56 +00:00
Georg Brandl 42eaded701 Fix internal reference. 2010-01-17 23:33:53 +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
Alexandre Vassalotti b646547bb4 Issue #2333: Backport set and dict comprehensions syntax. 2010-01-11 22:36:12 +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
Alexandre Vassalotti ee936a2130 Issue #2335: Backport set literals syntax from Python 3.x. 2010-01-09 23:35:54 +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 96aa3ca242 #7653: clarify how the PythonPath registry key should look like. 2010-01-07 21:48:47 +00:00
Georg Brandl 54fd8ae0a3 Fix description for Py_GetPath(); it sounded like it always returned sys.path. 2010-01-07 20:54:45 +00:00
Mark Dickinson bdd863d062 Eric Smith was missing fro m the issue 7117 whatsnew attribution. 2010-01-07 09:28:29 +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 722a8a95b7 :stmt: -> :keyword: 2010-01-03 09:09:55 +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
Andrew M. Kuchling 7f8ebdbad5 Add a few items 2010-01-03 01:15:21 +00:00
Gregory P. Smith b56fb12b74 Correct documentation for s* z* and w*, the argument that should be passed
is the address of a Py_buffer, not a Py_buffer *.
2010-01-02 21:29:54 +00:00
Mark Dickinson 5a485c188e Clarify that the rect, phase and polar functions work with radians. 2010-01-02 14:29:52 +00:00
Ezio Melotti 9db77468bc more copyright year updates 2010-01-01 04:16:42 +00:00
Brett Cannon f31d1a0577 Add some missing command-line options to the main list. All but -V were already
documented. Left -V undocumented for now (and -U was already undocumented).
2010-01-01 01:44:57 +00:00
Benjamin Peterson ae9a0a0f27 add another advancement 2009-12-31 16:49:37 +00:00
Andrew M. Kuchling a7f594712e Add various items 2009-12-31 16:38:53 +00:00
Andrew M. Kuchling 91e0db8404 Add some items 2009-12-31 16:17:05 +00:00
Benjamin Peterson 0f02d3933b check if the attribute is set before deleting it with T_OBJECT_EX (fixes #7604)
Also, add a note to the docs about the better behavior of T_OBJECT_EX as
compared to T_OBJECT.
2009-12-30 19:34:10 +00:00
Georg Brandl b7953f00b1 We only support Windows NT derivatives now. 2009-12-30 19:03:00 +00:00
Georg Brandl e5ee7e38e8 #7602: improve "clean" and "checkout" targets now that all tools are in externals. 2009-12-30 18:36:09 +00:00
Georg Brandl 5a5fee8ce3 #7487: update Pygments version. 2009-12-30 18:32:50 +00:00
Georg Brandl 95049f2561 Use new Pygments version. 2009-12-30 16:21:26 +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
Andrew M. Kuchling 3c8a24e6d9 Add various items 2009-12-29 23:41:04 +00:00
Georg Brandl fa1ffb69c4 #7595: fix typo in argument default constant. 2009-12-29 21:09:17 +00:00
Andrew M. Kuchling b4a4f5167b Various additions 2009-12-29 20:10:16 +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 740cdc3a9f #7033: add new API function PyErr_NewExceptionWithDoc, for easily giving new exceptions a docstring. 2009-12-28 08:34:58 +00:00
Georg Brandl fe8df4fa35 #7586: fix typo. 2009-12-28 08:01:59 +00:00
Georg Brandl 1686f3499f #7577: fix signature of PyBuffer_FillInfo(). 2009-12-28 07:59:05 +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
Brett Cannon ca2dc4798b Make a word plural. 2009-12-22 02:37:37 +00:00
Mark Dickinson e31d300664 Issue #7528: Backport PyLong_AsLongAndOverflow from py3k to trunk.
Thanks Case Van Horsen for the patch.
2009-12-21 11:21:25 +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
Georg Brandl 819a8fa0f6 Small indentation fix. 2009-12-20 14:28:05 +00:00
Georg Brandl 0cedb4bffa #7495: backport Programming FAQ review to trunk. 2009-12-20 14:20:16 +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 27d19030c6 #7493: review of Design FAQ by Florent Xicluna. 2009-12-19 17:43:33 +00:00
Georg Brandl 670e5969cb #7521: remove Py_GetBuildNumber(), which was removed in favor of Py_GetBuildInfo(). 2009-12-19 17:34:32 +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
R. David Murray 96228739c5 Clarify phrasing that explains that there are currently two branches. 2009-12-14 02:50:32 +00:00
Tarek Ziadé 4f786b20ab reorganized the distutils doc a bit : the MANIFEST.in template system has its own section now. This is easier to find and follow 2009-12-13 23:24:13 +00:00
Benjamin Peterson db9352f00f avoid having to update this statement all the time 2009-12-13 21:15:31 +00:00
Benjamin Peterson 3e6eb59790 add 2.6.x point releases 2009-12-13 14:18:08 +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
Tarek Ziadé a939ecd95b Issue #7457: added a read_pkg_file method to distutils.dist.DistributionMetadata so we can read back PKG-INFO files 2009-12-08 08:56:49 +00:00
Andrew M. Kuchling 8f254e7f6e Typo fix; grammar fix 2009-12-08 02:37:05 +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
Andrew M. Kuchling 5a73ff81f1 Markup fixes 2009-12-02 14:27:11 +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
Mark Dickinson f058d2dc08 Issue #7369: Fibonacci series should start at 0 in tutorial example. 2009-11-23 16:39:05 +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
Antoine Pitrou c029942ea0 Mention Giampolo R's new FTP TLS support in the what's new file 2009-11-18 20:20:46 +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 0516f81386 Make separate section for deprecations in 2.7 whatsnew. 2009-11-18 18:52:35 +00:00
Georg Brandl a17f60242f Make separate section for deprecations in 2.6 whatsnew. 2009-11-18 18:52:23 +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
Mark Dickinson 82864d1ab1 Issue #7228: Add '%lld' and '%llu' support to PyFormat_FromString,
PyFormat_FromStringV and PyErr_Format.
2009-11-15 16:18:58 +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 cde5115f26 use Sphinx 0.6.3 2009-11-13 23:11:54 +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
Ezio Melotti c4cd6d3765 fix highlight in the datetime example 2009-11-12 09:10:02 +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 890643843d Update the FAQ entry that explains that assignments in the local scope
shadow variables in the outer scope (issue 7290).
2009-11-10 18:58:02 +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
Mark Dickinson 09823a2e21 Deprecate PyOS_ascii_strtod and PyOS_ascii_atof, and document the replacement function PyOS_string_to_double. 2009-10-31 09:42:39 +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
Tarek Ziadé 40b998b05d Fixed #1180: Option to ignore ~/.pydistutils.cfg in Distutils 2009-10-27 23:06:10 +00:00
Georg Brandl 5098bc9448 Fix a strange mis-edit. 2009-10-27 15:10:22 +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
Mark Dickinson bb28285ea2 Issue #7117: Prepare for backport of py3k float repr.
Add the Python/dtoa.c file containing the main algorithms;
add corresponding include file and include in Python.h;
include license information for Python/dtoa.c;
add dtoa.c and dtoa.h to Makefile.
2009-10-24 12:13:30 +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 60bae6f123 Make printout margin important. 2009-10-22 16:20:55 +00:00