summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* String tests should test 8-bit strings :-)Marc-André Lemburg2002-12-301-1/+1
|
* Last checkin was missing the tuple comma.Raymond Hettinger2002-12-301-1/+1
| | | | The new "substr in str" feature masked the error.
* Restore the test of the random module after including "Random" in theRaymond Hettinger2002-12-301-1/+1
| | | | | | | | ignore tuple. The line, "from _random import Random as CoreGenerator", fools the test code which expects CoreGenerator.__name__ to be "CoreGenerator" instead of "Random".
* Minor grammar fix, and clarificationAndrew M. Kuchling2002-12-301-2/+2
|
* Mark up more textAndrew M. Kuchling2002-12-301-117/+148
|
* Untabify.Greg Ward2002-12-301-106/+106
|
* Whitespace fixes to conform to coding standards.Greg Ward2002-12-301-18/+18
|
* Temporarily comment out a test that crashes upon the introduction ofRaymond Hettinger2002-12-301-1/+1
| | | | the _random subclass for Random.
* Comment fix.Greg Ward2002-12-301-9/+2
|
* Rename some mixer methods:Greg Ward2002-12-301-16/+16
| | | | | | | | | | | | | * channels() -> devices() * stereochannels() -> stereodevices() * recchannels() -> recdevices() * getvol() -> get() * setvol() -> set() This is for (slightly) more consistency with the OSS ioctl names (READ_DEVMASK, READ_RECMASK, READ_STEREODEVS). Also make sure the C function names correspond more closely to the Python method names for mixer methods.
* Remove 'x_' prefix from oss_t and oss_mixer_t struct members.Greg Ward2002-12-301-57/+58
| | | | | | (It added nothing, and served no obvious purpose.) Export SOUND_MIXER_NRDEVICES constant.
* This test depends on the exact ordering produced by the WichmannHillRaymond Hettinger2002-12-301-3/+3
| | | | | random number generator. Altered it a bit to use the old generator and restore the test.
* Revert the last change. Tim was faster and chose a different route.Raymond Hettinger2002-12-301-2/+0
|
* Document the _randommodule project for the Windows build.Raymond Hettinger2002-12-301-0/+2
|
* Taught the Windows build about _randommodule.c. This is compiledTim Peters2002-12-292-0/+6
| | | | | into the core DLL, since it's not much code and lots of stuff uses it (e.g., try getting a tempfile name without it).
* 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.