summaryrefslogtreecommitdiffstats
path: root/Doc/lib
Commit message (Collapse)AuthorAgeFilesLines
* Make comparison and subtraction of aware objects ignore tzinfo if theTim Peters2002-12-271-23/+29
| | | | | | operands have identical tzinfo members (meaning object identity -- "is"). I misunderstood the intent here, reading wrong conclusion into conflicting clues.
* Backing out patch #642578 in anticipation of final acceptance of PEP 302.Just van Rossum2002-12-251-15/+0
|
* SF 658405: calendar.py to rely on the datetime module instead of the timeRaymond Hettinger2002-12-251-4/+6
| | | | | | | | | module. The code is shorter, more readable, faster, and dramatically increases the range of acceptable dates. Also, used the floor division operator in leapdays().
* Implemented datetime.astimezone() and datetimetz.astimezone().Tim Peters2002-12-251-0/+22
|
* Removed blurb admonishing users to raise an exception if the datetimeTim Peters2002-12-241-2/+1
| | | | argument to a tzinfo method doesn't have a matching tzinfo member.
* Added note about technical pickle limitation on tzinfo instances.Tim Peters2002-12-241-1/+6
|
* tzinfo.{utcoffset,dst} can return timedelta (or integer or None).Tim Peters2002-12-241-15/+21
| | | | {timetz,datetimetz}.{uctcoffset,dst} do return timedelta (or None).
* Implemented .replace() methods for date, datetime, datetimetz, time andTim Peters2002-12-241-1/+28
| | | | timetz.
* Brought the strftime explanation into synch with the plain-text sandboxTim Peters2002-12-231-45/+56
| | | | | docs, and moved its section to the end (before the "C API" section, which latter doesn't really belong in the Library manual).
* Add in the datetime docs now that they pass LaTeX. Still ugly, but that canFred Drake2002-12-231-0/+1
| | | | be fixed.
* Lots of markup changes. This is still pretty sad, but passes LaTeXFred Drake2002-12-231-483/+558
| | | | and is mostly readable.
* Move the examples of concrete tzinfo classes to a separate file, so theFred Drake2002-12-231-0/+51
| | | | verbatim environment does not bollux page breaking.
* Added docs for (draft) pkgutil module.Fred Drake2002-12-232-0/+51
|
* Fixed longstanding bug in the description of strftime's %W code.Tim Peters2002-12-201-1/+1
|
* Check in current, unfinished, draft of datetime docsAndrew M. Kuchling2002-12-181-0/+1139
| | | | (Fred, don't bother to add to lib.tex or to proofread this yet.)
* Fix some small markup nits.Fred Drake2002-12-181-5/+5
|
* Fix typo spotted by Richie HindleNeal Norwitz2002-12-181-1/+1
|
* This is Richie Hindle's patchMichael W. Hudson2002-12-171-1/+11
| | | | | | | | [ 643835 ] Set Next Statement for Python debuggers with a few tweaks by me: adding an unsigned or two, mentioning that not all jumps are allowed in the doc for pdb, adding a NEWS item and a note to whatsnew, and AuCTeX doing something cosmetic to libpdb.tex.
* Add markup for base parameterNeal Norwitz2002-12-171-2/+2
|
* Fix SF # 641111, Undocumented side effect of evalNeal Norwitz2002-12-171-1/+6
| | | | | | | | Try to clear up confusion about the current globals being copied into a globals dict passed to eval(). This wording (more or less) was suggested in bug report. It should probably be made clearer. Backport candidate.
* Fix SF #642742, property() builtin not documentedNeal Norwitz2002-12-171-0/+78
| | | | | | | | Added doc for functions new to 2.2: classmethod property staticmethod super Taken from docstrings. Could use review. Hope there wasn't a reason why these shouldn't have been added. Backport candidate.
* Fixed bugGustavo Niemeyer2002-12-161-1/+3
| | | | | | | | | | | | | | | | | [#521782] unreliable file.read() error handling * Objects/fileobject.c (file_read): Clear errors before leaving the loop in all situations, and also check if some data was read before exiting the loop with an EWOULDBLOCK exception. * Doc/lib/libstdtypes.tex * Objects/fileobject.c Document that sometimes a read() operation can return less data than what the user asked, if running in non-blocking mode. * Misc/NEWS Document the fix.
* typo fix.Just van Rossum2002-12-151-1/+1
|
* Apply SF patch 652930: Add optional base argument to math.log(x[, base]).Raymond Hettinger2002-12-141-2/+4
|
* 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.