Jack Jansen
747c3d3f02
We need macglue on MacPython-OS9 too.
2002-12-13 15:20:53 +00:00
Martin v. Löwis
7d1349553b
Always initialize objc.
2002-12-12 19:05:48 +00:00
Marc-André Lemburg
b28de0d79f
Patch to make _codecs a builtin module. This is necessary since
...
Python 2.3 will support source code encodings which rely on the
builtin codecs being available to the parser.
Remove struct dependency from codecs.py
2002-12-12 17:37:50 +00:00
Greg Ward
b69bb3d019
Typo fix.
2002-12-12 17:35:45 +00:00
Martin v. Löwis
b5bfb9f38c
Support threads-enabled Tcl installations.
2002-12-12 17:07:58 +00:00
Martin v. Löwis
135594648f
This is not used anymore.
2002-12-11 19:55:48 +00:00
Greg Ward
3d9994d3b0
Add OSS mixer interface (from Nicholas FitzRoy-Dale <wzdd@lardcave.net>):
...
* add oss_mixer_t and OSSMixerType
* add newossmixerobject(), oss_mixer_dealloc(), ossopenmixer()
* add _do_ioctl_1_internal() to support mixer ioctls
* add mixer methods: oss_mixer_{close,fileno,channels,stereo_channels,
rec_channels,getvol,setvol,getrecsrc,setrecsrc}()
* add oss_mixer_methods list
* add oss_mixer_getattr() (why?!)
* export SOUND_MIXER_* constants from soundcard.h
2002-12-11 15:12:01 +00:00
Greg Ward
da9f853b49
Prepare for the coming mixer support patch: change _do_ioctl_0() and
...
_do_ioctl_1() so they take a file descriptor rather than an oss_t
pointer.
2002-12-11 14:49:59 +00:00
Greg Ward
8c6b6a9f1e
Finish expunging the 'linuxaudiodev' name:
...
* rename oss_t to lad_t, Ladtype to OSSType,
* rename lad_*() methods to oss_*()
* rename lad_methods list to oss_methods
Patch and impetus supplied by Nicholas FitzRoy-Dale <wzdd@lardcave.net>.
2002-12-11 14:43:13 +00:00
Martin v. Löwis
cf8f47ea95
Patch #650422 : Use Posix AF_ constants instead of PF_ ones.
2002-12-11 13:10:57 +00:00
Martin v. Löwis
33ec3ba217
Remove C++ comment. Silence unsigned char* cast warning.
2002-12-07 14:57:11 +00:00
Martin v. Löwis
2fb661fb80
Remove C++ comment.
2002-12-07 14:56:36 +00:00
Tim Peters
4e52ca82ae
A patch from Kevin Jacobs, plugging several leaks discovered when
...
running the sandbox datetime tests.
Bugfix candidate.
2002-12-07 02:43:28 +00:00
Martin v. Löwis
9e43730ca3
Don't include <ioctl.h> unless on __VMS.
2002-12-06 12:57:26 +00:00
Martin v. Löwis
79acb9edfa
Patch #614055 : Support OpenVMS.
2002-12-06 12:48:53 +00:00
Jason Tishler
d0ebd7edb1
Patch #649060 : Cygwin bz2module patch
...
This patch enables the bz2 module to build cleanly under Cygwin.
2002-12-05 20:31:53 +00:00
Martin v. Löwis
e07e18d41b
Decode untyped strings from UTF-8.
2002-12-04 19:54:36 +00:00
Skip Montanaro
56643679f4
correct wording of comments about old bsddb (now bsddb185) module
2002-12-02 00:27:10 +00:00
Greg Ward
9a568eb245
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
2002-11-30 23:20:09 +00:00
Greg Ward
97708bc6f8
Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error').
...
Use OSSAudioError much less frequently -- all real I/O errors (ie. any
time open(), read(), write(), ioctl(), or select() return an error)
become IOError. OSSAudioError is only used now for bad open() mode.
2002-11-30 23:17:10 +00:00
Greg Ward
1e0f57d0bb
Added mode 'rw' for full-duplex (play and record at the same time) mode.
...
Added _EXPORT_INT macro to export an integer constant to Python-space.
Use it for all the AFMT_* constants, and update the list of AFMT_*
constants to match what's in Linux 2.4: add AFMT_{QUERY,IMA_ADPCM,
MPEG,AC3}. This should probably be tested with older versions of OSS,
eg. with Linux 2.2 and 2.0.
Export all SNDCTL_* ioctl numbers (where "all" is the set found in
/usr/include/linux/soundcard.h on my Debian 3.0 system -- again
Linux 2.4). Again needs to be tested with older OSS versions.
2002-11-30 23:05:26 +00:00
Greg Ward
131bce035a
* Don't put the device in non-blocking mode at open() time; this makes
...
it impossible to access blocking mode!
* Rename write() to writeall(), and add a write() method that just
does one write().
* Rearrange/simplify writeall(): in particular, don't supply a timeout
to select(). Let it block forever if it has to.
* Add a bunch of simple ioctl() wrappers: nonblock(), setfmt(),
getfmts(), channels(), speed(), sync(), reset(), post(). These
wrap, respectively, SNDCTL_DSP_NONBLOCK, SNDCTL_DSP_SETFMT,
SNDCTL_DSP_GETFMTS, etc.
* Reduce flush() (which was a wrapper for the SNDCTL_DSP_SYNC ioctl) to
an alias for sync().
* Rearrange the lad_methods list to reflect the order in which the
methods are defined, and add some grouping comments.
2002-11-30 22:56:44 +00:00
Greg Ward
04613a9308
ossaudiodev -- Python interface to the OSS (Open Sound System) API.
...
This module is a replacement for linuxaudiodev, which will eventually
be deprecated.
Initial revision is rev 2.20 of linuxaudiodev.c, with a rewritten
header comment.
2002-11-30 22:47:45 +00:00
Greg Ward
a34b1a0749
Allow the device name to be passed to linuxaudiodev.open(), for
...
consistency with the built-in open() (and every other sane open()
function, for that matter). The two valid ways to call this open() are
now open(mode) and open(device, mode).
For backwards compatibility, retain the old open(mode) calling syntax --
this makes the error message when you call open(device) a bit confusing,
but oh well.
This is the first half of SF patch #644977 .
2002-11-27 22:19:15 +00:00
Martin v. Löwis
4ec2e7071e
Avoid including tclInt.h.
2002-11-26 22:12:12 +00:00
Martin v. Löwis
8c8aa5d666
Rename want_objects to wantobjects throughout, for consistency.
2002-11-26 21:39:48 +00:00
Martin v. Löwis
ffad633af9
Patch #518625 : Return objects in Tkinter.
2002-11-26 09:28:05 +00:00
Martin v. Löwis
52ea7e9244
Patch #632973 : Implement _getdefaultlocale for OS X.
2002-11-26 09:05:36 +00:00
Martin v. Löwis
b5c980b802
Add unidata_version. Bump generator version number.
2002-11-25 09:13:37 +00:00
Martin v. Löwis
d5169bad94
Regenerate from Unicode 3.2.0 to include all First/Last ranges.
2002-11-24 23:10:08 +00:00
Martin v. Löwis
8d93ca1383
Verify that the code in CJK UNIFIED IDEOGRAPH- actually denotes an ideograph.
2002-11-23 22:10:29 +00:00
Martin v. Löwis
677bde2dd1
Patch #626485 : Support Unicode normalization.
2002-11-23 22:08:15 +00:00
Martin v. Löwis
ef7fe2e813
Implement names for CJK unified ideographs. Add name to KeyError output.
...
Verify that the lookup for an existing name succeeds.
2002-11-23 18:01:32 +00:00
Martin v. Löwis
2f4be4e38a
Fix off-by-one error.
2002-11-23 17:11:06 +00:00
Martin v. Löwis
7d41e29c58
Patch #626548 : Support Hangul syllable names.
2002-11-23 12:22:32 +00:00
Martin v. Löwis
b2c7affbaa
Merge with bsddb3 2002.11.23.10.42.36
2002-11-23 11:26:07 +00:00
Martin v. Löwis
e17af7b3db
Include Python.h first.
2002-11-23 09:16:19 +00:00
Neal Norwitz
8d4c9817a2
Fix SF # 640557, '64-bit' systems and the dbm module
...
datum.dsize can apparently be long on some systems.
Ensure we pass an int* to PyArg_Parse("s#"), not &datum.dsize
Will backport.
2002-11-22 23:29:31 +00:00
Fredrik Lundh
09705f0b89
fix for SF #635398 (don't "downcast" return strings from unicode to ascii)
2002-11-22 12:46:35 +00:00
Martin v. Löwis
0073f2e428
Fix --disable-unicode compilation problems.
2002-11-21 23:52:35 +00:00
Walter Dörwald
3b918c3787
Comment out the getcwdu implementation for --disable-unicode builds
2002-11-21 20:18:46 +00:00
Michael W. Hudson
2100798b8c
Always call tparm with 10 arguments. It seems it's not varargs i
...
more often than it is. In response to bug:
[ 641808 ] Portability of Modules/_cursesmodule.c
submitted by Nick Mclaren.
2002-11-21 14:17:51 +00:00
Martin v. Löwis
21645fc073
Don't try to use unsupported DB versions.
2002-11-19 08:30:08 +00:00
Martin v. Löwis
6aa4a1f29c
Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.
2002-11-19 08:09:52 +00:00
Neil Schemenauer
47ec6c0790
Don't use PyNumber_Float() since it's is nearly useless. Instead, rely on
...
PyFloat_AsDouble to generate a good error message.
2002-11-18 16:02:29 +00:00
Walter Dörwald
08c4cc4127
Use PyInt_AsLong instead of PyInt_AS_LONG after the call to
...
PyNumber_Int, because now PyNumber_Int might return a long,
and PyInt_AsLong can handle that, whereas PyInt_AS_LONG can't.
This closes SF bug #629989 .
2002-11-12 11:42:20 +00:00
Neal Norwitz
addfe0c09c
Make private functions static so we don't pollute the namespace
2002-11-10 14:33:26 +00:00
Martin v. Löwis
774348c8d6
Fix typo.
2002-11-09 19:54:06 +00:00
Tim Peters
6ee6db81c2
bz2_compress/bz2_decompress: more casting away LONG_LONG for
...
_PyString_Resize calls.
2002-11-09 04:33:36 +00:00
Tim Peters
39185d622d
BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.
2002-11-09 04:31:38 +00:00