summaryrefslogtreecommitdiffstats
path: root/Lib/wave.py
Commit message (Collapse)AuthorAgeFilesLines
* The first batch of changes recommended by the fixdiv tool. These areGuido van Rossum2001-09-041-4/+4
| | | | | mostly changes of / operators into //. Once or twice I did more or less than recommended.
* final round of __all__ lists (I hope) - skipped urllib2 because Moshe may beSkip Montanaro2001-03-011-0/+2
| | | | giving it a slight facelift
* Whitespace normalization. Top level of Lib now fixed-point for reindent.py!Tim Peters2001-01-151-1/+1
|
* When the classes in wave.py opened files themselves, their .close() methodsTim Peters2000-10-091-7/+19
| | | | | | | didn't bother to close the files. This caused the new test_wave test to fail under Windows, as Windows won't let you delete a file that's open. Fixed that by ensuring the wave read & write classes' .close() and __del__ methods close files that were opened by their constructors.
* Fix by Jean-Claude Rimbault [ Bug #116271 ] -- the WAVE header wasGuido van Rossum2000-10-091-1/+1
| | | | | never written properly because the '4' length indicators for the 's' format characters were missing.
* Convert some old-style string exceptions to class exceptions.Fred Drake2000-08-171-1/+2
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-161-1/+1
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* The third and final doc-string sweep by Ka-Ping Yee.Guido van Rossum2000-02-041-448/+451
| | | | | | | | The attached patches update the standard library so that all modules have docstrings beginning with one-line summaries. A new docstring was added to formatter. The docstring for os.py was updated to mention nt, os2, ce in addition to posix, dos, mac.
* Sjoerd Mullender writes:Guido van Rossum1999-08-261-138/+38
| | | | | | | | | | | | | | | | | | | | | | """ Extended chunk so that it can also handle formats that are almost according to EA IFF 85. In particular, added options to handle little-endian and to handle formats that include the header size in the chunk size value. Fixed a bug where the header size was included in the chunk size, which it isn't according to EA IFF 85. Added a new method getsize() to get the size of the chunk (excluding header). Fixed chunk documentation (TIFF doesn't look like it uses chunks). Converted wave to use chunk. Wave uses EA IFF 85 chunks except that it uses little-endian encoding of integer data. Removed __del__ methods from aifc and wave since I got an AttributeError there upon exit. """
* open(): Make the mode parameter optional; if omitted or None, use theFred Drake1999-06-171-1/+6
| | | | | | | | mode attribute of the file object (if it has one), otherwise use 'rb'. The documentation should still show this as required until there's a new release.
* Ehm, when we don't need to byteswap the data, don't go through anGuido van Rossum1999-02-051-6/+4
| | | | array object at all.
* Two important fixes:Guido van Rossum1999-02-051-3/+12
| | | | | | | (1) on a little-endian platform, don't byteswap; (2) in _patchheader(), there was a missing self._file argument to a _write_long() call.
* Small corrections to comments that were cloned from aifc; moreoverGuido van Rossum1998-04-231-4/+4
| | | | | | the description of setparams() was wrong. wave.py: Include the tag of an unknown format in the exception.
* Open wave files in binary mode.Fred Drake1998-04-161-5/+5
| | | | Accept 'rb' and 'wb' as well as 'r' and 'w' as the mode parameter to open().
* Get rid of access statementGuido van Rossum1996-08-201-9/+9
|
* aifc, sunau: make rate an int; os: restruct; ospath: obsolete; rfc822:Guido van Rossum1994-02-151-0/+559
date and addr parsing; string: force result of atof to float and support atoi, atol, atof in strop; tzparcs: don't call test().