Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Enhance issubclass() and PyObject_IsSubclass() so that a tuple is | Walter Dörwald | 2002-12-12 | 1 | -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 Rossum | 2002-12-12 | 1 | -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öwis | 2002-12-11 | 1 | -1/+1 |
| | |||||
* | Update comments about the performance of xrange(). | Raymond Hettinger | 2002-12-11 | 1 | -2/+2 |
| | |||||
* | Add support for binary pickles to the shelve module. In some situations | Skip Montanaro | 2002-12-08 | 1 | -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 Drake | 2002-12-06 | 1 | -1/+1 |
| | |||||
* | Typo: "dead lock" --> "deadlock" | Fred Drake | 2002-12-06 | 2 | -2/+2 |
| | |||||
* | Fix problem in example code. It's minor in this particular example, | Fred Drake | 2002-12-03 | 1 | -1/+1 |
| | | | | but can lead to mysterious problems in real applications. | ||||
* | Fix example regular expressions that simulate scanf() constructs. | Fred Drake | 2002-12-03 | 1 | -3/+3 |
| | |||||
* | Patch #646824: Remove extra \end. | Martin v. Löwis | 2002-12-03 | 1 | -1/+0 |
| | |||||
* | Slightly improved version of patch #642578: "Expose PyImport_FrozenModules | Just van Rossum | 2002-11-29 | 1 | -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 class | Raymond Hettinger | 2002-11-27 | 1 | -1/+8 |
| | | | | method for constructing new dictionaries from sequences of keys. | ||||
* | Clarify the interpretation of the __getstate__() return value for | Fred Drake | 2002-11-27 | 1 | -3/+9 |
| | | | | | new-style classes. Closes SF bug #637941. | ||||
* | * libbz2.tex | Gustavo Niemeyer | 2002-11-25 | 1 | -1/+1 |
| | | | | Fixed minor typo, suggested by Drew Perttula <drewp@bigasterisk.com>. | ||||
* | Remove extra word | Andrew M. Kuchling | 2002-11-25 | 1 | -1/+1 |
| | |||||
* | Add unidata_version. Bump generator version number. | Martin v. Löwis | 2002-11-25 | 1 | -0/+7 |
| | |||||
* | Patch #626485: Support Unicode normalization. | Martin v. Löwis | 2002-11-23 | 1 | -3/+37 |
| | |||||
* | Added change note about returning a dictionary based on keyword | Fred Drake | 2002-11-23 | 1 | -0/+2 |
| | | | | arguments. | ||||
* | Patch #642500 with slight modifications: allow keyword arguments in | Just van Rossum | 2002-11-23 | 1 | -14/+21 |
| | | | | | | | dict() constructor. Example: >>> dict(a=1, b=2) {'a': 1, 'b': 2} >>> | ||||
* | Clarify the default setting for daemon_threads. | Fred Drake | 2002-11-22 | 1 | -1/+3 |
| | |||||
* | Fix markup. | Fred Drake | 2002-11-22 | 1 | -1/+1 |
| | |||||
* | Patch #486438: Make module argument to testmod optional. | Martin v. Löwis | 2002-11-22 | 1 | -1/+5 |
| | |||||
* | Patch #550765: Add daemon_threads flag. | Martin v. Löwis | 2002-11-22 | 1 | -0/+8 |
| | |||||
* | added details of new IMAP4_stream class; emphasised meaning of data part of ↵ | Piers Lauder | 2002-11-22 | 1 | -7/+29 |
| | | | | command results; added proxyauth command description | ||||
* | Patch #633547: Support plural forms. Do TODOs in test suite. | Martin v. Löwis | 2002-11-21 | 1 | -0/+45 |
| | |||||
* | NamedTemporaryFile: clarify behavior based on confusions noted by a | Tim Peters | 2002-11-21 | 1 | -2/+5 |
| | | | | user, and spell out a x-platform use limitation. | ||||
* | Document additional error handling names available through PEP 293. | Walter Dörwald | 2002-11-19 | 1 | -2/+6 |
| | |||||
* | Change int() so that passing a string, unicode, float or long argument | Walter Dörwald | 2002-11-19 | 1 | -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 Hettinger | 2002-11-18 | 1 | -11/+12 |
| | | | | | Replace "type(0)" with "int". Replace "while 1" with "while True" | ||||
* | Improve DictMixin. | Raymond Hettinger | 2002-11-18 | 1 | -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 Hansen | Skip Montanaro | 2002-11-17 | 1 | -1/+1 |
| | |||||
* | Better note that str.zfill() was added in 2.2.2 as well. ;-( | Fred Drake | 2002-11-16 | 1 | -0/+1 |
| | |||||
* | Document that a minor feature was added in 2.2.2. ;-( | Fred Drake | 2002-11-16 | 1 | -0/+3 |
| | | | | Closes SF bug #639170. | ||||
* | SF 639138, Ref. calendar module in time docs by John J Lee | Neal Norwitz | 2002-11-15 | 1 | -0/+3 |
| | | | | Will backport. | ||||
* | Fix critical markup errors. | Fred Drake | 2002-11-15 | 1 | -2/+2 |
| | |||||
* | Minor revisions to clarify the status of xreadlines(), change the way | Fred Drake | 2002-11-15 | 1 | -15/+14 |
| | | | | | iteration support was documented; the docs for __iter__() were just confusing. | ||||
* | SF patch #520382: Expand shelve.py to have a full dictionary interface | Raymond Hettinger | 2002-11-15 | 2 | -1/+28 |
| | | | | | and add a mixin to UserDict.py to make it easier to implement a full dictionary interface. | ||||
* | add liblogging | Skip Montanaro | 2002-11-14 | 1 | -0/+1 |
| | |||||
* | initial rough cut at documentation of logging module. This is basically | Skip Montanaro | 2002-11-14 | 1 | -0/+1139 |
| | | | | just a conversion of pydoc.help(logging). | ||||
* | Document struct_time and the field names. | Fred Drake | 2002-11-13 | 1 | -14/+25 |
| | |||||
* | Fix broken markup. | Fred Drake | 2002-11-13 | 1 | -1/+1 |
| | | | | Closes SF bug #637807. | ||||
* | Typo: it's --> its | Fred Drake | 2002-11-13 | 1 | -1/+1 |
| | | | | Closes SF bug #637810. | ||||
* | Clarified meaning of \w and \W with respect to the UNICODE and LOCALE flags. | Fred Drake | 2002-11-12 | 1 | -5/+5 |
| | | | | Closes SF bug #635595. | ||||
* | SF patch 637176: list.sort crasher | Tim Peters | 2002-11-12 | 1 | -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 Drake | 2002-11-12 | 1 | -0/+4 |
| | | | | Closes SF bug #635656. | ||||
* | SF patch 629637: Add sample(population, k) method to the random module. | Raymond Hettinger | 2002-11-12 | 1 | -0/+19 |
| | | | | Used for random sampling without replacement. | ||||
* | Add documentation for the PEP 293 functionality: | Walter Dörwald | 2002-11-07 | 1 | -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 Drake | 2002-11-07 | 1 | -2/+2 |
| | |||||
* | Document the changed fdopen behaviour. | Thomas Heller | 2002-11-07 | 1 | -0/+4 |
| | | | | (Hope the markup is ok). | ||||
* | [Patch #633635 from David M. Cooke] | Andrew M. Kuchling | 2002-11-06 | 1 | -1/+1 |
| | | | | Make docs accurate; getch() in nodelay mode returns -1 |