summaryrefslogtreecommitdiffstats
path: root/Doc/lib
Commit message (Collapse)AuthorAgeFilesLines
* Enhance issubclass() and PyObject_IsSubclass() so that a tuple isWalter Dörwald2002-12-121-5/+7
| | | | | | | | | | | supported as the second argument. This has the same meaning as for isinstance(), i.e. issubclass(X, (A, B)) is equivalent to issubclass(X, A) or issubclass(X, B). Compared to isinstance(), this patch does not search the tuple recursively for classes, i.e. any entry in the tuple that is not a class, will result in a TypeError. This closes SF patch #649608.
* Patch #651621, approved by MvL.Just van Rossum2002-12-121-5/+7
| | | | | | | | | | | | | | | | This patch allows ZipFile.writestr() to be called with an archive file name instead of a ZipInfo instance: z = ZipFile("myarchive.zip", "w") z.writestr("foo/baz/file.ext", data) z.close() I found the old writestr() method very inconvenient for simple (but common) things. If called with a file name instead of a ZipInfo instance, the date_time is set to the current date/time, which makes sense to me for anonymous data.
* Patch #651006: Better explain what component might be empty.Martin v. Löwis2002-12-111-1/+1
|
* Update comments about the performance of xrange().Raymond Hettinger2002-12-111-2/+2
|
* Add support for binary pickles to the shelve module. In some situationsSkip Montanaro2002-12-081-4/+34
| | | | | | | | this can result in significantly smaller files. All classes as well as the open function now accept an optional binary parameter, which defaults to False for backward compatibility. Added a small test suite, updated the libref documentation (including documenting the exported classes and fixing a few other nits) and added a note about the change to Misc/NEWS.
* Remove extra ")" in example.Fred Drake2002-12-061-1/+1
|
* Typo: "dead lock" --> "deadlock"Fred Drake2002-12-062-2/+2
|
* Fix problem in example code. It's minor in this particular example,Fred Drake2002-12-031-1/+1
| | | | but can lead to mysterious problems in real applications.
* Fix example regular expressions that simulate scanf() constructs.Fred Drake2002-12-031-3/+3
|
* Patch #646824: Remove extra \end.Martin v. Löwis2002-12-031-1/+0
|
* Slightly improved version of patch #642578: "Expose PyImport_FrozenModulesJust van Rossum2002-11-291-0/+15
| | | | | in imp". This adds two functions to the imp module: get_frozenmodules() and set_frozenmodules().
* SF Patch 643443. Added dict.fromkeys(iterable, value=None), a classRaymond Hettinger2002-11-271-1/+8
| | | | method for constructing new dictionaries from sequences of keys.
* Clarify the interpretation of the __getstate__() return value forFred Drake2002-11-271-3/+9
| | | | | new-style classes. Closes SF bug #637941.
* * libbz2.texGustavo Niemeyer2002-11-251-1/+1
| | | | Fixed minor typo, suggested by Drew Perttula <drewp@bigasterisk.com>.
* Remove extra wordAndrew M. Kuchling2002-11-251-1/+1
|
* Add unidata_version. Bump generator version number.Martin v. Löwis2002-11-251-0/+7
|
* Patch #626485: Support Unicode normalization.Martin v. Löwis2002-11-231-3/+37
|
* Added change note about returning a dictionary based on keywordFred Drake2002-11-231-0/+2
| | | | arguments.
* Patch #642500 with slight modifications: allow keyword arguments inJust van Rossum2002-11-231-14/+21
| | | | | | | dict() constructor. Example: >>> dict(a=1, b=2) {'a': 1, 'b': 2} >>>
* Clarify the default setting for daemon_threads.Fred Drake2002-11-221-1/+3
|
* Fix markup.Fred Drake2002-11-221-1/+1
|
* Patch #486438: Make module argument to testmod optional.Martin v. Löwis2002-11-221-1/+5
|
* Patch #550765: Add daemon_threads flag.Martin v. Löwis2002-11-221-0/+8
|
* added details of new IMAP4_stream class; emphasised meaning of data part of ↵Piers Lauder2002-11-221-7/+29
| | | | command results; added proxyauth command description
* Patch #633547: Support plural forms. Do TODOs in test suite.Martin v. Löwis2002-11-211-0/+45
|
* NamedTemporaryFile: clarify behavior based on confusions noted by aTim Peters2002-11-211-2/+5
| | | | user, and spell out a x-platform use limitation.
* Document additional error handling names available through PEP 293.Walter Dörwald2002-11-191-2/+6
|
* Change int() so that passing a string, unicode, float or long argumentWalter Dörwald2002-11-191-0/+2
| | | | | | | that is outside the integer range no longer raises OverflowError, but returns a long object instead. This fixes SF bug http://www.python.org/sf/635115
* Improve comments. Clarify docs.Raymond Hettinger2002-11-181-11/+12
| | | | | Replace "type(0)" with "int". Replace "while 1" with "while True"
* Improve DictMixin.Raymond Hettinger2002-11-181-8/+9
| | | | | | | | | | | Replaced docstring with comments. Prevents subclass contamination. Added the missing __cmp__() method and a test for __cmp__(). Used try/except style in preference to has_key() followed by a look-up. Used iteritem() where possible to save creating a long key list and to save redundant lookups. Expanded .update() to look for the most helpful methods first and gradually work down to a mininum expected interface. Expanded documentation to be more clear on how to use the class.
* correct typo detected by Lee HansenSkip Montanaro2002-11-171-1/+1
|
* Better note that str.zfill() was added in 2.2.2 as well. ;-(Fred Drake2002-11-161-0/+1
|
* Document that a minor feature was added in 2.2.2. ;-(Fred Drake2002-11-161-0/+3
| | | | Closes SF bug #639170.
* SF 639138, Ref. calendar module in time docs by John J LeeNeal Norwitz2002-11-151-0/+3
| | | | Will backport.
* Fix critical markup errors.Fred Drake2002-11-151-2/+2
|
* Minor revisions to clarify the status of xreadlines(), change the wayFred Drake2002-11-151-15/+14
| | | | | iteration support was documented; the docs for __iter__() were just confusing.
* SF patch #520382: Expand shelve.py to have a full dictionary interfaceRaymond Hettinger2002-11-152-1/+28
| | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface.
* add libloggingSkip Montanaro2002-11-141-0/+1
|
* initial rough cut at documentation of logging module. This is basicallySkip Montanaro2002-11-141-0/+1139
| | | | just a conversion of pydoc.help(logging).
* Document struct_time and the field names.Fred Drake2002-11-131-14/+25
|
* Fix broken markup.Fred Drake2002-11-131-1/+1
| | | | Closes SF bug #637807.
* Typo: it's --> itsFred Drake2002-11-131-1/+1
| | | | Closes SF bug #637810.
* Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags.Fred Drake2002-11-121-5/+5
| | | | Closes SF bug #635595.
* SF patch 637176: list.sort crasherTim Peters2002-11-121-1/+7
| | | | | | | | | | | Armin Rigo's Draconian but effective fix for SF bug 453523: list.sort crasher slightly fiddled to catch more cases of list mutation. The dreaded internal "immutable list type" is gone! OTOH, if you look at a list *while* it's being sorted now, it will appear to be empty. Better than a core dump.
* Clarified documentation of tempnam().Fred Drake2002-11-121-0/+4
| | | | Closes SF bug #635656.
* SF patch 629637: Add sample(population, k) method to the random module.Raymond Hettinger2002-11-121-0/+19
| | | | Used for random sampling without replacement.
* Add documentation for the PEP 293 functionality:Walter Dörwald2002-11-071-3/+29
| | | | | | | | | | The errors attribute can be changed after the reader/writer is created. For encoding there are two additional errors values: "xmlcharrefreplace" and "backslashreplace". These values can be extended via register_error().
* Minor markup adjustments.Fred Drake2002-11-071-2/+2
|
* Document the changed fdopen behaviour.Thomas Heller2002-11-071-0/+4
| | | | (Hope the markup is ok).
* [Patch #633635 from David M. Cooke]Andrew M. Kuchling2002-11-061-1/+1
| | | | Make docs accurate; getch() in nodelay mode returns -1