Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | A start at non-trivial (== DST-aware) tests of timezone conversion. | Tim Peters | 2002-12-29 | 1 | -0/+152 |
| | | | | | | | Guido has in mind an easier way for users to code this stuff, but the only tests we have now are for fixed-offset tzinfo classes, and this stuff is extremely delicate in the endcases (read the new test code for why: there are holes in time <wink>). | ||||
* | SF patch 658251: Install a C implementation of the Mersenne Twister as the | Raymond Hettinger | 2002-12-29 | 6 | -322/+983 |
| | | | | core generator for random.py. | ||||
* | Remove some old debugging print statements. | Kurt B. Kaiser | 2002-12-29 | 1 | -10/+0 |
| | |||||
* | M EditorWindow.py | Kurt B. Kaiser | 2002-12-29 | 2 | -16/+20 |
| | | | | | | | | | | | | | | | M PyShell.py 1. PyShell Rev 1.39, EditorWindow Rev 1.37 fix was not handling a multiline prompt. 2. The same fix introduced a bug where hitting <enter> at a previous prompt-only line would copy the prompt to the iomark. 3. Move the setting of sys.ps1 earlier, into PyShell.main(), to allow this code to work before a shell is started up. 4. If cursor is on the input line in the prompt, and you hit <enter>, process the line instead of complaining. 5. If line has no stdin range (this includes the last line before shell restart) strip any prompt before recalling. | ||||
* | Add newsitem for the two new unittest methods. | Raymond Hettinger | 2002-12-29 | 1 | -15/+21 |
| | | | | Also, made some whitespace cleanup. | ||||
* | Patch for bug #659709: bogus computation of float length | Marc-André Lemburg | 2002-12-29 | 4 | -16/+88 |
| | | | | | Python 2.2.x backport candidate. (This bug has been around since Python 1.6.) | ||||
* | Make error message more specific for min() and max(). | Raymond Hettinger | 2002-12-29 | 1 | -1/+1 |
| | | | | Suggested by MvL. | ||||
* | Incorporate Skip's suggestion to use SciPy's validation test near | Raymond Hettinger | 2002-12-29 | 2 | -0/+52 |
| | | | | | | equality. Note, there is another flavor that compares to a given number of significant digits rather than decimal places. If there is a demand, that could be added at a later date. | ||||
* | Demonstrate use of PyType_Ready() in the example. | Raymond Hettinger | 2002-12-29 | 1 | -3/+5 |
| | |||||
* | Bug #599248: strip directories when building Python. Out-of-tree builds ↵ | Andrew M. Kuchling | 2002-12-29 | 1 | -2/+5 |
| | | | | should work again. | ||||
* | Suppress unsafe *Cookie class warnings | Andrew M. Kuchling | 2002-12-29 | 1 | -0/+5 |
| | |||||
* | Patch #655760: add warnings when the unsafe *Cookie classes are instantiated | Andrew M. Kuchling | 2002-12-29 | 1 | -1/+11 |
| | |||||
* | SF patch #659536: Use PyArg_UnpackTuple where possible. | Raymond Hettinger | 2002-12-29 | 11 | -41/+41 |
| | | | | | | | Obtain cleaner coding and a system wide performance boost by using the fast, pre-parsed PyArg_Unpack function instead of PyArg_ParseTuple function which is driven by a format string. | ||||
* | SF Bug 645777: list.extend() works with any iterable and is no longer | Raymond Hettinger | 2002-12-29 | 2 | -4/+2 |
| | | | | experimental. | ||||
* | Apparently FreeBSD enables some HW floating-point exceptions by default. | Tim Peters | 2002-12-28 | 3 | -5/+26 |
| | | | | | | | This can cause core dumps when Python runs. Python relies on the 754- (and C99-) mandated default "non-stop" mode for FP exceptions. This patch from Ben Laurie disables at least one FP exception on FreeBSD at Python startup time. | ||||
* | Gracefully delay runtime error up to 1s. Add .willdispatch(). | Martin v. Löwis | 2002-12-28 | 2 | -12/+32 |
| | |||||
* | astimezone(): document that None is an OK argument. | Tim Peters | 2002-12-27 | 1 | -4/+5 |
| | |||||
* | Added a useful warning to the documentation. | Eric S. Raymond | 2002-12-27 | 1 | -2/+4 |
| | |||||
* | Document killpg. | Martin v. Löwis | 2002-12-27 | 1 | -0/+8 |
| | |||||
* | Patch #657889: Implement posix.getloadavg. | Martin v. Löwis | 2002-12-27 | 5 | -5/+44 |
| | |||||
* | And put back a little code duplication, in the form of asserts. | Tim Peters | 2002-12-27 | 1 | -0/+3 |
| | |||||
* | Squash recently-introduced code duplication. | Tim Peters | 2002-12-27 | 1 | -66/+37 |
| | |||||
* | Make comparison and subtraction of aware objects ignore tzinfo if the | Tim Peters | 2002-12-27 | 3 | -58/+179 |
| | | | | | | operands have identical tzinfo members (meaning object identity -- "is"). I misunderstood the intent here, reading wrong conclusion into conflicting clues. | ||||
* | Changed the input field for the interpreter to use (in the preferences | Jack Jansen | 2002-12-26 | 9 | -10/+52 |
| | | | | window) to a combobox listing the known interpreters. | ||||
* | macfsn is gone. | Jack Jansen | 2002-12-26 | 1 | -1/+1 |
| | |||||
* | Integrated macfsn into macfs, and made the Standard File calls return the | Jack Jansen | 2002-12-26 | 2 | -169/+140 |
| | | | | correct FSSpec implementations. | ||||
* | Return the macfs variation for FSSpec and Alias, not the underlying | Jack Jansen | 2002-12-26 | 1 | -3/+5 |
| | | | | Carbon.File version, so the old method names work. | ||||
* | Second-argument alias methods were generated with a variation on | Jack Jansen | 2002-12-26 | 2 | -53/+53 |
| | | | | MethodGenerator, this should be OSErrMethodGenerator. | ||||
* | Add XXX about Winsock error values | Guido van Rossum | 2002-12-26 | 1 | -0/+1 |
| | |||||
* | Also skip testHostnameRes() if gethostbyaddr() raises an exception. | Guido van Rossum | 2002-12-26 | 1 | -1/+5 |
| | |||||
* | Skip testHostnameRes() if gethostbyname() raises an exception. | Guido van Rossum | 2002-12-26 | 1 | -1/+5 |
| | |||||
* | Fix julian day problem with strptime. Note: XXX about using 0, suggestions? | Neal Norwitz | 2002-12-26 | 2 | -1/+15 |
| | |||||
* | Added tests to ensure that timetz comparison, and datetimetz | Tim Peters | 2002-12-26 | 1 | -9/+67 |
| | | | | | | | | | | | subtraction, work as documented. In the Python implementation, they weren't calling utcoffset() if both operands had the same tzinfo object. That's fine if it so happens that the shared tzinfo object returns a fixed offset (independent of operand), but can give wrong results if that's not so, and the latter obtains in a tzinfo subclass instance trying to model both standard and daylight times. The C implementation was already doing this "correctly", so we're just adding tests to verify it. | ||||
* | Backing out patch #642578 in anticipation of final acceptance of PEP 302. | Just van Rossum | 2002-12-25 | 3 | -168/+0 |
| | |||||
* | If you entered a pathname for a nonexisting file to a FSSpec constructor | Jack Jansen | 2002-12-25 | 2 | -0/+4 |
| | | | | | on OSX then the actual error (file not found) was obscured by the error message that tried to be helpful about the allowed arguments. Fixed. | ||||
* | Changed folder name for apps from Python to MacPython-$(VERSION) (for a | Jack Jansen | 2002-12-25 | 2 | -2/+2 |
| | | | | | normal 2.3 framework install) and MacPython-OSX-$(VERSION) (for the experimental Jaguar addon install). | ||||
* | SF 658405: calendar.py to rely on the datetime module instead of the time | Raymond Hettinger | 2002-12-25 | 3 | -22/+18 |
| | | | | | | | | | 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 | 3 | -18/+159 |
| | |||||
* | Whitespace normalization. | Tim Peters | 2002-12-24 | 7 | -11/+10 |
| | |||||
* | Add an XXX comment about relative imports. | Guido van Rossum | 2002-12-24 | 1 | -1/+2 |
| | |||||
* | boolcheck cannot be deleted here. | Tony Lownds | 2002-12-24 | 1 | -1/+1 |
| | |||||
* | Move boolcheck before import of other IDLE modules | Tony Lownds | 2002-12-24 | 1 | -3/+3 |
| | |||||
* | 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). | ||||
* | Add test for SF #658106. Will backport. | Neal Norwitz | 2002-12-24 | 1 | -0/+4 |
| | |||||
* | Fix SF #658023, "What's New in 2.3", s12, verbatim error | Neal Norwitz | 2002-12-24 | 1 | -1/+1 |
| | | | | Remove space between \end {verbatim} | ||||
* | Added File and Folder, removed macfs. | Jack Jansen | 2002-12-24 | 2 | -0/+0 |
| | |||||
* | Fixed typo. | Jack Jansen | 2002-12-24 | 1 | -1/+1 |
| | |||||
* | Removed macfs, added File and Folder. | Jack Jansen | 2002-12-24 | 1 | -2/+4 |
| |