Andrew M. Kuchling [Tue, 31 Dec 2002 14:03:45 +0000 (14:03 +0000)]
Add posix.loadavg()
Add some times
Guido van Rossum [Tue, 31 Dec 2002 13:48:29 +0000 (13:48 +0000)]
Revert SF patch 659809 -- it causes double options that can cause breakage.
Neal Norwitz [Tue, 31 Dec 2002 13:38:28 +0000 (13:38 +0000)]
Use the name (path) specified in the parameter list
Martin v. Löwis [Tue, 31 Dec 2002 13:20:15 +0000 (13:20 +0000)]
Add getloadavg.
Martin v. Löwis [Tue, 31 Dec 2002 13:11:54 +0000 (13:11 +0000)]
Patch #658927: Add getctime to os.path.
Document that getatime and getmtime may return floats.
Martin v. Löwis [Tue, 31 Dec 2002 12:55:15 +0000 (12:55 +0000)]
Patch #656590: /dev/ptmx support for ptys.
Neal Norwitz [Tue, 31 Dec 2002 12:45:12 +0000 (12:45 +0000)]
Make sure zip_path is null-terminated, since it's on the stack
Martin v. Löwis [Tue, 31 Dec 2002 12:39:07 +0000 (12:39 +0000)]
Document standard encodings.
Neal Norwitz [Tue, 31 Dec 2002 12:35:41 +0000 (12:35 +0000)]
Make sure zip_path is null-terminated, since it's on the stack
Neal Norwitz [Tue, 31 Dec 2002 12:27:11 +0000 (12:27 +0000)]
SmartCookie and SerialCookie were recently deprecated
Neal Norwitz [Tue, 31 Dec 2002 12:23:10 +0000 (12:23 +0000)]
InterpolationSyntaxError was added in 2.3
Andrew MacIntyre [Tue, 31 Dec 2002 11:28:22 +0000 (11:28 +0000)]
OS/2 EMX has no popen2.Popen3 even though bunzip2 is available
Andrew MacIntyre [Tue, 31 Dec 2002 11:26:50 +0000 (11:26 +0000)]
add list of expected skips for the OS/2 EMX port
Andrew MacIntyre [Tue, 31 Dec 2002 11:25:42 +0000 (11:25 +0000)]
DLL export definition refresh
Andrew MacIntyre [Tue, 31 Dec 2002 11:24:43 +0000 (11:24 +0000)]
add universal newline support to configuration
Andrew MacIntyre [Tue, 31 Dec 2002 11:23:50 +0000 (11:23 +0000)]
whitespace cleanup
Andrew MacIntyre [Tue, 31 Dec 2002 11:20:37 +0000 (11:20 +0000)]
getenv() replacement not required
Andrew MacIntyre [Tue, 31 Dec 2002 11:18:08 +0000 (11:18 +0000)]
Build process updates:
- add new modules (zipimport, datetime, _random, bz2, _symtable)
- build pyexpat with expat sources from Python distribution
- regression test with and without compiled bytecode
Just van Rossum [Tue, 31 Dec 2002 10:22:38 +0000 (10:22 +0000)]
Broke the zipimport/PEP 302 news item into two separate items.
Just van Rossum [Tue, 31 Dec 2002 09:51:59 +0000 (09:51 +0000)]
- added missing decref
- whitespace normalization
Fred Drake [Tue, 31 Dec 2002 07:16:16 +0000 (07:16 +0000)]
Make sure PrettyPrinter methods that mirror the module-level
convenience functions isreadable() and isrecursive() work the same way
as the convenience functions.
Fred Drake [Tue, 31 Dec 2002 07:14:18 +0000 (07:14 +0000)]
- PrettyPrinter.isreadable(), .isrecursive():
Pass the right number of args to .format(). (Caught by
pychecker.)
- Protect the global namespace more carefully.
- Don't use the types module now that we don't need to.
Fred Drake [Tue, 31 Dec 2002 06:57:25 +0000 (06:57 +0000)]
Add a test that InterpolationError is constructed properly and raised
when expected. Only applies to the ConfigParser and SafeConfigParser
classes, not RawConfigParser.
Fred Drake [Tue, 31 Dec 2002 06:55:41 +0000 (06:55 +0000)]
ConfigParser._interpolate(): Pass the missing key to the
InterpolationError constructor, not the KeyError exception itself.
(Caught by the new InterpolationError test.)
SafeConfigParser._interpolate_some(): Pass the right number of
arguments to the InterpolationError constructor.
(Caught by pychecker.)
Fred Drake [Tue, 31 Dec 2002 05:51:05 +0000 (05:51 +0000)]
Update version numbers.
Guido van Rossum [Tue, 31 Dec 2002 04:41:38 +0000 (04:41 +0000)]
Phrase repair.
Guido van Rossum [Tue, 31 Dec 2002 04:39:05 +0000 (04:39 +0000)]
Minor markup and spelling repair.
Neal Norwitz [Tue, 31 Dec 2002 03:42:13 +0000 (03:42 +0000)]
Since the *_Init() are private, prefix with _, suggested by Skip
Greg Ward [Tue, 31 Dec 2002 03:23:59 +0000 (03:23 +0000)]
Add build_namelists() to expose the OSS macros SOUND_DEVICE_LABELS and
SOUND_DEVICE_NAMES as 'control_labels' and 'control_names'.
Greg Ward [Tue, 31 Dec 2002 03:07:21 +0000 (03:07 +0000)]
Rename the parameter 'xp' in several methods to 'self', since that's
what it is.
Greg Ward [Tue, 31 Dec 2002 03:04:52 +0000 (03:04 +0000)]
For symmetry with the mixer interface, rename oss_t to oss_audio_t and
OSSType to OSSAudioType.
Greg Ward [Tue, 31 Dec 2002 03:02:23 +0000 (03:02 +0000)]
Add a bunch of comments to clearly delineate sections of the code.
Greg Ward [Tue, 31 Dec 2002 02:54:43 +0000 (02:54 +0000)]
Yet another renaming of some mixer methods:
devices(), stereodevices(), recdevices() ->
controls(), stereocontrols(), reccontrols()
Based on recommendation of Hannu Savolainen <hannu@opensound.com>:
The right term to use for things like bass/treble/mic/vol/etc is
"control".
"Device" refers to different mixer devices (/dev/mixer0 to /dev/mixerN).
"Channel" cannot be used because it refers to mono/stereo/multich
channels. In fact most mixer controls have left/right channels so ...
Andrew M. Kuchling [Tue, 31 Dec 2002 02:48:59 +0000 (02:48 +0000)]
Add a hurriedly-written section on the datetime module
Guido van Rossum [Tue, 31 Dec 2002 02:12:42 +0000 (02:12 +0000)]
Dedent a paragraph that was accidentally aligned with a preceding
nested list.
Tim Peters [Tue, 31 Dec 2002 02:09:08 +0000 (02:09 +0000)]
Bump the Windows build # for 2.3a1.
Guido van Rossum [Tue, 31 Dec 2002 01:50:07 +0000 (01:50 +0000)]
Various updates to the version number, on the eve of the 2.3a1 release.
Andrew M. Kuchling [Tue, 31 Dec 2002 01:20:30 +0000 (01:20 +0000)]
Add lots of items.
The only thing missing now is the new date/time stuff.
Guido van Rossum [Tue, 31 Dec 2002 01:08:35 +0000 (01:08 +0000)]
Fix name error, found by pychecker.
Neal Norwitz [Tue, 31 Dec 2002 00:06:24 +0000 (00:06 +0000)]
Fix SF #639945, 64-bit bug on AIX
I can't test this on the snake farm (no aix box is working).
This change works for the submitter seems correct.
Can anybody test this on 32- and 64- bit AIX?
Neal Norwitz [Mon, 30 Dec 2002 23:52:01 +0000 (23:52 +0000)]
Tix update from Mike Clarkson (maintainer)
Fred Drake [Mon, 30 Dec 2002 23:51:45 +0000 (23:51 +0000)]
- added InterpolationSyntaxError to __all__
- added docstring to exceptions
Fred Drake [Mon, 30 Dec 2002 23:50:19 +0000 (23:50 +0000)]
- re-mark ESR's warning about extended registry syntax
- document InterpolationSyntaxError
Neal Norwitz [Mon, 30 Dec 2002 23:38:47 +0000 (23:38 +0000)]
Add missing InterpolationSyntaxError.
XXX Not sure this is correct.
Neal Norwitz [Mon, 30 Dec 2002 23:36:02 +0000 (23:36 +0000)]
sys was already imported, remove second import
Fred Drake [Mon, 30 Dec 2002 23:32:50 +0000 (23:32 +0000)]
- prefer "import ... as" to "import / (assignments) / del" for most things
- when the thread module isn't available, subsequent attempts to import
threading should not suceed
Greg Ward [Mon, 30 Dec 2002 23:19:32 +0000 (23:19 +0000)]
Rename more mixer methods: getrecsrc() -> get_recsrc(),
setrecsrc() -> set_recsrc().
Jack Jansen [Mon, 30 Dec 2002 23:11:30 +0000 (23:11 +0000)]
Added zipimport and _random module.
Jack Jansen [Mon, 30 Dec 2002 23:07:44 +0000 (23:07 +0000)]
Changed sys.path initializer because of addition of Lib/plat-mac and a few minor
things.
Jack Jansen [Mon, 30 Dec 2002 23:06:14 +0000 (23:06 +0000)]
Added casts to forestall warnings with MetroWerks.
Jack Jansen [Mon, 30 Dec 2002 23:03:13 +0000 (23:03 +0000)]
Updated the expected skips for MacOSX.
Jack Jansen [Mon, 30 Dec 2002 23:02:55 +0000 (23:02 +0000)]
Skip this test on MacOSX: the locale support is too minimal to make
it pass.
Fred Drake [Mon, 30 Dec 2002 23:01:14 +0000 (23:01 +0000)]
Add entries for the dummy_thread and dummy_threading modules.
Fred Drake [Mon, 30 Dec 2002 23:00:36 +0000 (23:00 +0000)]
- fix use of \refmodule markup
- correct some module names, add hyperlinks
- wrap some long lines
Guido van Rossum [Mon, 30 Dec 2002 22:59:32 +0000 (22:59 +0000)]
News about zipimport.
Tim Peters [Mon, 30 Dec 2002 22:44:03 +0000 (22:44 +0000)]
Squashed compiler wng from MSVC6.
Tim Peters [Mon, 30 Dec 2002 22:42:57 +0000 (22:42 +0000)]
Wouldn't compile on Windows; fixed.
Jack Jansen [Mon, 30 Dec 2002 22:42:43 +0000 (22:42 +0000)]
Added a note about the move of Mac/Lib to Lib/plat-mac.
Guido van Rossum [Mon, 30 Dec 2002 22:36:09 +0000 (22:36 +0000)]
Use the dummy_thread module in Queue.py and tempfile.py.
tempfile.py already contained code to let it run without threads present;
for Queue.py this is considered a useful feature too.
Guido van Rossum [Mon, 30 Dec 2002 22:34:10 +0000 (22:34 +0000)]
Add dummy_thread[ing] sections and reference these from libthread[ing].
Guido van Rossum [Mon, 30 Dec 2002 22:30:22 +0000 (22:30 +0000)]
Brett Cannon's dummy_thread and dummy_threading modules (SF patch
622537), with some nitpicking editorial changes.
Neal Norwitz [Mon, 30 Dec 2002 22:29:22 +0000 (22:29 +0000)]
SF #561244, Micro optimizations
Initialize the small integers and __builtins__ in startup.
This removes some if conditions.
Change XDECREF to DECREF for values which shouldn't be NULL.
Jack Jansen [Mon, 30 Dec 2002 22:23:40 +0000 (22:23 +0000)]
Adapted for the move of Mac/Lib to Lib/plat-mac. Makefile.pre.in now
knows about plat-mac subdirectories, and configure adds a variable
EXTRAPLATDIR. These together take care of copying Lib/plat-mac to
the destination on darwin.
Adding plat-mac is still done with a .pth file which is only created when
you do a framework build. I'm not 100% happy with this, but fixing it
really needs a functional pythonw in non-framework builds, and I don't
think I can do that before 2.3a1 (but I'll try:-).
Neal Norwitz [Mon, 30 Dec 2002 22:23:12 +0000 (22:23 +0000)]
Fix SF #658820, regex fixes for _strptime (Brett Cannon)
Disallow zero for days and months
Jack Jansen [Mon, 30 Dec 2002 22:14:35 +0000 (22:14 +0000)]
These were somehow never added to CVS.
Just van Rossum [Mon, 30 Dec 2002 22:08:05 +0000 (22:08 +0000)]
PEP 302 + zipimport:
- new import hooks in import.c, exposed in the sys module
- new module called 'zipimport'
- various changes to allow bootstrapping from zip files
I hope I didn't break the Windows build (or anything else for that
matter), but then again, it's been sitting on sf long enough...
Regarding the latest discussions on python-dev: zipimport sets
pkg.__path__ as specified in PEP 273, and likewise, sys.path item such as
/path/to/Archive.zip/subdir/ are supported again.
Jack Jansen [Mon, 30 Dec 2002 22:04:23 +0000 (22:04 +0000)]
Moved most of Mac/Lib hierarchy to Lib/plat-mac: it can be used both
in MacPython-OS9 and MacPython-OSX (or the equivalent unix Python on
Mac OS X). The only items remaining in Mac/Lib are modules that are
meaningful only for MacPython-OS9 (CFM stuff, MacPython preferences
in resources, etc).
Guido van Rossum [Mon, 30 Dec 2002 21:59:55 +0000 (21:59 +0000)]
Add __all__. (Brett Cannon.)
Tim Peters [Mon, 30 Dec 2002 21:28:52 +0000 (21:28 +0000)]
Bite the bullet on all the indirect timetz and datetimetz tzinfo methods:
make the callers figure out the right tzinfo arguments to pass, instead of
making the callees guess. The code is uglier this way, but it's less
brittle (when the callee guesses, the caller can get surprised).
Fred Drake [Mon, 30 Dec 2002 21:26:42 +0000 (21:26 +0000)]
We're using strictly American spellings, so there's no diaresis over
the i in naive.
More markup fixups.
Guido van Rossum [Mon, 30 Dec 2002 21:04:23 +0000 (21:04 +0000)]
SF patch 659809, by Daniel Brotsky: fix Makefile.pre to use config
env.
This adds @CFLAGS@ and @CPPFLAGS@ to the end of the respective
variable definitions. It also adds $(LDFLAGS) to the $(CC) invocation
to build $(PGEN).
Barry Warsaw [Mon, 30 Dec 2002 21:03:26 +0000 (21:03 +0000)]
A short note about the versions of BerkeleyDB we now support
Barry Warsaw [Mon, 30 Dec 2002 20:53:52 +0000 (20:53 +0000)]
Port BerkeleyDB 4.1 support from the pybsddb project. bsddb is now at
version 4.1.1 and works with up to BerkeleyDB 4.1.25.
Barry Warsaw [Mon, 30 Dec 2002 20:53:18 +0000 (20:53 +0000)]
Add some missing tests. Should now test everything that pybsddb's
test suite tests.
Tim Peters [Mon, 30 Dec 2002 20:52:32 +0000 (20:52 +0000)]
A step on the way to making tzinfo classes writable by mortals: get rid
of the timetz case. A tzinfo method will always see a datetimetz arg,
or None, now. In the former case, it's still possible that it will get
a datetimetz argument belonging to a different timezone. That will get
fixed next.
Fred Drake [Mon, 30 Dec 2002 20:51:27 +0000 (20:51 +0000)]
Start something that might make table notes easier to deal with,
eventually.
Barry Warsaw [Mon, 30 Dec 2002 20:51:12 +0000 (20:51 +0000)]
Search for and use BerkeleyDB 4.1 if it's available. Python's
extension module now supports it.
Barry Warsaw [Mon, 30 Dec 2002 20:44:16 +0000 (20:44 +0000)]
Template for future tests.
Fred Drake [Mon, 30 Dec 2002 20:35:32 +0000 (20:35 +0000)]
Clean up a table so it passes formatting.
Neil Schemenauer [Mon, 30 Dec 2002 20:22:23 +0000 (20:22 +0000)]
Add news about fix for bug #624807.
Raymond Hettinger [Mon, 30 Dec 2002 20:21:21 +0000 (20:21 +0000)]
Added the \var{} markup so the tables will look good.
Neil Schemenauer [Mon, 30 Dec 2002 20:21:15 +0000 (20:21 +0000)]
Match new sequence behavior. User defined types now behave better as and
with sequences.
Jack Jansen [Mon, 30 Dec 2002 20:20:58 +0000 (20:20 +0000)]
This file hasn't been committed for a long time, because it erronuously ended
up in the Carbon package.
Neil Schemenauer [Mon, 30 Dec 2002 20:19:02 +0000 (20:19 +0000)]
Consolidate the int and long sequence repeat code. Before the change,
integers checked for integer overflow but longs did not.
Jack Jansen [Mon, 30 Dec 2002 20:18:57 +0000 (20:18 +0000)]
Long-obsolete, replaced by Carbon.Sound.
Neil Schemenauer [Mon, 30 Dec 2002 20:18:15 +0000 (20:18 +0000)]
Always try nb_* slots before trying sq_concat, sq_inplace_concat, sq_repeat,
andsq_inplace_repeat. This fixes a number of corner case bugs (see #624807).
Consolidate the int and long sequence repeat code. Before the change, integers
checked for integer overflow but longs did not.
Raymond Hettinger [Mon, 30 Dec 2002 20:01:24 +0000 (20:01 +0000)]
Added markup upto line 233.
Barry Warsaw [Mon, 30 Dec 2002 19:27:08 +0000 (19:27 +0000)]
Update the email package news.
Barry Warsaw [Mon, 30 Dec 2002 19:17:37 +0000 (19:17 +0000)]
Describe the new `errors' argument to Header.__init__() and
Header.append()
Barry Warsaw [Mon, 30 Dec 2002 19:14:38 +0000 (19:14 +0000)]
test_bad_8bit_header(): Tests for optional argument `errors'. See SF
bug #648119.
Barry Warsaw [Mon, 30 Dec 2002 19:13:00 +0000 (19:13 +0000)]
Header.__init__(), .append(): Add an optional argument `errors' which
is passed straight through to the unicode() and ustr.encode() calls.
I think it's the best we can do to address the UnicodeErrors in badly
encoded headers such as is described in SF bug #648119.
Barry Warsaw [Mon, 30 Dec 2002 19:08:38 +0000 (19:08 +0000)]
Actually, make this 2.5a1 since it will include API changes that may
need more vetting, and it will be included in Python 2.3a1.
Martin v. Löwis [Mon, 30 Dec 2002 18:14:15 +0000 (18:14 +0000)]
Silence cast warnings for Tcl 8.3.
Barry Warsaw [Mon, 30 Dec 2002 17:45:41 +0000 (17:45 +0000)]
Bump to 2.5
Barry Warsaw [Mon, 30 Dec 2002 17:45:02 +0000 (17:45 +0000)]
TestMIMEAudio.setUp(): Use the email package's copy of the audio test
file, needed because some binary distros (read RPMs) don't include the
test module in their standard Python package. This eliminates an
external dependency and closes SF bug # 650441.
Barry Warsaw [Mon, 30 Dec 2002 17:44:27 +0000 (17:44 +0000)]
A copy of the audio test file from Lib/test, needed because some
binary distros (read RPMs) don't include the test module in their
standard Python package. This eliminates an external dependency and
closes SF bug # 650441.
Tim Peters [Mon, 30 Dec 2002 17:37:30 +0000 (17:37 +0000)]
Added tests that conversion to our own timezone is always an identity,
and that conversion to "timezone" None is the same as stripping the
tzinfo member.
Barry Warsaw [Mon, 30 Dec 2002 17:21:36 +0000 (17:21 +0000)]
parsedate_tz(): Fix SF bug #552345, optional FWS between the comma and
the day in an RFC 2822 date.
Barry Warsaw [Mon, 30 Dec 2002 17:20:53 +0000 (17:20 +0000)]
test_parsedate_compact(): A test for optional FWS between the comma
and the day number in an RFC 2822 date specification. See bug
#552345.
Tim Peters [Mon, 30 Dec 2002 17:09:40 +0000 (17:09 +0000)]
Beefed up the timezone conversion test by adding a phony UTC zone that's
west of the US zones getting converted, and also by using Eastern "as if"
it were UTC (wrt Pacific), and vice versa.