summaryrefslogtreecommitdiffstats
path: root/Doc/lib
Commit message (Collapse)AuthorAgeFilesLines
* SF bug 990749: os constants missingTim Peters2004-07-151-7/+10
| | | | | | | A LaTeX comment identified the 6 os.O_XXX constants the docs claimed are available on Windows but aren't. The bug report listed the same 6. Split these non-Windows constants into a different table with a possibly correct "Availability:" claim.
* Improve examples for working with the context API.Raymond Hettinger2004-07-141-6/+6
|
* Implemented thread-local data as proposed on python-dev:Jim Fulton2004-07-141-0/+19
| | | | http://mail.python.org/pipermail/python-dev/2004-June/045785.html
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-1/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* WordsmithingAndrew M. Kuchling2004-07-131-15/+15
|
* Add another point in the "Restrictions" section about how the handling of FTPBrett Cannon2004-07-131-0/+17
| | | | | | | URLs will seemingly succeed to read a URL that points to a file whose permissions you do not have to read. Backport candidate once everyone agrees with the wording.
* Fixed minor bugs in the example configuration fileVinay Sajip2004-07-121-4/+4
|
* Small elaboration and typo fixes.Raymond Hettinger2004-07-121-5/+19
|
* Bug #788520: Queue class has logic error when non-blockingTim Peters2004-07-121-3/+3
| | | | | | | | | | | | | | | | | | | | I don't agree it had a bug (see the report), so this is *not* a candidate for backporting, but the docs were confusing and the Queue implementation was old enough to vote. Rewrote put/put_nowait/get/get_nowait from scratch, to use a pair of Conditions (not_full and not_empty), sharing a common mutex. The code is 1/4 the size now, and 6.25x easier to understand. For blocking with timeout, we also get to reuse (indirectly) the tedious timeout code from threading.Condition. The Full and Empty exceptions raised by non-blocking calls are now easy (instead of nearly impossible) to explain truthfully: Full is raised if and only if the Queue truly is full when the non-blocking put call checks the queue size, and similarly for Empty versus non-blocking get. What I don't know is whether the new implementation is slower (or faster) than the old one. I don't really care. Anyone who cares a lot is encouraged to check that.
* Added documentation for the "smtpd" module.Fred Drake2004-07-112-0/+64
| | | | Closes SF bug #450803.
* Style nit.Raymond Hettinger2004-07-111-2/+2
|
* Minor improvements, fixups and wording changes everywhere.Raymond Hettinger2004-07-111-163/+169
|
* Patch 851752 (fixes bug 820583)Kurt B. Kaiser2004-07-111-3/+10
| | | | | | | | | | | | Patch by John J Lee Reviewed by Jeff Epler / KBK Doc built OK. urlopen() may return None if no handler handles the request. Also clarify what install_opener does. M liburllib2.tex
* Fix minor error in example.Brett Cannon2004-07-101-1/+1
|
* Clarify docs for inspect.getargspec() that the fourth value is None when thereBrett Cannon2004-07-101-3/+3
| | | | are no default arguments for the function.
* [Patch #969900] Various corrections and updates to cookielib docsAndrew M. Kuchling2004-07-101-35/+41
|
* [Patch #972310] Apply correction to docsAndrew M. Kuchling2004-07-101-10/+3
|
* [Bug 949832] Fix example; edit sentenceAndrew M. Kuchling2004-07-101-3/+3
|
* Improve Context construction and representation:Raymond Hettinger2004-07-101-15/+15
| | | | | | | | | | | | | * Rename "trap_enablers" to just "traps". * Simplify names of "settraps" and "setflags" to just "traps" and "flags". * Show "capitals" in the context representation * Simplify the Context constructor to match its repr form so that only the set flags and traps need to be listed. * Representation can now be run through eval(). Improve the error message when the Decimal constructor is given a float. The test suite no longer needs a duplicate reset_flags method.
* SF bug #987486: fix typo.Raymond Hettinger2004-07-101-1/+1
|
* Module and tests:Raymond Hettinger2004-07-091-47/+7
| | | | | | | | | | | | * Map conditions to related signals. * Make contexts unhashable. * Eliminate used "default" attribute in exception definitions. * Eliminate the _filterfunc in favor of a straight list. Docs: * Eliminate documented references to conditions that are not signals. * Eliminate parenthetical notes such as "1/0 --> Inf" which are no longer true with the new defaults.
* Incorporate Facundo's suggestions.Raymond Hettinger2004-07-091-6/+11
|
* show how easy it is to manipulate individual columns - from a request onSkip Montanaro2004-07-081-0/+9
| | | | c.l.py
* Fix markup, typos, and nits.Raymond Hettinger2004-07-081-56/+68
|
* Replaced some tabs with spaces in verbatim section.Vinay Sajip2004-07-071-7/+7
|
* Demonstrate how to round final result.Raymond Hettinger2004-07-061-17/+17
|
* Expand examples to show polymorphismRaymond Hettinger2004-07-051-2/+14
|
* Simplify examples.Raymond Hettinger2004-07-051-5/+2
|
* Doc tested the recipes.Raymond Hettinger2004-07-051-5/+10
|
* Fix typoRaymond Hettinger2004-07-051-1/+1
|
* * Added missing info on construction from a tuple.Raymond Hettinger2004-07-051-16/+136
| | | | * Added a recipe section.
* Add decimal docs to the core.Raymond Hettinger2004-07-052-0/+883
|
* Textual change to make the doc reflect realityNicholas Bastin2004-07-041-1/+1
|
* Moved example section up to just after the section on Logger objects, and ↵Vinay Sajip2004-07-031-52/+118
| | | | changed it to use the new basicConfig() API
* Make weak references subclassable:Fred Drake2004-07-021-2/+41
| | | | | | | | | | | | | | | | | | | | | | - weakref.ref and weakref.ReferenceType will become aliases for each other - weakref.ref will be a modern, new-style class with proper __new__ and __init__ methods - weakref.WeakValueDictionary will have a lighter memory footprint, using a new weakref.ref subclass to associate the key with the value, allowing us to have only a single object of overhead for each dictionary entry (currently, there are 3 objects of overhead per entry: a weakref to the value, a weakref to the dictionary, and a function object used as a weakref callback; the weakref to the dictionary could be avoided without this change) - a new macro, PyWeakref_CheckRefExact(), will be added - PyWeakref_CheckRef() will check for subclasses of weakref.ref This closes SF patch #983019.
* SF Bug #215126: Over restricted type checking on eval() functionRaymond Hettinger2004-07-021-2/+6
| | | | | | The builtin eval() function now accepts any mapping for the locals argument. Time sensitive steps guarded by PyDict_CheckExact() to keep from slowing down the normal case. My timings so no measurable impact.
* add cp866 rowSkip Montanaro2004-07-021-0/+4
|
* Document that encode() and decode() raise UnicodeErrorWalter Dörwald2004-07-011-5/+10
| | | | | | instead of ValueError. Add a note about error handling schemes added by PEP 293.
* link to the codecs page from the "".encode() description.Skip Montanaro2004-07-012-2/+3
|
* use file() in preference to open()Skip Montanaro2004-06-301-3/+3
|
* Check in the updated version of patch #957240, which doesn't relyMichael W. Hudson2004-06-301-14/+14
| | | | on the marshalling characteristics of infinities.
* [Bug #978556] Update SHA spec URL; bugfix candidateAndrew M. Kuchling2004-06-291-7/+5
|
* Added socket.getservbyport(), and make its second argument and that ofBarry Warsaw2004-06-281-3/+9
| | | | getservbyname() optional. Update the tests and the docs.
* Patch #923098: Share interned strings in marshal.Martin v. Löwis2004-06-271-1/+17
|
* move the note about the bsddb185 module above the "See also" box; thatFred Drake2004-06-241-4/+5
| | | | | should always go last in the relevant section's main content, but before child sections
* Improve the documented advice on how to best use heapq.heapreplace().Raymond Hettinger2004-06-201-1/+5
|
* Add apparently missing word for InvalidStateError definition.Brett Cannon2004-06-171-1/+1
| | | | Closes bug #973901. Thanks Brian Gough.
* add missing closing quote.Michael W. Hudson2004-06-171-1/+1
|
* Comment that getfilesystemencoding returns mbcs even on NT+. Fixes #964870.Martin v. Löwis2004-06-161-1/+4
|
* Reverse argument order for nsmallest() and nlargest().Raymond Hettinger2004-06-151-2/+2
| | | | Reads better when the iterable is a generator expression.