Commit Graph

9843 Commits

Author SHA1 Message Date
Nick Coghlan eae2da1da7 Issue 9147: Add dis.code_info() 2010-08-17 08:03:36 +00:00
Nick Coghlan 9887683f74 Document and test the resolution of issue 3445 (tolerate missing attributes in functools.update_wrapper, previously implemented as a side effect of the __annotations__ copying patch) and implement issue 9567 (add a __wrapped__ attribute when using update_wrapper) 2010-08-17 06:17:18 +00:00
Nick Coghlan 632a0c1476 Remove some lingering remnants of the short-lived functools.lfu_cache 2010-08-17 05:22:50 +00:00
Benjamin Peterson ad1e0c5e5f added versionadded 2010-08-17 03:37:20 +00:00
Benjamin Peterson 45c257f193 add support for abstract class and static methods #5867 2010-08-17 00:52:52 +00:00
Victor Stinner ad5b1df67f Add versionadded tag to PySys_FormatStd*() functions doc 2010-08-16 18:39:49 +00:00
Victor Stinner 79766636b6 Issue #9599: Create PySys_FormatStdout() and PySys_FormatStderr()
Write a message formatted by PyUnicode_FromFormatV() to sys.stdout and
sys.stderr.
2010-08-16 17:36:42 +00:00
Florent Xicluna e3c39ae53e Replace readfp() with read_file() in configparser documentation. 2010-08-15 20:21:26 +00:00
Mark Dickinson 8858d2cb84 Clarify whatsnew entry for short float repr: roundtripping is not a new feature in 2.7. 2010-08-15 09:43:29 +00:00
Raymond Hettinger f309828175 Remove the lfu_cache. Add more tests. 2010-08-15 03:30:45 +00:00
Éric Araujo a893927491 Fix typo 2010-08-14 23:44:13 +00:00
Florent Xicluna ac521078d7 Remove bad merge (from svnmerge r82301) 2010-08-14 18:03:19 +00:00
Georg Brandl 54ebb78171 Typo fix. 2010-08-14 15:48:49 +00:00
Georg Brandl 8e27fcea07 Wording fix. 2010-08-14 15:46:15 +00:00
Éric Araujo d7fc374a7a Oops, fix typo 2010-08-14 05:00:18 +00:00
Éric Araujo 71428876ea Fix reference (follow-up to #9061) 2010-08-14 04:55:45 +00:00
Éric Araujo a85e2175bb Manually merge r83995: Fix version{added,changed} and spacing in NEWS 2010-08-14 03:59:54 +00:00
Éric Araujo da668ff24f Use a marker in generated MANIFEST files, don't touch files without it. Fixes #8688. 2010-08-14 02:30:34 +00:00
Victor Stinner 47fcb5b4c3 Issue #9542: Create PyUnicode_FSDecoder() function
It's a ParseTuple converter: decode bytes objects to unicode using
PyUnicode_DecodeFSDefaultAndSize(); str objects are output as-is.

 * Don't specify surrogateescape error handler in the comments nor the
   documentation, but PyUnicode_DecodeFSDefaultAndSize() and
   PyUnicode_EncodeFSDefault() because these functions use strict error handler
   for the mbcs encoding (on Windows).
 * Remove PyUnicode_FSConverter() comment in unicodeobject.c to avoid
   inconsistency with unicodeobject.h.
2010-08-13 23:59:58 +00:00
Antoine Pitrou 6fdb74f0ae Re-apply r83871. 2010-08-13 16:26:40 +00:00
Georg Brandl 4d2240915f Fix copy-paste error. 2010-08-13 15:10:49 +00:00
Victor Stinner 4a2b7a1b14 Issue #9425: Create PyErr_WarnFormat() function
Similar to PyErr_WarnEx() but use PyUnicode_FromFormatV() to format the warning
message.

Strip also some trailing spaces.
2010-08-13 14:03:48 +00:00
Victor Stinner 3603cc5fdb Issue #9425: PyFile_FromFd() ignores the name argument
This function is only by imp.find_module() which does return the filename in a
separated variable.
2010-08-13 13:34:52 +00:00
Antoine Pitrou 6e451df800 Followup to r83869 and issue #8524: rename socket.forget() to socket.detach()
and make it return the file descriptor.
2010-08-09 20:39:54 +00:00
Senthil Kumaran f0769e8bd0 Fix Issue7007 - Use percent-encoded consistently instead of URL Encoded variations. Docs changed. 2010-08-09 19:53:52 +00:00
Fred Drake a492362f9a issue #9452:
Add read_file, read_string, and read_dict to the configparser API;
new source attribute to exceptions.
2010-08-09 12:52:45 +00:00
Antoine Pitrou f14c263280 Also temporarily revert r83871, to fix compilation on buildbots 2010-08-09 12:47:33 +00:00
Benjamin Peterson cca65313c4 use 3 space indents 2010-08-09 02:13:10 +00:00
Raymond Hettinger 5b0c1e07ca Issue 7846: fnmatch cache can grow without bound
Updated to solution to use the functools.lru_cache().
Restores the API so that purge() is not needed
(because the cache never gets big).
2010-08-09 02:07:15 +00:00
Antoine Pitrou e43f9d0ed6 Issue #8524: Add a forget() method to socket objects, so as to put the
socket into the closed state without closing the underlying file
descriptor.
2010-08-08 23:24:50 +00:00
Antoine Pitrou 696e03553b Issue #477863: Print a warning at shutdown if gc.garbage is not empty. 2010-08-08 22:18:46 +00:00
Florent Xicluna c17f17294f Issue #8047: Fix the xml.etree serializer to return bytes by default.
Use ``encoding="unicode"`` to generate a Unicode string.
2010-08-08 19:48:29 +00:00
Raymond Hettinger afdeca980d Issue #4570: Clean-up tutorial example 2010-08-08 01:30:45 +00:00
Raymond Hettinger d331ce9e66 Issue #9507: Named tuple repr will now automatically display the right
name in a tuple subclass.
2010-08-08 01:13:42 +00:00
Raymond Hettinger a6b76ba52e Improve readability of collections docs by adding a summary table
at the top and by list concrete classes before abstract base classes.
2010-08-08 00:29:08 +00:00
Raymond Hettinger 648e725712 Fix typo 2010-08-07 23:37:37 +00:00
Raymond Hettinger 0e833c3227 Document implementation notes for priority queues 2010-08-07 23:31:27 +00:00
Raymond Hettinger 769b6d3009 Clean-up docstring in examples. 2010-08-07 21:31:55 +00:00
Raymond Hettinger 87c9d6cf9c Improve the docs for bisect to cover common searching tasks. 2010-08-07 07:36:55 +00:00
Raymond Hettinger 08d01eedef Add partition recipe to itertools docs. 2010-08-07 05:36:53 +00:00
Raymond Hettinger e9499aef0a Fix markup 2010-08-07 04:19:49 +00:00
Raymond Hettinger 86f9613957 Improve the whatsnew article on the lru/lfu cache decorators. 2010-08-06 23:23:49 +00:00
Brian Curtin ef9efbd69c Fix #9324: Add parameter validation to signal.signal on Windows in order
to prevent crashes.
2010-08-06 19:27:32 +00:00
Gerhard Häring c34d76cdc3 Issue #3854: Documented using the sqlite3 module with multiple threads. 2010-08-06 06:12:05 +00:00
Brian Curtin f045d775fd Issue #9524: Document that two CTRL* signals are meant for use only
with os.kill.
2010-08-05 18:56:00 +00:00
Alexandre Vassalotti ae7801813c Issue 5077: Add documentation for operator fixer.
Patch by Meador Inge.
2010-08-05 07:12:18 +00:00
Mark Dickinson 388122d43b Issue #9337: Make float.__str__ identical to float.__repr__.
(And similarly for complex numbers.)
2010-08-04 20:56:28 +00:00
Mark Dickinson 74f5902b04 Issue #9498: Add reference to sys.float_info from 'numeric types' docs.
Thanks Yitz Gale.
2010-08-04 18:42:43 +00:00
Antoine Pitrou 560f7647ce Issue #8814: function annotations (the `__annotations__` attribute)
are now included in the set of attributes copied by default by
functools.wraps and functools.update_wrapper.  Patch by Terrence Cole.
2010-08-04 18:28:02 +00:00
Senthil Kumaran 84c7d9f87b Fix Issue754016 - urlparse goes wrong with IP:port without scheme 2010-08-04 04:50:44 +00:00
R. David Murray 88c49fe320 #9444: use first of prefix_chars for help opt instead of raising error
An argparse option parser created with a prefix_chars that did not
include a '-' would happily add -h and --help options, and then throw
an error when it tried to format the help because the - was an invalid
prefix character.  This patch makes it use the first character of
prefix_chars as the character for the help options if and only if '-'
is not one of the valid prefix_chars.

Fix by Theodore Turocy, unit tests by Catherine Devlin.
2010-08-03 17:56:09 +00:00
Georg Brandl 38557f2ac9 A couple of nits how to ignore errors. 2010-08-03 12:36:57 +00:00
Georg Brandl 2f27755f5d Get rid of UserWarnings when running Sphinx from tools dir. 2010-08-03 12:31:59 +00:00
Georg Brandl 7cb1319688 Terminology fix: exceptions are raised, except in generator.throw(). 2010-08-03 12:06:29 +00:00
Georg Brandl 1800934285 #9061: warn that single quotes are never escaped. 2010-08-02 21:51:18 +00:00
Georg Brandl 98be996250 #9238: zipfile does handle archive comments. 2010-08-02 20:52:10 +00:00
Georg Brandl 17dafdc249 Clarify that abs() is not a namespace. 2010-08-02 20:44:34 +00:00
Georg Brandl 62e4231a27 #7797: be explicit about bytes-oriented interface of base64 functions. 2010-08-02 20:39:35 +00:00
Georg Brandl a1631b337a #9019: remove false (in 3k) claim about Headers updates. 2010-08-02 20:30:57 +00:00
Georg Brandl b2566cfbf9 #9111: document that do_help() looks at docstrings. 2010-08-02 20:27:20 +00:00
Georg Brandl 9c491c9b28 #9037: add example how to raise custom exceptions from C code. 2010-08-02 20:21:21 +00:00
Georg Brandl 8477f82c3e #8648: document UTF-7 codec functions. 2010-08-02 20:05:19 +00:00
Georg Brandl 0c7ade2fe3 Remove redundant information. 2010-08-02 19:39:17 +00:00
Georg Brandl c589a70e17 #9438: clarify that constant names also cannot be assigned as attributes. 2010-08-02 19:36:36 +00:00
Georg Brandl 9499bb76a3 Remove XXX comment that was displayed. 2010-08-02 19:35:06 +00:00
Georg Brandl 7d180a0da1 #9451: strengthen warning about __*__ special name usage. 2010-08-02 19:32:43 +00:00
Georg Brandl 7528b9b8ac #8172: how does one use a property? 2010-08-02 19:23:34 +00:00
Georg Brandl 353ebce2a0 #7386: add example that shows that trailing path separators are stripped. 2010-08-02 19:19:26 +00:00
Georg Brandl 56be37cef2 #7973: Fix distutils options spelling. 2010-08-02 19:16:34 +00:00
Georg Brandl 65e5f80c48 #6928: fix class docs w.r.t. new metaclasses. 2010-08-02 18:10:13 +00:00
Georg Brandl 502c3eb52f #8578: mention danger of not incref'ing weak referenced object. 2010-08-02 17:49:25 +00:00
Senthil Kumaran 790f831648 Rewording the getheader method of HTTPResponse. 2010-08-02 17:09:02 +00:00
Georg Brandl bfc8fe4d2f Document how to refer to decorators and decorator methods. 2010-08-02 12:54:24 +00:00
Senthil Kumaran 9f8dc4441f Fix Issue8572 - httplib getheader() throws error instead of default 2010-08-02 11:04:58 +00:00
Raymond Hettinger aed05eb6b8 Demonstrate the caching decorators in whatsnew. 2010-08-02 01:43:41 +00:00
Raymond Hettinger c8dc62d602 Add example applications for the LRU and LFU cache docs. 2010-08-02 00:59:14 +00:00
Georg Brandl 0bccc185b4 #8046: add context manager protocol support to mmap objects. Also add closed property. 2010-08-01 14:50:00 +00:00
Georg Brandl 0941012325 #8735: better explain semantics of *values* argument for parse(). 2010-08-01 06:53:28 +00:00
Antoine Pitrou d67075e06d Reorder entries by module lexicographic order 2010-07-31 22:48:02 +00:00
Georg Brandl bb1901529d Fix "Berkeley" name. 2010-07-31 21:41:42 +00:00
Georg Brandl 6cb7b6593e #1286: allow using fileinput.FileInput as context manager. 2010-07-31 20:08:15 +00:00
Georg Brandl e42a59daec #9442: do not document a specific format for sys.version; rather refer to version_info and the platform module. 2010-07-31 20:05:31 +00:00
Georg Brandl 721507b315 #5778: document that sys.version can contain a newline. 2010-07-31 19:59:55 +00:00
Georg Brandl 2e7346acc9 Re-commit r83327 now that the release is done. 2010-07-31 18:09:23 +00:00
Antoine Pitrou 4f2a0a8870 Add ssl changes to the 3.2 "what's new". 2010-07-31 18:08:33 +00:00
Georg Brandl f55c31594b #9430: document timedelta str() and repr(). 2010-07-31 11:40:07 +00:00
Georg Brandl 014e0ca58e Revert r83327. This will have to wait until after the alpha1 release. 2010-07-31 10:16:21 +00:00
Raymond Hettinger 4821ef89d4 Document how to change OrderedDict update order from first to last. 2010-07-31 10:14:41 +00:00
Raymond Hettinger 9e46ef819c Add functools.lfu_cache() and functools.lru_cache(). 2010-07-31 10:11:39 +00:00
Georg Brandl d5f2d6e8d6 After distutils doc reversal, change back **bold todo** items to XXX comments. 2010-07-31 09:15:10 +00:00
Tarek Ziadé 96c45a984f reverted distutils doc to its 3.1 state 2010-07-31 09:10:51 +00:00
Georg Brandl fff9021f75 Update copyright years and add releases to release list. Also update Sphinx version number. 2010-07-31 09:01:16 +00:00
Georg Brandl 80ff2adf88 Update pydoc topics and adapt Topics builder to Sphinx 1.0. 2010-07-31 08:27:46 +00:00
Georg Brandl 0a9c3e91dc Show the traceback line numbers as well as the current line numbers if an exception is being debugged. Courtesy of pdb++ by Antonio Cuni. Also document -> and >> markers for "list". 2010-07-30 18:46:38 +00:00
Georg Brandl e59ca2afe3 Add "longlist" and "source" commands, ideas borrowed from pdb++ by Antonio Cuni. 2010-07-30 17:04:28 +00:00
Georg Brandl d2fd4cae8e Add Breakpoint.bpformat(), which returns the info usually printed by bpprint(). Necessary for major refactoring of pdb output handling. 2010-07-30 15:01:23 +00:00
Mark Dickinson c4fbcdc4c8 Add note about surprising behaviour from round function. 2010-07-30 13:13:02 +00:00
Georg Brandl 7410dd11ef #809887: improve pdb feedback for breakpoint-related actions. Also add a functional test for these commands. 2010-07-30 12:01:20 +00:00
Georg Brandl a074523f3a #3143: enable "collapsible sidebar" feature of new Sphinx version. 2010-07-30 11:31:03 +00:00
Georg Brandl 46b9afc862 #1472251: remove addition of "\n" to code given to pdb.run[eval](), the bug in exec() that made this necessary has been fixed. Also document that you can give code objects to run() and runeval(), and add some tests to test_pdb. 2010-07-30 09:14:20 +00:00