Barry Warsaw
1fb22bb24f
Port rfc822.py changes that didn't make it into this copy,
...
specifically that dots are allowed in obs-phrase. This fixes parsing
of dots in realnames.
2002-12-30 16:21:07 +00:00
Barry Warsaw
edb59c1ee8
test_name_with_dots(): A new test to ensure that we're implementing
...
RFC 2822's rules w.r.t. dots in the realname part of address fields.
2002-12-30 16:19:52 +00:00
Andrew M. Kuchling
fa91858c6c
More markup additions
2002-12-30 14:20:16 +00:00
Marc-André Lemburg
63b482cefb
String tests should test 8-bit strings :-)
2002-12-30 10:50:32 +00:00
Raymond Hettinger
e401b6fc55
Last checkin was missing the tuple comma.
...
The new "substr in str" feature masked the error.
2002-12-30 07:21:32 +00:00
Raymond Hettinger
ecccafb2d4
Restore the test of the random module after including "Random" in the
...
ignore tuple.
The line, "from _random import Random as CoreGenerator", fools the test
code which expects CoreGenerator.__name__ to be "CoreGenerator" instead
of "Random".
2002-12-30 07:04:47 +00:00
Andrew M. Kuchling
d6d7cfaada
Minor grammar fix, and clarification
2002-12-30 03:08:27 +00:00
Andrew M. Kuchling
c97868ee2f
Mark up more text
2002-12-30 03:06:45 +00:00
Greg Ward
ad4d9b9749
Untabify.
2002-12-30 03:02:22 +00:00
Greg Ward
e70376646e
Whitespace fixes to conform to coding standards.
2002-12-30 03:01:48 +00:00
Raymond Hettinger
4c47bd5e60
Temporarily comment out a test that crashes upon the introduction of
...
the _random subclass for Random.
2002-12-30 03:01:25 +00:00
Greg Ward
5c5c577c08
Comment fix.
2002-12-30 02:58:04 +00:00
Greg Ward
37897c2672
Rename some mixer methods:
...
* 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.
2002-12-30 02:43:36 +00:00
Greg Ward
7b43c68162
Remove 'x_' prefix from oss_t and oss_mixer_t struct members.
...
(It added nothing, and served no obvious purpose.)
Export SOUND_MIXER_NRDEVICES constant.
2002-12-30 02:29:28 +00:00
Raymond Hettinger
dd24a9f363
This test depends on the exact ordering produced by the WichmannHill
...
random number generator. Altered it a bit to use the old generator
and restore the test.
2002-12-30 00:46:09 +00:00
Raymond Hettinger
4647f5090a
Revert the last change. Tim was faster and chose a different route.
2002-12-30 00:40:40 +00:00
Raymond Hettinger
a6af477820
Document the _randommodule project for the Windows build.
2002-12-30 00:03:27 +00:00
Tim Peters
d1f5ccc75d
Taught the Windows build about _randommodule.c. This is compiled
...
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).
2002-12-29 23:46:40 +00:00
Tim Peters
621818b318
A start at non-trivial (== DST-aware) tests of timezone conversion.
...
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>).
2002-12-29 23:44:49 +00:00
Raymond Hettinger
40f6217092
SF patch 658251: Install a C implementation of the Mersenne Twister as the
...
core generator for random.py.
2002-12-29 23:03:38 +00:00
Kurt B. Kaiser
5e65ce671c
Remove some old debugging print statements.
2002-12-29 22:48:52 +00:00
Kurt B. Kaiser
4ada7ad3bc
M EditorWindow.py
...
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.
2002-12-29 22:03:38 +00:00
Raymond Hettinger
af72d5221f
Add newsitem for the two new unittest methods.
...
Also, made some whitespace cleanup.
2002-12-29 20:14:11 +00:00
Marc-André Lemburg
79f57833f3
Patch for bug #659709 : bogus computation of float length
...
Python 2.2.x backport candidate. (This bug has been around since
Python 1.6.)
2002-12-29 19:44:06 +00:00
Raymond Hettinger
bbfb910416
Make error message more specific for min() and max().
...
Suggested by MvL.
2002-12-29 18:31:19 +00:00
Raymond Hettinger
c7b076928c
Incorporate Skip's suggestion to use SciPy's validation test near
...
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.
2002-12-29 17:59:24 +00:00
Raymond Hettinger
3c736f1a41
Demonstrate use of PyType_Ready() in the example.
2002-12-29 17:16:49 +00:00
Andrew M. Kuchling
8c6e0ec16a
Bug #599248 : strip directories when building Python. Out-of-tree builds should work again.
2002-12-29 17:00:57 +00:00
Andrew M. Kuchling
4464432d8c
Suppress unsafe *Cookie class warnings
2002-12-29 16:45:06 +00:00
Andrew M. Kuchling
7877a76107
Patch #655760 : add warnings when the unsafe *Cookie classes are instantiated
2002-12-29 16:44:31 +00:00
Raymond Hettinger
ea3fdf44a2
SF patch #659536 : Use PyArg_UnpackTuple where possible.
...
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.
2002-12-29 16:33:45 +00:00
Raymond Hettinger
f8bcfb13f1
SF Bug 645777: list.extend() works with any iterable and is no longer
...
experimental.
2002-12-29 05:49:09 +00:00
Tim Peters
4643bd9a9c
Apparently FreeBSD enables some HW floating-point exceptions by default.
...
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.
2002-12-28 21:56:08 +00:00
Martin v. Löwis
5b26abb37a
Gracefully delay runtime error up to 1s. Add .willdispatch().
2002-12-28 09:23:09 +00:00
Tim Peters
276a8f3b80
astimezone(): document that None is an OK argument.
2002-12-27 21:41:32 +00:00
Eric S. Raymond
56b3184e89
Added a useful warning to the documentation.
2002-12-27 20:05:36 +00:00
Martin v. Löwis
33e94437ca
Document killpg.
2002-12-27 10:21:19 +00:00
Martin v. Löwis
438b534ad0
Patch #657889 : Implement posix.getloadavg.
2002-12-27 10:16:42 +00:00
Tim Peters
8702d5f33f
And put back a little code duplication, in the form of asserts.
2002-12-27 02:26:16 +00:00
Tim Peters
00237037ae
Squash recently-introduced code duplication.
2002-12-27 02:21:51 +00:00
Tim Peters
60c76e4016
Make comparison and subtraction of aware objects ignore tzinfo if the
...
operands have identical tzinfo members (meaning object identity -- "is").
I misunderstood the intent here, reading wrong conclusion into
conflicting clues.
2002-12-27 00:41:11 +00:00
Jack Jansen
f044e090c4
Changed the input field for the interpreter to use (in the preferences
...
window) to a combobox listing the known interpreters.
2002-12-26 22:10:53 +00:00
Jack Jansen
9431e48d23
macfsn is gone.
2002-12-26 21:17:42 +00:00
Jack Jansen
6dd561bdfd
Integrated macfsn into macfs, and made the Standard File calls return the
...
correct FSSpec implementations.
2002-12-26 21:09:39 +00:00
Jack Jansen
315e9bebcd
Return the macfs variation for FSSpec and Alias, not the underlying
...
Carbon.File version, so the old method names work.
2002-12-26 20:46:54 +00:00
Jack Jansen
248f6f1f73
Second-argument alias methods were generated with a variation on
...
MethodGenerator, this should be OSErrMethodGenerator.
2002-12-26 20:45:43 +00:00
Guido van Rossum
9a40c1c299
Add XXX about Winsock error values
2002-12-26 18:22:54 +00:00
Guido van Rossum
9647b5240c
Also skip testHostnameRes() if gethostbyaddr() raises an exception.
2002-12-26 17:04:45 +00:00
Guido van Rossum
71e02946ff
Skip testHostnameRes() if gethostbyname() raises an exception.
2002-12-26 16:55:15 +00:00
Neal Norwitz
490602d629
Fix julian day problem with strptime. Note: XXX about using 0, suggestions?
2002-12-26 16:19:52 +00:00