summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Don't include <ioctl.h> unless on __VMS.Martin v. Löwis2002-12-061-1/+3
|
* Patch #614055: Support OpenVMS.Martin v. Löwis2002-12-067-4/+499
|
* Patch #649060: Cygwin bz2module patchJason Tishler2002-12-051-14/+29
| | | | This patch enables the bz2 module to build cleanly under Cygwin.
* Decode untyped strings from UTF-8.Martin v. Löwis2002-12-041-2/+27
|
* correct wording of comments about old bsddb (now bsddb185) moduleSkip Montanaro2002-12-021-6/+4
|
* Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!Greg Ward2002-11-301-7/+7
|
* Rename LinuxAudioError to OSSAudioError ('ossaudiodev.error').Greg Ward2002-11-301-25/+25
| | | | | | 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.
* Added mode 'rw' for full-duplex (play and record at the same time) mode.Greg Ward2002-11-301-21/+97
| | | | | | | | | | | | 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.
* * Don't put the device in non-blocking mode at open() time; this makesGreg Ward2002-11-301-46/+184
| | | | | | | | | | | | | | | | | | | | | 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.
* ossaudiodev -- Python interface to the OSS (Open Sound System) API.Greg Ward2002-11-301-0/+524
| | | | | | | | 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.
* Allow the device name to be passed to linuxaudiodev.open(), forGreg Ward2002-11-271-7/+19
| | | | | | | | | | | | 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.
* Avoid including tclInt.h.Martin v. Löwis2002-11-261-10/+26
|
* Rename want_objects to wantobjects throughout, for consistency.Martin v. Löwis2002-11-261-10/+10
|
* Patch #518625: Return objects in Tkinter.Martin v. Löwis2002-11-261-6/+327
|
* Patch #632973: Implement _getdefaultlocale for OS X.Martin v. Löwis2002-11-261-3/+3
|
* Add unidata_version. Bump generator version number.Martin v. Löwis2002-11-253-2/+5
|
* Regenerate from Unicode 3.2.0 to include all First/Last ranges.Martin v. Löwis2002-11-242-8403/+8395
|
* Verify that the code in CJK UNIFIED IDEOGRAPH- actually denotes an ideograph.Martin v. Löwis2002-11-231-3/+12
|
* Patch #626485: Support Unicode normalization.Martin v. Löwis2002-11-232-15/+856
|
* Implement names for CJK unified ideographs. Add name to KeyError output.Martin v. Löwis2002-11-231-1/+39
| | | | Verify that the lookup for an existing name succeeds.
* Fix off-by-one error.Martin v. Löwis2002-11-231-1/+1
|
* Patch #626548: Support Hangul syllable names.Martin v. Löwis2002-11-231-2/+109
|
* Merge with bsddb3 2002.11.23.10.42.36Martin v. Löwis2002-11-231-8/+16
|
* Include Python.h first.Martin v. Löwis2002-11-231-1/+1
|
* Fix SF # 640557, '64-bit' systems and the dbm moduleNeal Norwitz2002-11-221-6/+17
| | | | | | | datum.dsize can apparently be long on some systems. Ensure we pass an int* to PyArg_Parse("s#"), not &datum.dsize Will backport.
* fix for SF #635398 (don't "downcast" return strings from unicode to ascii)Fredrik Lundh2002-11-221-21/+4
|
* Fix --disable-unicode compilation problems.Martin v. Löwis2002-11-211-0/+5
|
* Comment out the getcwdu implementation for --disable-unicode buildsWalter Dörwald2002-11-211-0/+4
|
* Always call tparm with 10 arguments. It seems it's not varargs iMichael W. Hudson2002-11-211-43/+3
| | | | | | | | more often than it is. In response to bug: [ 641808 ] Portability of Modules/_cursesmodule.c submitted by Nick Mclaren.
* Don't try to use unsupported DB versions.Martin v. Löwis2002-11-191-1/+6
|
* Import PyBSDDB 3.4.0. Rename historical wrapper to bsddb185.Martin v. Löwis2002-11-193-15/+4266
|
* Don't use PyNumber_Float() since it's is nearly useless. Instead, rely onNeil Schemenauer2002-11-181-4/+2
| | | | PyFloat_AsDouble to generate a good error message.
* Use PyInt_AsLong instead of PyInt_AS_LONG after the call toWalter Dörwald2002-11-121-1/+1
| | | | | | | 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.
* Make private functions static so we don't pollute the namespaceNeal Norwitz2002-11-101-1/+2
|
* Fix typo.Martin v. Löwis2002-11-091-1/+1
|
* bz2_compress/bz2_decompress: more casting away LONG_LONG forTim Peters2002-11-091-2/+2
| | | | _PyString_Resize calls.
* BZ2Decomp_decompress(): Fixed more long vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_flush(): Fixed more int vs LONG_LONG confusions.Tim Peters2002-11-091-2/+2
|
* BZ2Comp_compress(): Explicitly cast the LONG_LONG size argument toTim Peters2002-11-091-1/+1
| | | | _PyString_Resize to int.
* BZ2Comp_compress(): changed decl of totalout to LONG_LONG, since it'sTim Peters2002-11-091-1/+1
| | | | | solely used to hold LONG_LONG values, and the compiler rightfully warns about potential data loss otherwise.
* Repaired signed-vs-unsigned mismatch.Tim Peters2002-11-091-1/+1
|
* This couldn't compile on WIndows, due to hardcoded "long long". Repaired.Tim Peters2002-11-091-23/+23
|
* * Modules/bz2module.cGustavo Niemeyer2002-11-081-12/+21
| | | | | (BZ2File_dealloc): Call Util_DropReadAhead(). (*): Included aesthetic changes by Neal Norwitz.
* Assorted patches from Armin Rigo:Michael W. Hudson2002-11-081-1/+1
| | | | | | | | [ 617309 ] getframe hook (Psyco #1) [ 617311 ] Tiny profiling info (Psyco #2) [ 617312 ] debugger-controlled jumps (Psyco #3) These are forward ports from 2.2.2.
* Enforce valid filemode. Fixes SF Bug #623464.Thomas Heller2002-11-071-0/+6
|
* Fixed sre bug "[#581080] Provoking infinite scanner loops".Gustavo Niemeyer2002-11-071-4/+6
| | | | | | | | | | | | | | | | This bug happened because: 1) the scanner_search and scanner_match methods were not checking the buffer limits before increasing the current pointer; and 2) SRE_SEARCH was using "if (ptr == end)" as a loop break, instead of "if (ptr >= end)". * Modules/_sre.c (SRE_SEARCH): Check for "ptr >= end" to break loops, so that we don't hang forever if a pointer passing the buffer limit is used. (scanner_search,scanner_match): Don't increment the current pointer if we're going to pass the buffer limit. * Misc/NEWS Mention the fix.
* [Patch #633635 from David M. Cooke]Andrew M. Kuchling2002-11-061-6/+14
| | | | | | Make keyname raise ValueError if passed -1, avoiding a segfault Make getkey() match the docs and raise an exception in nodelay mode The return type of getch() is int, not chtype
* Fixed bug #470582, using a modified version of patch #527371,Gustavo Niemeyer2002-11-061-18/+19
| | | | | | | | | | | | | | | | | | | from Greg Chapman. * Modules/_sre.c (lastmark_restore): New function, implementing algorithm to restore a state to a given lastmark. In addition to the similar algorithm used in a few places of SRE_MATCH, restore lastindex when restoring lastmark. (SRE_MATCH): Replace lastmark inline restoring by lastmark_restore(), function. Also include it where missing. In SRE_OP_MARK, set lastindex only if i > lastmark. * Lib/test/re_tests.py * Lib/test/test_sre.py Included regression tests for the fixed bugs. * Misc/NEWS Mention fixes.
* * bzmodule.cGustavo Niemeyer2002-11-051-3/+3
| | | | More fixes of XDECREF'd values not initialized.
* Fix SF #633935, test_bz2 failsNeal Norwitz2002-11-051-1/+1
| | | | | Needed to init ret since it was Py_XDECREF()d on error. All regressions pass in debug build for me.