Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Make comparison and subtraction of aware objects ignore tzinfo if the | Tim Peters | 2002-12-27 | 1 | -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 Rossum | 2002-12-25 | 1 | -15/+0 |
| | |||||
* | SF 658405: calendar.py to rely on the datetime module instead of the time | Raymond Hettinger | 2002-12-25 | 1 | -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 Peters | 2002-12-25 | 1 | -0/+22 |
| | |||||
* | Removed blurb admonishing users to raise an exception if the datetime | Tim Peters | 2002-12-24 | 1 | -2/+1 |
| | | | | argument to a tzinfo method doesn't have a matching tzinfo member. | ||||
* | Added note about technical pickle limitation on tzinfo instances. | Tim Peters | 2002-12-24 | 1 | -1/+6 |
| | |||||
* | tzinfo.{utcoffset,dst} can return timedelta (or integer or None). | Tim Peters | 2002-12-24 | 1 | -15/+21 |
| | | | | {timetz,datetimetz}.{uctcoffset,dst} do return timedelta (or None). | ||||
* | Implemented .replace() methods for date, datetime, datetimetz, time and | Tim Peters | 2002-12-24 | 1 | -1/+28 |
| | | | | timetz. | ||||
* | Brought the strftime explanation into synch with the plain-text sandbox | Tim Peters | 2002-12-23 | 1 | -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 can | Fred Drake | 2002-12-23 | 1 | -0/+1 |
| | | | | be fixed. | ||||
* | Lots of markup changes. This is still pretty sad, but passes LaTeX | Fred Drake | 2002-12-23 | 1 | -483/+558 |
| | | | | and is mostly readable. | ||||
* | Move the examples of concrete tzinfo classes to a separate file, so the | Fred Drake | 2002-12-23 | 1 | -0/+51 |
| | | | | verbatim environment does not bollux page breaking. | ||||
* | Added docs for (draft) pkgutil module. | Fred Drake | 2002-12-23 | 2 | -0/+51 |
| | |||||
* | Fixed longstanding bug in the description of strftime's %W code. | Tim Peters | 2002-12-20 | 1 | -1/+1 |
| | |||||
* | Check in current, unfinished, draft of datetime docs | Andrew M. Kuchling | 2002-12-18 | 1 | -0/+1139 |
| | | | | (Fred, don't bother to add to lib.tex or to proofread this yet.) | ||||
* | Fix some small markup nits. | Fred Drake | 2002-12-18 | 1 | -5/+5 |
| | |||||
* | Fix typo spotted by Richie Hindle | Neal Norwitz | 2002-12-18 | 1 | -1/+1 |
| | |||||
* | This is Richie Hindle's patch | Michael W. Hudson | 2002-12-17 | 1 | -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 parameter | Neal Norwitz | 2002-12-17 | 1 | -2/+2 |
| | |||||
* | Fix SF # 641111, Undocumented side effect of eval | Neal Norwitz | 2002-12-17 | 1 | -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 documented | Neal Norwitz | 2002-12-17 | 1 | -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 bug | Gustavo Niemeyer | 2002-12-16 | 1 | -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 Rossum | 2002-12-15 | 1 | -1/+1 |
| | |||||
* | Apply SF patch 652930: Add optional base argument to math.log(x[, base]). | Raymond Hettinger | 2002-12-14 | 1 | -2/+4 |
| | |||||
* | 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. |