]> granicus.if.org Git - python/log
python
22 years agoAdded a word to the heapq description in response to user confusion.
Tim Peters [Tue, 10 Dec 2002 21:04:25 +0000 (21:04 +0000)]
Added a word to the heapq description in response to user confusion.

22 years agoInstall the tools/i18n directory on Windows. A user requested it,
Tim Peters [Tue, 10 Dec 2002 19:03:52 +0000 (19:03 +0000)]
Install the tools/i18n directory on Windows.  A user requested it,
Barry agreed, and I see no reason not to.

22 years agoAdded test_ossaudiodev to expected skips on Windows.
Tim Peters [Tue, 10 Dec 2002 18:47:56 +0000 (18:47 +0000)]
Added test_ossaudiodev to expected skips on Windows.

22 years agoAesthetic tweakery: factor read_sound_file() out of play_sound_file().
Greg Ward [Tue, 10 Dec 2002 16:27:35 +0000 (16:27 +0000)]
Aesthetic tweakery: factor read_sound_file() out of play_sound_file().

22 years agoInitial revision is rev 1.8 of test_linuxaudiodev.py, with
Greg Ward [Tue, 10 Dec 2002 16:24:21 +0000 (16:24 +0000)]
Initial revision is rev 1.8 of test_linuxaudiodev.py, with
the obvious s/linuxaudiodev/ossaudiodev/ change made.

22 years agoUpgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)
Neal Norwitz [Tue, 10 Dec 2002 02:18:49 +0000 (02:18 +0000)]
Upgrade to Tix-8.1.4 from Mike Clarkson (the maintainer)

22 years agoSF 548651: Fix the METH_CLASS implementation.
Tim Peters [Mon, 9 Dec 2002 22:56:13 +0000 (22:56 +0000)]
SF 548651:  Fix the METH_CLASS implementation.
Most of these patches are from Thomas Heller, with long lines folded
by Tim.  The change to test_descr.py is from Guido.  See the bug report.

Not a bugfix candidate -- METH_CLASS is new in 2.3.

22 years agoAdd test_unicode() to ensure that 1) textwrap doesn't crash on unicode
Greg Ward [Mon, 9 Dec 2002 16:32:41 +0000 (16:32 +0000)]
Add test_unicode() to ensure that 1) textwrap doesn't crash on unicode
input, and 2) unicode input means unicode output.  This closes
SF bug #622831.

22 years agoAdded test_initial_whitespace() to ensure that SF bug #622849 is fixed.
Greg Ward [Mon, 9 Dec 2002 16:27:15 +0000 (16:27 +0000)]
Added test_initial_whitespace() to ensure that SF bug #622849 is fixed.
Change LongWordTestCase.setUp() -- remove leading whitespace from
  text string.
Comment fix.

22 years agoFix SF bug #622849: in _wrap_chunks(), ensure that leading whitespace in
Greg Ward [Mon, 9 Dec 2002 16:26:05 +0000 (16:26 +0000)]
Fix SF bug #622849: in _wrap_chunks(), ensure that leading whitespace in
the input string is always preserved.

22 years agoFix SF bug #622831 (I think): add unicode_whitespace_trans class
Greg Ward [Mon, 9 Dec 2002 16:23:08 +0000 (16:23 +0000)]
Fix SF bug #622831 (I think): add unicode_whitespace_trans class
attribute, and modify _munge_whitespace() to recognize Unicode strings
and use unicode_whitespace_trans to munge them.  Still need to add a
test to make sure I've really fixed the bug.

22 years agoDocs were added about a month ago
Raymond Hettinger [Mon, 9 Dec 2002 08:56:06 +0000 (08:56 +0000)]
Docs were added about a month ago

22 years agoself.binary -> self._binary to remove it from the public interface -
Skip Montanaro [Sun, 8 Dec 2002 21:25:00 +0000 (21:25 +0000)]
self.binary -> self._binary to remove it from the public interface -
suggestion by Raymond Hettinger.

22 years agoAdd support for binary pickles to the shelve module. In some situations
Skip Montanaro [Sun, 8 Dec 2002 18:36:24 +0000 (18:36 +0000)]
Add support for binary pickles to the shelve module.  In some situations
this can result in significantly smaller files.  All classes as well as the
open function now accept an optional binary parameter, which defaults to
False for backward compatibility.  Added a small test suite, updated the
libref documentation (including documenting the exported classes and fixing
a few other nits) and added a note about the change to Misc/NEWS.

22 years agoslot_nb_nonzero(): Another leak uncovered by the sandbox datetime
Tim Peters [Sat, 7 Dec 2002 21:39:16 +0000 (21:39 +0000)]
slot_nb_nonzero():  Another leak uncovered by the sandbox datetime
tests.  I found the logic too confusing to follow here, so rewrote more
than was likely absolutely necessary.

Bugfix candidate.

22 years agoRevise the __all__ index entry a touch.
Fred Drake [Sat, 7 Dec 2002 16:00:00 +0000 (16:00 +0000)]
Revise the __all__ index entry a touch.

22 years agoRemove C++ comment. Silence unsigned char* cast warning.
Martin v. Löwis [Sat, 7 Dec 2002 14:57:11 +0000 (14:57 +0000)]
Remove C++ comment. Silence unsigned char* cast warning.

22 years agoRemove C++ comment.
Martin v. Löwis [Sat, 7 Dec 2002 14:56:36 +0000 (14:56 +0000)]
Remove C++ comment.

22 years agoCorrect db3 /opt/sfw library path. Link ndbm with libc only if ndbm.h
Martin v. Löwis [Sat, 7 Dec 2002 14:41:17 +0000 (14:41 +0000)]
Correct db3 /opt/sfw library path. Link ndbm with libc only if ndbm.h
is present and libndbm is not. Add runtime libs to dbm if linked against
Berkeley DB.

22 years agoAdd another test which exercises the whole suite with a
Raymond Hettinger [Sat, 7 Dec 2002 10:33:42 +0000 (10:33 +0000)]
Add another test which exercises the whole suite with a
heapsort and verifies the result against list.sort().

22 years agoFix typo in abstract.c which caused __rpow__ to not be invoked.
Raymond Hettinger [Sat, 7 Dec 2002 10:05:27 +0000 (10:05 +0000)]
Fix typo in abstract.c which caused __rpow__ to not be invoked.
Added related testcase.
Closes SF bug #643260.

22 years agoAdd __all__ to Reference Manual index.
Raymond Hettinger [Sat, 7 Dec 2002 09:39:15 +0000 (09:39 +0000)]
Add __all__ to Reference Manual index.
Closes SF 643227.

22 years agoClarify and speedup test.
Raymond Hettinger [Sat, 7 Dec 2002 09:25:05 +0000 (09:25 +0000)]
Clarify and speedup test.

22 years agoCleaned up test (removing bogus argument list).
Raymond Hettinger [Sat, 7 Dec 2002 09:04:29 +0000 (09:04 +0000)]
Cleaned up test (removing bogus argument list).

22 years agoRemove assumption that cls is a subclass of dict.
Raymond Hettinger [Sat, 7 Dec 2002 08:10:51 +0000 (08:10 +0000)]
Remove assumption that cls is a subclass of dict.
Simplifies the code and gets Just van Rossum's example to work.

22 years agoA patch from Kevin Jacobs, plugging several leaks discovered when
Tim Peters [Sat, 7 Dec 2002 02:43:28 +0000 (02:43 +0000)]
A patch from Kevin Jacobs, plugging several leaks discovered when
running the sandbox datetime tests.

Bugfix candidate.

22 years agoslot_tp_hash(): In the normal path, this leaked a reference to the
Tim Peters [Fri, 6 Dec 2002 23:38:02 +0000 (23:38 +0000)]
slot_tp_hash():  In the normal path, this leaked a reference to the
integer hash object returned by __hash__().  This accounts for some of
the "mystery leaks" in the sandbox datetime tests, but probably not
all of them.

22 years agoTypo: propogate -> propagate
Thomas Heller [Fri, 6 Dec 2002 22:42:13 +0000 (22:42 +0000)]
Typo: propogate -> propagate

Bugfix candidate.

22 years agoM PyShell.py
Kurt B. Kaiser [Fri, 6 Dec 2002 21:45:24 +0000 (21:45 +0000)]
M PyShell.py
1. Format and print exceptions raised in user code.

M rpc.py
1. Additional debug messages in rpc.py
2. Move debug message enable switch from SocketIO to Client and Server
   to allow separate activation.
3. Add indication of origin (client or server) to debug message
4. Add sequence number to appropriate debug messages

5. Pass string exception arg as a string rather than a tuple.

22 years agoRemove extra ")" in example.
Fred Drake [Fri, 6 Dec 2002 18:52:28 +0000 (18:52 +0000)]
Remove extra ")" in example.

22 years agoTypo: "dead lock" --> "deadlock"
Fred Drake [Fri, 6 Dec 2002 16:45:05 +0000 (16:45 +0000)]
Typo: "dead lock" --> "deadlock"

22 years agoDon't include <ioctl.h> unless on __VMS.
Martin v. Löwis [Fri, 6 Dec 2002 12:57:26 +0000 (12:57 +0000)]
Don't include <ioctl.h> unless on __VMS.

22 years agoPatch #614055: Support OpenVMS.
Martin v. Löwis [Fri, 6 Dec 2002 12:48:53 +0000 (12:48 +0000)]
Patch #614055: Support OpenVMS.

22 years agoPatch #649184: Update to tix-8.1.4 RC3.
Martin v. Löwis [Fri, 6 Dec 2002 10:33:45 +0000 (10:33 +0000)]
Patch #649184: Update to tix-8.1.4 RC3.

22 years agoSearch in standard library and include dirs for Sleepycat stuff.
Martin v. Löwis [Fri, 6 Dec 2002 10:25:02 +0000 (10:25 +0000)]
Search in standard library and include dirs for Sleepycat stuff.
Fixes #590377.

22 years agoDocument that the second argument to PyObject_IsInstance
Walter Dörwald [Fri, 6 Dec 2002 10:09:16 +0000 (10:09 +0000)]
Document that the second argument to PyObject_IsInstance
may be a tuple. This closes SF patch
http://www.python.org/sf/649095

Backport to release22-maint will follow.

22 years agoFixed so the Res.Resource() accepts either another resource, a string
Jack Jansen [Thu, 5 Dec 2002 23:26:38 +0000 (23:26 +0000)]
Fixed so the Res.Resource() accepts either another resource, a string
or no argument (giving an empty resource).

22 years agoFixed typo.
Jack Jansen [Thu, 5 Dec 2002 23:20:12 +0000 (23:20 +0000)]
Fixed typo.

22 years agoThe final tweaks before closing
Michael W. Hudson [Thu, 5 Dec 2002 21:32:32 +0000 (21:32 +0000)]
The final tweaks before closing

[ 633152 ] list slice ass ignores subtypes of list

Allow arbitrary sequences on the RHS of extended slices.

22 years agoadd logmerge.py (pydoc is already installed)
Skip Montanaro [Thu, 5 Dec 2002 21:12:34 +0000 (21:12 +0000)]
add logmerge.py (pydoc is already installed)

22 years agoPatch #649060: Cygwin bz2module patch
Jason Tishler [Thu, 5 Dec 2002 20:31:53 +0000 (20:31 +0000)]
Patch #649060: Cygwin bz2module patch

This patch enables the bz2 module to build cleanly under Cygwin.

22 years agoPatch #648998: test_commands ACL patch
Jason Tishler [Thu, 5 Dec 2002 20:18:39 +0000 (20:18 +0000)]
Patch #648998: test_commands ACL patch

Although motived by Cygwin, this patch will prevent
test_commands from failing on Unixes that support
ACLs. For example, the following is an excerpt from
the Solaris ls manpage:

...
-rwxrwxrwx+ 1 smith dev 10876 May 16 9:42 part2

The plus sign indicates that there is an ACL associated
with the file.
...

22 years agoAdd a Cygwin skip mentioned by Jason Tishler.
Tim Peters [Thu, 5 Dec 2002 17:20:25 +0000 (17:20 +0000)]
Add a Cygwin skip mentioned by Jason Tishler.

22 years agoPatch #551977: Regression exceptions for cygwin
Jason Tishler [Thu, 5 Dec 2002 15:18:15 +0000 (15:18 +0000)]
Patch #551977: Regression exceptions for cygwin

This patch updates regrtest.py to understand which
tests are normally skipped under Cygwin. The list of
tests was verified with the Cygwin Python maintainer.

22 years agosimple setup.py to install some interesting scripts in $(prefix)/bin.
Skip Montanaro [Thu, 5 Dec 2002 02:58:36 +0000 (02:58 +0000)]
simple setup.py to install some interesting scripts in $(prefix)/bin.

22 years ago* when given, port should be converted to int
Skip Montanaro [Thu, 5 Dec 2002 02:43:14 +0000 (02:43 +0000)]
* when given, port should be converted to int
* when connecting, if the port is non-standard, display it as well

22 years agoallow optional port specified as part of the hostname, e.g.,
Skip Montanaro [Thu, 5 Dec 2002 02:37:23 +0000 (02:37 +0000)]
allow optional port specified as part of the hostname, e.g.,
"www.zope.org:8021".

22 years agoDecode untyped strings from UTF-8.
Martin v. Löwis [Wed, 4 Dec 2002 19:54:36 +0000 (19:54 +0000)]
Decode untyped strings from UTF-8.

22 years agohistory update
Andrew MacIntyre [Wed, 4 Dec 2002 12:40:49 +0000 (12:40 +0000)]
history update

22 years agomake BSDDB 1.85 module buildable again after BSDDB3 module import
Andrew MacIntyre [Wed, 4 Dec 2002 12:37:17 +0000 (12:37 +0000)]
make BSDDB 1.85 module buildable again after BSDDB3 module import

22 years agoreformat for PEP-7 style conformance
Andrew MacIntyre [Wed, 4 Dec 2002 12:29:37 +0000 (12:29 +0000)]
reformat for PEP-7 style conformance

22 years agotypo fix: declaration required for VACPP not EMX+gcc
Andrew MacIntyre [Wed, 4 Dec 2002 12:27:06 +0000 (12:27 +0000)]
typo fix: declaration required for VACPP not EMX+gcc

22 years agoReplace BadInternalCall with TypeError. Add a test case. Fix whitespace.
Raymond Hettinger [Wed, 4 Dec 2002 07:32:25 +0000 (07:32 +0000)]
Replace BadInternalCall with TypeError.  Add a test case.  Fix whitespace.

Just van Rossum showed a weird, but clever way for pure python code to
trigger the BadInternalCall.  The C code had assumed that calling a class
constructor would return an instance of that class; however, classes that
abuse __new__ can invalidate that assumption.

22 years agoAdded _ssl.lib to the installer too. Restored alphabetical order of
Tim Peters [Wed, 4 Dec 2002 04:00:12 +0000 (04:00 +0000)]
Added _ssl.lib to the installer too.  Restored alphabetical order of
DLL and lib sections.

22 years agoRearrange test_socket_ssl so that a skip is expected iff the network
Tim Peters [Wed, 4 Dec 2002 03:26:57 +0000 (03:26 +0000)]
Rearrange test_socket_ssl so that a skip is expected iff the network
resource isn't enabled or the socket module doesn't support ssl.

22 years agoExplain what's probably a problem unique to Win9x in building _ssl.
Tim Peters [Wed, 4 Dec 2002 03:16:37 +0000 (03:16 +0000)]
Explain what's probably a problem unique to Win9x in building _ssl.

22 years agoClarify _ssl instructions.
Tim Peters [Wed, 4 Dec 2002 02:39:52 +0000 (02:39 +0000)]
Clarify _ssl instructions.

22 years agoAdded PEP253 support to most Carbon modules. This isn't complete yet:
Jack Jansen [Tue, 3 Dec 2002 23:40:22 +0000 (23:40 +0000)]
Added PEP253 support to most Carbon modules. This isn't complete yet:
some of the more compilcated cases (CF, Res) haven't been done yet. Also,
various types should inherit from each other (anything with an as_Resource
method should be a Resource subtype, the CF types should become one family).

22 years agoAdded PEP253 support.
Jack Jansen [Tue, 3 Dec 2002 23:35:22 +0000 (23:35 +0000)]
Added PEP253 support.

22 years agoEnable Check Module
Kurt B. Kaiser [Tue, 3 Dec 2002 23:09:23 +0000 (23:09 +0000)]
Enable Check Module

22 years agoFix problem in example code. It's minor in this particular example,
Fred Drake [Tue, 3 Dec 2002 22:57:37 +0000 (22:57 +0000)]
Fix problem in example code.  It's minor in this particular example,
but can lead to mysterious problems in real applications.

22 years agoDon't make all the OpenSSL executables, just the library we need.
Mark Hammond [Tue, 3 Dec 2002 21:00:29 +0000 (21:00 +0000)]
Don't make all the OpenSSL executables, just the library we need.
Contributed by David Bolen.

22 years agoAdd the SSL libraries as dependencies.
Mark Hammond [Tue, 3 Dec 2002 20:59:46 +0000 (20:59 +0000)]
Add the SSL libraries as dependencies.

22 years agoDon't use Alt-Fn or Ctrl-Fn keys, reserved for desktop changes in Unix.
Kurt B. Kaiser [Tue, 3 Dec 2002 20:34:43 +0000 (20:34 +0000)]
Don't use Alt-Fn or Ctrl-Fn keys, reserved for desktop changes in Unix.
Zoom becomes Alt-H  "height"
Check Module becomes Alt-X  "syntax"

22 years agoFix example regular expressions that simulate scanf() constructs.
Fred Drake [Tue, 3 Dec 2002 18:49:17 +0000 (18:49 +0000)]
Fix example regular expressions that simulate scanf() constructs.

22 years agoPatch #646824: Remove extra \end.
Martin v. Löwis [Tue, 3 Dec 2002 18:09:02 +0000 (18:09 +0000)]
Patch #646824: Remove extra \end.

22 years agoBug #647387: corrections to the logging section by Vinay Sanjip
Andrew M. Kuchling [Tue, 3 Dec 2002 13:35:17 +0000 (13:35 +0000)]
Bug #647387: corrections to the logging section by Vinay Sanjip

22 years agoSome more expected skips on OSX.
Guido van Rossum [Tue, 3 Dec 2002 10:24:56 +0000 (10:24 +0000)]
Some more expected skips on OSX.

22 years agoLose references to knee (no longer exists) and pyclbr (has its own
Guido van Rossum [Tue, 3 Dec 2002 09:34:54 +0000 (09:34 +0000)]
Lose references to knee (no longer exists) and pyclbr (has its own
test suite now).

22 years agoGet rid of 1.5.2 compatibility hack. :-)
Guido van Rossum [Tue, 3 Dec 2002 09:28:36 +0000 (09:28 +0000)]
Get rid of 1.5.2 compatibility hack. :-)

22 years agoAdding Python <= 2.2 support back in.
Marc-André Lemburg [Tue, 3 Dec 2002 08:45:11 +0000 (08:45 +0000)]
Adding Python <= 2.2 support back in.

22 years agoAdd more sophistication to the comparison between pyclbr output and
Guido van Rossum [Tue, 3 Dec 2002 08:16:50 +0000 (08:16 +0000)]
Add more sophistication to the comparison between pyclbr output and
real module, by filtering out aliased methods.  This, combined with
the recent fixes to pyclbr, make it possible to enable more tests with
fewer exceptions.

22 years agoAnother big update, fixing all known bugs related to nesting functions
Guido van Rossum [Tue, 3 Dec 2002 08:14:35 +0000 (08:14 +0000)]
Another big update, fixing all known bugs related to nesting functions
and classes.  Also add a mini main program that dumps the results for
a given file or module.

22 years agoEnsure the ssl temp directory exists!
Mark Hammond [Tue, 3 Dec 2002 06:29:48 +0000 (06:29 +0000)]
Ensure the ssl temp directory exists!

22 years ago_ssl.pyd added for Windows.
Mark Hammond [Tue, 3 Dec 2002 06:16:08 +0000 (06:16 +0000)]
_ssl.pyd added for Windows.

22 years ago_ssl.pyd available for Windows.
Mark Hammond [Tue, 3 Dec 2002 06:13:35 +0000 (06:13 +0000)]
_ssl.pyd available for Windows.

22 years agoAdd _ssl.pyd to the list of files to be installed by Wise.
Mark Hammond [Tue, 3 Dec 2002 06:02:59 +0000 (06:02 +0000)]
Add _ssl.pyd to the list of files to be installed by Wise.

22 years agoAdd _ssl build process for Windows.
Mark Hammond [Tue, 3 Dec 2002 05:47:26 +0000 (05:47 +0000)]
Add _ssl build process for Windows.

22 years agoMy MSVC seems to like writing the project names in quotes. Letting it do
Mark Hammond [Tue, 3 Dec 2002 05:39:49 +0000 (05:39 +0000)]
My MSVC seems to like writing the project names in quotes.  Letting it do
this before I add the _ssl project, so that checkin is cleaner.

22 years agoAvoid semicolon usage in echo.
Martin v. Löwis [Mon, 2 Dec 2002 22:23:56 +0000 (22:23 +0000)]
Avoid semicolon usage in echo.

22 years agoAdd compile-time errors for unsupported systems.
Martin v. Löwis [Mon, 2 Dec 2002 22:17:01 +0000 (22:17 +0000)]
Add compile-time errors for unsupported systems.

22 years agoIn class bsdTableDB, add class variables db and env (set to None) to
Guido van Rossum [Mon, 2 Dec 2002 16:17:46 +0000 (16:17 +0000)]
In class bsdTableDB, add class variables db and env (set to None) to
prevent close() called from __del__ from bombing out when __init__()
fails early.

22 years agoFix typo in except clause (_db should be _bsddb).
Guido van Rossum [Mon, 2 Dec 2002 16:08:54 +0000 (16:08 +0000)]
Fix typo in except clause (_db should be _bsddb).

22 years agoAdd XXX note about Sleepycat's BSDDB.
Guido van Rossum [Mon, 2 Dec 2002 15:49:13 +0000 (15:49 +0000)]
Add XXX note about Sleepycat's BSDDB.

22 years agoModerately heavy reorganization of pyclbr to fix package-related bugs.
Guido van Rossum [Mon, 2 Dec 2002 14:54:20 +0000 (14:54 +0000)]
Moderately heavy reorganization of pyclbr to fix package-related bugs.

- The _modules cache now uses the full module name.

- The meaning of the (internal!!!) inpackage argument is changed: it
  now is the parent package name, or None.  readmodule() doesn't
  support this argument any more.

- The meaning of the path argument is changed: when inpackage is set,
  the module *must* be found in this path (as is the case for the real
  package search).

- Miscellaneous cleanup, e.g. fixed __all__, changed some comments and
  doc strings, etc.

- Adapted the unit tests to the new semantics (nothing much changed,
  really).  Added some debugging code to the unit tests that print
  helpful extra info to stderr when a test fails (interpreting the
  test failures turned out to be hard without these).

22 years agoAdd a better columnizer to print_topics().
Guido van Rossum [Mon, 2 Dec 2002 13:08:53 +0000 (13:08 +0000)]
Add a better columnizer to print_topics().

22 years agoRequire 'largefile' resource for Mac OSX as well.
Guido van Rossum [Mon, 2 Dec 2002 10:42:30 +0000 (10:42 +0000)]
Require 'largefile' resource for Mac OSX as well.

22 years agoOn Max OSX, try increasing the stack limit to 2048 so test_re and
Guido van Rossum [Mon, 2 Dec 2002 09:56:21 +0000 (09:56 +0000)]
On Max OSX, try increasing the stack limit to 2048 so test_re and
test_sre won't die with a SegFault.

22 years agoRemove dead code in get_stack().
Kurt B. Kaiser [Mon, 2 Dec 2002 05:08:54 +0000 (05:08 +0000)]
Remove dead code in get_stack().
Modify get_stack() and get_exception to be StackTreeItem methods.
SF Bug 610756.  Neal Norwitz.

22 years agoFix SF # 646578, Documentation Typo
Neal Norwitz [Mon, 2 Dec 2002 04:42:58 +0000 (04:42 +0000)]
Fix SF # 646578, Documentation Typo

22 years agoFix beep.
Kurt B. Kaiser [Mon, 2 Dec 2002 04:41:29 +0000 (04:41 +0000)]
Fix beep.
Then remove annoying beep, not needed with breakpoint highlighting.

22 years agoRemove unused variable
Neal Norwitz [Mon, 2 Dec 2002 04:40:21 +0000 (04:40 +0000)]
Remove unused variable

22 years agocorrect wording of comments about old bsddb (now bsddb185) module
Skip Montanaro [Mon, 2 Dec 2002 00:27:10 +0000 (00:27 +0000)]
correct wording of comments about old bsddb (now bsddb185) module

22 years ago- reworked the object unpacking code, now supports new-style objects more
Just van Rossum [Sun, 1 Dec 2002 22:10:36 +0000 (22:10 +0000)]
- reworked the object unpacking code, now supports new-style objects more
  or less decently/completely.
- cleaned up a little.

22 years agoThe new imp.[gs]et_frozenmodules() will be utterly redundant if the
Just van Rossum [Sun, 1 Dec 2002 21:43:13 +0000 (21:43 +0000)]
The new imp.[gs]et_frozenmodules() will be utterly redundant if the
zipfile import stuff get in. I'll probably back it out again.

22 years agoAdd ossaudiodev; fix typo
Andrew M. Kuchling [Sun, 1 Dec 2002 14:00:21 +0000 (14:00 +0000)]
Add ossaudiodev; fix typo

22 years agoExpunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!
Greg Ward [Sat, 30 Nov 2002 23:20:09 +0000 (23:20 +0000)]
Expunge any remaining mentions of linuxaudiodev -- it's ossaudiodev now!

22 years agoRename LinuxAudioError to OSSAudioError ('ossaudiodev.error').
Greg Ward [Sat, 30 Nov 2002 23:17:10 +0000 (23:17 +0000)]
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.

22 years agoAdded mode 'rw' for full-duplex (play and record at the same time) mode.
Greg Ward [Sat, 30 Nov 2002 23:05:26 +0000 (23:05 +0000)]
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.

22 years ago* Don't put the device in non-blocking mode at open() time; this makes
Greg Ward [Sat, 30 Nov 2002 22:56:44 +0000 (22:56 +0000)]
* 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.