summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* A start at non-trivial (== DST-aware) tests of timezone conversion.Tim Peters2002-12-291-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 theRaymond Hettinger2002-12-296-322/+983
| | | | core generator for random.py.
* Remove some old debugging print statements.Kurt B. Kaiser2002-12-291-10/+0
|
* M EditorWindow.pyKurt B. Kaiser2002-12-292-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 Hettinger2002-12-291-15/+21
| | | | Also, made some whitespace cleanup.
* Patch for bug #659709: bogus computation of float lengthMarc-André Lemburg2002-12-294-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 Hettinger2002-12-291-1/+1
| | | | Suggested by MvL.
* Incorporate Skip's suggestion to use SciPy's validation test nearRaymond Hettinger2002-12-292-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 Hettinger2002-12-291-3/+5
|
* Bug #599248: strip directories when building Python. Out-of-tree builds ↵Andrew M. Kuchling2002-12-291-2/+5
| | | | should work again.
* Suppress unsafe *Cookie class warningsAndrew M. Kuchling2002-12-291-0/+5
|
* Patch #655760: add warnings when the unsafe *Cookie classes are instantiatedAndrew M. Kuchling2002-12-291-1/+11
|
* SF patch #659536: Use PyArg_UnpackTuple where possible.Raymond Hettinger2002-12-2911-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 longerRaymond Hettinger2002-12-292-4/+2
| | | | experimental.
* Apparently FreeBSD enables some HW floating-point exceptions by default.Tim Peters2002-12-283-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öwis2002-12-282-12/+32
|
* astimezone(): document that None is an OK argument.Tim Peters2002-12-271-4/+5
|
* Added a useful warning to the documentation.Eric S. Raymond2002-12-271-2/+4
|
* Document killpg.Martin v. Löwis2002-12-271-0/+8
|
* Patch #657889: Implement posix.getloadavg.Martin v. Löwis2002-12-275-5/+44
|
* And put back a little code duplication, in the form of asserts.Tim Peters2002-12-271-0/+3
|
* Squash recently-introduced code duplication.Tim Peters2002-12-271-66/+37
|
* Make comparison and subtraction of aware objects ignore tzinfo if theTim Peters2002-12-273-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 preferencesJack Jansen2002-12-269-10/+52
| | | | window) to a combobox listing the known interpreters.
* macfsn is gone.Jack Jansen2002-12-261-1/+1
|
* Integrated macfsn into macfs, and made the Standard File calls return theJack Jansen2002-12-262-169/+140
| | | | correct FSSpec implementations.
* Return the macfs variation for FSSpec and Alias, not the underlyingJack Jansen2002-12-261-3/+5
| | | | Carbon.File version, so the old method names work.
* Second-argument alias methods were generated with a variation onJack Jansen2002-12-262-53/+53
| | | | MethodGenerator, this should be OSErrMethodGenerator.
* Add XXX about Winsock error valuesGuido van Rossum2002-12-261-0/+1
|
* Also skip testHostnameRes() if gethostbyaddr() raises an exception.Guido van Rossum2002-12-261-1/+5
|
* Skip testHostnameRes() if gethostbyname() raises an exception.Guido van Rossum2002-12-261-1/+5
|
* Fix julian day problem with strptime. Note: XXX about using 0, suggestions?Neal Norwitz2002-12-262-1/+15
|
* Added tests to ensure that timetz comparison, and datetimetzTim Peters2002-12-261-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 Rossum2002-12-253-168/+0
|
* If you entered a pathname for a nonexisting file to a FSSpec constructorJack Jansen2002-12-252-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 aJack Jansen2002-12-252-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 timeRaymond Hettinger2002-12-253-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 Peters2002-12-253-18/+159
|
* Whitespace normalization.Tim Peters2002-12-247-11/+10
|
* Add an XXX comment about relative imports.Guido van Rossum2002-12-241-1/+2
|
* boolcheck cannot be deleted here.Tony Lownds2002-12-241-1/+1
|
* Move boolcheck before import of other IDLE modulesTony Lownds2002-12-241-3/+3
|
* 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).
* Add test for SF #658106. Will backport.Neal Norwitz2002-12-241-0/+4
|
* Fix SF #658023, "What's New in 2.3", s12, verbatim errorNeal Norwitz2002-12-241-1/+1
| | | | Remove space between \end {verbatim}
* Added File and Folder, removed macfs.Jack Jansen2002-12-242-0/+0
|
* Fixed typo.Jack Jansen2002-12-241-1/+1
|
* Removed macfs, added File and Folder.Jack Jansen2002-12-241-2/+4
|