]> granicus.if.org Git - python/log
python
24 years agoAttempt to fix bogus gcc -Wall warnings reported by Marc-Andre Lemburg,
Tim Peters [Wed, 11 Oct 2000 07:04:49 +0000 (07:04 +0000)]
Attempt to fix bogus gcc -Wall warnings reported by Marc-Andre Lemburg,
by making the DUP_TOPX code utterly straightforward.  This also gets rid
of all normal-case internal DUP_TOPX if/branches, and allows replacing one
POP() with TOP() in each case, so is a good idea regardless.

24 years agoFix the docstring for new.function().
Fred Drake [Tue, 10 Oct 2000 22:07:18 +0000 (22:07 +0000)]
Fix the docstring for new.function().
Based on a comment from Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.

24 years agoFixed a large number of small problems, mostly noted by Detlef Lannert
Fred Drake [Tue, 10 Oct 2000 22:00:03 +0000 (22:00 +0000)]
Fixed a large number of small problems, mostly noted by Detlef Lannert
<lannert@lannert.rz.uni-duesseldorf.de>.

24 years agoAvoid a couple of "value computed is not used" warnings from gcc -Wall;
Fred Drake [Tue, 10 Oct 2000 21:10:35 +0000 (21:10 +0000)]
Avoid a couple of "value computed is not used" warnings from gcc -Wall;
these computations are required for their side effects in traversing the
variable arguments list.

Reported by Marc-Andre Lemburg <mal@lemburg.com>.

24 years agoNote that the UserString/MutableString classes are far less efficient
Fred Drake [Tue, 10 Oct 2000 20:58:48 +0000 (20:58 +0000)]
Note that the UserString/MutableString classes are far less efficient
than the built-in string types (suggested by Moshe Zadka
<moshez@math.huji.ac.il>).

Clarified what "can be converted to a string" means.

Fixed a few markup nits.

24 years agoRevise the examples not to use the "from socket import *", and adjust
Fred Drake [Tue, 10 Oct 2000 20:36:29 +0000 (20:36 +0000)]
Revise the examples not to use the "from socket import *", and adjust
one comment in the example for clarity.

24 years agoRemove duplicated text from urlopen() description, noted by Ka-Ping
Fred Drake [Tue, 10 Oct 2000 20:23:10 +0000 (20:23 +0000)]
Remove duplicated text from urlopen() description, noted by Ka-Ping
Yee <ping@lfw.org> and probably others as well.

24 years agoSubstantially revise to handle the fact that Python CVS is no longer in a
Fred Drake [Tue, 10 Oct 2000 19:35:40 +0000 (19:35 +0000)]
Substantially revise to handle the fact that Python CVS is no longer in a
file-system accessible repository.  Add a little bit of smarts to convert
the cvsroot to an anonymous cvsroot the real one requires an authenticated
login to SourceForge; this avoids the SSH startup delay when doing the
checkout or export to get a fresh copy of the tree.

24 years agoMake it clear that copy_reg.pickle() should not be used for classes, but
Fred Drake [Tue, 10 Oct 2000 18:36:02 +0000 (18:36 +0000)]
Make it clear that copy_reg.pickle() should not be used for classes, but
only for extension types.

This partially fixes SourceForge bug #116295.

24 years agoFixed lots of small nits caught by Ka-Ping Yee <ping@lfw.org>.
Fred Drake [Tue, 10 Oct 2000 17:03:45 +0000 (17:03 +0000)]
Fixed lots of small nits caught by Ka-Ping Yee <ping@lfw.org>.

24 years agoMinor nit fixes based on suggestions from Ka-Ping Yee <ping@lfw.org>.
Fred Drake [Tue, 10 Oct 2000 17:02:34 +0000 (17:02 +0000)]
Minor nit fixes based on suggestions from Ka-Ping Yee <ping@lfw.org>.
Added "See also" section with relevant RFC references.

24 years agoBetter synopsis based on suggestion from Ka-Ping Yee <ping@lfw.org>.
Fred Drake [Tue, 10 Oct 2000 16:59:53 +0000 (16:59 +0000)]
Better synopsis based on suggestion from Ka-Ping Yee <ping@lfw.org>.

24 years agoBetter synopses based on suggestions from Ka-Ping Yee <ping@lfw.org>.
Fred Drake [Tue, 10 Oct 2000 16:56:41 +0000 (16:56 +0000)]
Better synopses based on suggestions from Ka-Ping Yee <ping@lfw.org>.

24 years agoMove the documentation for the mutex module to be with the threading
Fred Drake [Tue, 10 Oct 2000 16:46:36 +0000 (16:46 +0000)]
Move the documentation for the mutex module to be with the threading
and queue-management modules, since that is where the general context
for use in most cases.

24 years agoPlace the full text of the CNRI license verbatim in the LICENSE file.
Guido van Rossum [Tue, 10 Oct 2000 14:49:44 +0000 (14:49 +0000)]
Place the full text of the CNRI license verbatim in the LICENSE file.
Who know where the handle will point to tomorrow?

24 years agoThis commit was manufactured by cvs2svn to create tag 'r20c1'. v2.0c1
cvs2svn [Mon, 9 Oct 2000 23:43:55 +0000 (23:43 +0000)]
This commit was manufactured by cvs2svn to create tag 'r20c1'.

24 years agoWhen the classes in wave.py opened files themselves, their .close() methods
Tim Peters [Mon, 9 Oct 2000 23:43:55 +0000 (23:43 +0000)]
When the classes in wave.py opened files themselves, their .close() methods
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.

24 years agoThe usual.
Guido van Rossum [Mon, 9 Oct 2000 22:14:43 +0000 (22:14 +0000)]
The usual.

24 years agoThe Usual.
Jeremy Hylton [Mon, 9 Oct 2000 21:48:02 +0000 (21:48 +0000)]
The Usual.

24 years agothe usual
Jeremy Hylton [Mon, 9 Oct 2000 21:34:51 +0000 (21:34 +0000)]
the usual

24 years agoadd note explaining what a release candidate is
Jeremy Hylton [Mon, 9 Oct 2000 21:27:22 +0000 (21:27 +0000)]
add note explaining what a release candidate is

24 years agoThis file is no longer used.
Fred Drake [Mon, 9 Oct 2000 21:26:12 +0000 (21:26 +0000)]
This file is no longer used.

24 years agoRepaired IDLE Unicode bug description.
Tim Peters [Mon, 9 Oct 2000 21:19:31 +0000 (21:19 +0000)]
Repaired IDLE Unicode bug description.
Added tokenize.py bugfix info.

24 years agoAnother generated file...
Fred Drake [Mon, 9 Oct 2000 20:22:28 +0000 (20:22 +0000)]
Another generated file...

24 years agoRemove macro that mentions DL_EXPORT_HEADER; it caused a spurious warning
Fred Drake [Mon, 9 Oct 2000 20:18:32 +0000 (20:18 +0000)]
Remove macro that mentions DL_EXPORT_HEADER; it caused a spurious warning
from autoheader and is not useful anymore.
(Approved by Donn Cave.)

24 years agoWAVE test + bugfix contributor.
Guido van Rossum [Mon, 9 Oct 2000 20:07:00 +0000 (20:07 +0000)]
WAVE test + bugfix contributor.

24 years agowave test output
Guido van Rossum [Mon, 9 Oct 2000 20:06:50 +0000 (20:06 +0000)]
wave test output

24 years agoSimple test suite for wave.py by Jean-Claude Rimbault (with some
Guido van Rossum [Mon, 9 Oct 2000 20:05:59 +0000 (20:05 +0000)]
Simple test suite for wave.py by Jean-Claude Rimbault (with some
changes to avoid using assert).

24 years agoPaul Prescod <paul@prescod.net>:
Fred Drake [Mon, 9 Oct 2000 20:04:16 +0000 (20:04 +0000)]
Paul Prescod <paul@prescod.net>:
Correct the chaining between siblings.

24 years agoFix by Jean-Claude Rimbault [ Bug #116271 ] -- the WAVE header was
Guido van Rossum [Mon, 9 Oct 2000 20:01:53 +0000 (20:01 +0000)]
Fix by Jean-Claude Rimbault [ Bug #116271 ] -- the WAVE header was
never written properly because the '4' length indicators for the 's'
format characters were missing.

24 years agoMove the test for confirmation that all nodes have been freed into the
Fred Drake [Mon, 9 Oct 2000 19:57:39 +0000 (19:57 +0000)]
Move the test for confirmation that all nodes have been freed into the
driver code, so that each test gets this; it had been done inconsistently.
Remove the lines that set the variables holding dom objects to None; not
needed since the interpreter cleans up locals on function return.

24 years agoAnd another.
Guido van Rossum [Mon, 9 Oct 2000 19:52:41 +0000 (19:52 +0000)]
And another.

24 years agoChecking in three Darwin-specific patches.
Guido van Rossum [Mon, 9 Oct 2000 19:52:35 +0000 (19:52 +0000)]
Checking in three Darwin-specific patches.

Tony Lownds: [ Patch #101816 ] Fixes shared modules on Mac OS X

    1. Mac OS X is recognized by the Next-ish host recognition code as
    "Darwin/1.2"

    2. When specifying just --with-dyld, modules can compile as shared

    3. --with-dyld and --with-next-framework, modules can compile as
    shared

    4. --with-suffix=.exe, and Lib/plat-darwin1.2 is being made, the regen
    script invokes python as python.exe

    [I had to reformat this patch a bit to make it work.  Please test!]

Dan Wolfe: [ Patch #101823 ] Fix Darwin POSIX Thread redefinition

    The patch below fixes the redefinition problem in Darwin with
    _POSIX_THREADS. I'm not sure if this is the correct long term fix but
    for now it fixes the problem and the fix is specific to Darwin.

Dan Wolfe: [ Patch #101824 ] On Darwin, remove unrecognized option
                             `-OPT:Olimit=0'

  After many, many, many compiles, I finally got itchy of this warning
  cluttering up the output... so I scratched (Darwin configs only) and
  it's gone! :-)

24 years agotypo
Jeremy Hylton [Mon, 9 Oct 2000 19:48:11 +0000 (19:48 +0000)]
typo

24 years agoUse python$EXE instead of python, for Darwin. (Patch by Tony
Guido van Rossum [Mon, 9 Oct 2000 19:34:12 +0000 (19:34 +0000)]
Use python$EXE instead of python, for Darwin.  (Patch by Tony
Lownds. (#101816)

[Note: I'm not sure that this is really the right fix.  Surely Darwin
doesn't require you to say "python.exe" everywhere???  Even Windows
doesn't!  Or am I misunderstanding the point?]

24 years agoFor Darwin, export EXE (needed by Lib/plat-generic/regen checkin, to
Guido van Rossum [Mon, 9 Oct 2000 19:31:40 +0000 (19:31 +0000)]
For Darwin, export EXE (needed by Lib/plat-generic/regen checkin, to
follow).  Adapted from a patch by Tony Lownds. (#101816)

24 years agoOne more name.
Guido van Rossum [Mon, 9 Oct 2000 19:29:35 +0000 (19:29 +0000)]
One more name.

24 years agoDo not forget to build the acks.html file when building "all"!
Fred Drake [Mon, 9 Oct 2000 18:56:23 +0000 (18:56 +0000)]
Do not forget to build the acks.html file when building "all"!

24 years agoadded better description of BeOS changes from Donn Cave
Jeremy Hylton [Mon, 9 Oct 2000 18:34:12 +0000 (18:34 +0000)]
added better description of BeOS changes from Donn Cave

24 years agoSummary of changes between 2.0b2 and 2.0c1
Jeremy Hylton [Mon, 9 Oct 2000 18:26:42 +0000 (18:26 +0000)]
Summary of changes between 2.0b2 and 2.0c1

24 years agonew name
Jeremy Hylton [Mon, 9 Oct 2000 18:26:16 +0000 (18:26 +0000)]
new name

24 years agoWork around annoyances in LaTeX2HTML.
Fred Drake [Mon, 9 Oct 2000 18:12:29 +0000 (18:12 +0000)]
Work around annoyances in LaTeX2HTML.

24 years agoPush xmllib to the end of the markup chapter since it is deprecated.
Fred Drake [Mon, 9 Oct 2000 18:11:24 +0000 (18:11 +0000)]
Push xmllib to the end of the markup chapter since it is deprecated.

24 years agoAnother name.
Fred Drake [Mon, 9 Oct 2000 18:08:56 +0000 (18:08 +0000)]
Another name.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Mon, 9 Oct 2000 17:06:13 +0000 (17:06 +0000)]
Donn Cave <donn@oz.net>:
Update for BeOS.
This closes SourceForge patch #101774.

Also fix typo in a comment.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Mon, 9 Oct 2000 17:01:03 +0000 (17:01 +0000)]
Donn Cave <donn@oz.net>:
Removed DL_EXPORT_HEADER -- only needed on BeOS, and not needed there
anymore.

This closes SourceForge patch #101775.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Mon, 9 Oct 2000 16:51:49 +0000 (16:51 +0000)]
Donn Cave <donn@oz.net>:
Revise BeOS support.

This closes SourceForge patch #101776.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Mon, 9 Oct 2000 16:48:09 +0000 (16:48 +0000)]
Donn Cave <donn@oz.net>:
Updated to work better with BeOS.

This closes SourceForge patch #101777.

24 years agoUpdated version from Donn Cave <donn@oz.net>.
Fred Drake [Mon, 9 Oct 2000 16:46:02 +0000 (16:46 +0000)]
Updated version from Donn Cave <donn@oz.net>.
This closes SourceForge patch #101778.

24 years ago_exceptions: Format a missing system id as <unknown>.
Martin v. Löwis [Mon, 9 Oct 2000 16:45:54 +0000 (16:45 +0000)]
_exceptions: Format a missing system id as <unknown>.
expatreader: Use the error handler instead of raising exception directly.

24 years agoDenis S. Otkidach <ods@users.sourceforge.net>:
Fred Drake [Mon, 9 Oct 2000 15:27:31 +0000 (15:27 +0000)]
Denis S. Otkidach <ods@users.sourceforge.net>:
Correct description of leapdays() function.

This closes SourceForge patch #101840.

24 years agobump patchlevel to 2.0c1
Jeremy Hylton [Mon, 9 Oct 2000 15:13:47 +0000 (15:13 +0000)]
bump patchlevel to 2.0c1

24 years agoread in a .pyc file and disassemble the code objects
Jeremy Hylton [Mon, 9 Oct 2000 14:35:24 +0000 (14:35 +0000)]
read in a .pyc file and disassemble the code objects

24 years agoPatch #101810: check whether zst.avail_out is non-zero when getting
Andrew M. Kuchling [Mon, 9 Oct 2000 14:18:10 +0000 (14:18 +0000)]
Patch #101810: check whether zst.avail_out is non-zero when getting
   a Z_BUF_ERROR while decompressing.  If it is, assume that this means
   the data being decompressed is bad and raise an exception, instead of
   just assuming that Z_BUF_ERROR always means that more space is required.

24 years agoFixed leapdays(). From Patch #101841, by Denis S. Otkidach.
Guido van Rossum [Mon, 9 Oct 2000 12:42:04 +0000 (12:42 +0000)]
Fixed leapdays().  From Patch #101841, by Denis S. Otkidach.

24 years agoAdapt test output to changed error message.
Guido van Rossum [Sun, 8 Oct 2000 19:48:46 +0000 (19:48 +0000)]
Adapt test output to changed error message.

24 years agoBe consistent in the description of audio formats: <format> <width>
Guido van Rossum [Sun, 8 Oct 2000 19:47:47 +0000 (19:47 +0000)]
Be consistent in the description of audio formats: <format> <width>
"audio".

Also add AFMT_S16_NE ("native-endian").  (Somehow there's no AFMT_U16_NE.)

24 years agoCorrect output.
Guido van Rossum [Sun, 8 Oct 2000 00:21:43 +0000 (00:21 +0000)]
Correct output.

24 years agoIt seems our sound cards can't play mulaw data. Use native-format
Guido van Rossum [Sun, 8 Oct 2000 00:20:20 +0000 (00:20 +0000)]
It seems our sound cards can't play mulaw data.  Use native-format
16-bit signed data instead.  Hope this works for you; it works for me.

24 years agoDon't use string methods to allow sharing this code with PyXML.
Martin v. Löwis [Sat, 7 Oct 2000 19:03:20 +0000 (19:03 +0000)]
Don't use string methods to allow sharing this code with PyXML.

24 years agoFixed too ambitious "nothing to repeat" check. Closes bug #114033.
Fredrik Lundh [Sat, 7 Oct 2000 17:38:23 +0000 (17:38 +0000)]
Fixed too ambitious "nothing to repeat" check.  Closes bug #114033.

24 years agoThe test is good, but Jim forgot to check in the updated output.
Fred Drake [Sat, 7 Oct 2000 16:58:11 +0000 (16:58 +0000)]
The test is good, but Jim forgot to check in the updated output.

24 years agoPut arguments to test -z in double quotes. Fixes Bug #116325.
Guido van Rossum [Sat, 7 Oct 2000 16:21:27 +0000 (16:21 +0000)]
Put arguments to test -z in double quotes. Fixes Bug #116325.

24 years agoHush the nanny.
Fred Drake [Sat, 7 Oct 2000 12:50:05 +0000 (12:50 +0000)]
Hush the nanny.

24 years agoFix a couple of places where the descriptions of *_GET_SIZE() macros said
Fred Drake [Sat, 7 Oct 2000 12:31:50 +0000 (12:31 +0000)]
Fix a couple of places where the descriptions of *_GET_SIZE() macros said
they were similar to *_GetSize(); should be similar to *_Size().

Error noted by William Park <parkw@better.net>.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Sat, 7 Oct 2000 12:25:17 +0000 (12:25 +0000)]
Donn Cave <donn@oz.net>:
Generated files for BeOS R5.

24 years agoRecord bugs found when comparing the module with DOM Core Level 2.
Martin v. Löwis [Sat, 7 Oct 2000 12:10:28 +0000 (12:10 +0000)]
Record bugs found when comparing the module with DOM Core Level 2.

24 years agoPrevent possible buffer overflow exploits under Windows. As per (the very quick...
Mark Hammond [Sat, 7 Oct 2000 11:10:50 +0000 (11:10 +0000)]
Prevent possible buffer overflow exploits under Windows.  As per (the very quick) patch Patch #101801.

24 years agoSRE didn't handle character category followed by hyphen inside a
Fredrik Lundh [Sat, 7 Oct 2000 10:16:19 +0000 (10:16 +0000)]
SRE didn't handle character category followed by hyphen inside a
character class.  Fix provided by Andrew Kuchling.  Closes bug
#116251.

24 years ago[ Bug #116174 ] using %% in cstrings sometimes fails with unicode paramsFix for the...
Marc-André Lemburg [Sat, 7 Oct 2000 08:54:09 +0000 (08:54 +0000)]
[ Bug #116174 ] using %% in cstrings sometimes fails with unicode paramsFix for the bug reported in Bug #116174: "%% %s" % u"abc" failed due
to the way string formatting delegated work to the Unicode formatting
function.

24 years agoUpdated test with a case which checks for the bug reported in
Marc-André Lemburg [Sat, 7 Oct 2000 08:52:45 +0000 (08:52 +0000)]
Updated test with a case which checks for the bug reported in

24 years agoPossible fix for Skip's bug 116136 (sre recursion limit hit in tokenize.py).
Tim Peters [Sat, 7 Oct 2000 05:09:39 +0000 (05:09 +0000)]
Possible fix for Skip's bug 116136 (sre recursion limit hit in tokenize.py).
tokenize.py has always used naive regexps for matching string literals,
and that appears to trigger the sre recursion limit on Skip's platform (he
has very long single-line string literals).  Replaced all of tokenize.py's
string regexps with the "unrolled" forms used in IDLE, where they're known to
handle even absurd (multi-megabyte!) string literals without trouble.  See
Friedl's book for explanation (at heart, the naive regexps create a backtracking
choice point for each character in the literal, while the unrolled forms create
none).

24 years agoPrep Windows installer for 2.0c1: title and build number.
Tim Peters [Sat, 7 Oct 2000 04:04:07 +0000 (04:04 +0000)]
Prep Windows installer for 2.0c1:  title and build number.

24 years agoFix for next iteration of SF bug 115690 (Unicode headaches in IDLE). The
Tim Peters [Fri, 6 Oct 2000 23:09:00 +0000 (23:09 +0000)]
Fix for next iteration of SF bug 115690 (Unicode headaches in IDLE).  The
parsing functions in support of auto-indent weren't expecting Unicode
strings, but text.get() can now return them (although it remains muddy as
to exactly when or why that can happen).  Fixed that with a Big Hammer.

24 years agoAdd .toxml test case, as proposed by Alex Martelli in bug report #116244.
Martin v. Löwis [Fri, 6 Oct 2000 22:42:55 +0000 (22:42 +0000)]
Add .toxml test case, as proposed by Alex Martelli in bug report #116244.

24 years agominidom: access attribute value before printing it
Martin v. Löwis [Fri, 6 Oct 2000 22:36:03 +0000 (22:36 +0000)]
minidom: access attribute value before printing it
         correct order of constructor args in createAttributeNS
pulldom: use symbolic names for uri and localnames
         correct usage of createAttribute and setAttributeNode signatures.

24 years agoAdd a test case for reporting the file name, and for reporting an error
Martin v. Löwis [Fri, 6 Oct 2000 21:13:23 +0000 (21:13 +0000)]
Add a test case for reporting the file name, and for reporting an error
for incomplete input.

24 years agoIn an incremental parser, close the parser after feeding everything.
Martin v. Löwis [Fri, 6 Oct 2000 21:12:12 +0000 (21:12 +0000)]
In an incremental parser, close the parser after feeding everything.

24 years agoDon't use a file object as system id; try to propagate the file name to
Martin v. Löwis [Fri, 6 Oct 2000 21:11:20 +0000 (21:11 +0000)]
Don't use a file object as system id; try to propagate the file name to
the InputSource.

24 years agoDon't report a final chunk for an external entity parser.
Martin v. Löwis [Fri, 6 Oct 2000 21:10:34 +0000 (21:10 +0000)]
Don't report a final chunk for an external entity parser.

24 years agoMove translation from expat.error to SAXParseException into feed, so that
Martin v. Löwis [Fri, 6 Oct 2000 21:08:59 +0000 (21:08 +0000)]
Move translation from expat.error to SAXParseException into feed, so that
callers of feed will get a SAXException.
In close, feed the last chunk first before calling endDocument, so that
the parser may report errors before the end of the document. Don't do
anything in a nested parser.
Don't call endDocument in parse; that will be called in close.
Use self._source for finding the SystemID; XML_GetBase will be cleared in
case of an error.

24 years agoInclude more information from the docstrings.
Fred Drake [Fri, 6 Oct 2000 21:07:14 +0000 (21:07 +0000)]
Include more information from the docstrings.

24 years agoAnother name.
Fred Drake [Fri, 6 Oct 2000 21:00:40 +0000 (21:00 +0000)]
Another name.

24 years agoDonn Cave <donn@oz.net>:
Fred Drake [Fri, 6 Oct 2000 20:42:33 +0000 (20:42 +0000)]
Donn Cave <donn@oz.net>:
Fix large file support for BeOS.

This closes SourceForge patch #101773.  Refer to the patch discussion for
information on possible alternate fixes.

24 years agoFix a couple of typos in docstrings.
Fred Drake [Fri, 6 Oct 2000 20:28:46 +0000 (20:28 +0000)]
Fix a couple of typos in docstrings.

24 years agoFix really bad typo, noted by Neil Schemenauer <nas@arctrix.com>.
Fred Drake [Fri, 6 Oct 2000 20:16:50 +0000 (20:16 +0000)]
Fix really bad typo, noted by Neil Schemenauer <nas@arctrix.com>.

24 years agoAdd notes on the requirements for subclasses.
Fred Drake [Fri, 6 Oct 2000 20:04:48 +0000 (20:04 +0000)]
Add notes on the requirements for subclasses.

This closes SourceForge bug #115928.

24 years agoRevise the versioning information to say that this was revised in 1.6,
Fred Drake [Fri, 6 Oct 2000 20:01:23 +0000 (20:01 +0000)]
Revise the versioning information to say that this was revised in 1.6,
not added then, and note what the change was (ncurses, change to a package).

24 years agoMade a number of revisions suggested by Fredrik Lundh.
Fred Drake [Fri, 6 Oct 2000 19:59:22 +0000 (19:59 +0000)]
Made a number of revisions suggested by Fredrik Lundh.
Revised the first paragraph so it doesn't sound like it was written
when 7-bit strings were assumed; note that Unicode strings can be used.

24 years agotest_linuxaudio:
Jeremy Hylton [Fri, 6 Oct 2000 19:39:55 +0000 (19:39 +0000)]
test_linuxaudio:
    read the header from the .au file and do a sanity check
    pass only the data to the audio device
    call flush() so that program does not exit until playback is complete
    call all the other methods to verify that they work minimally
    call setparameters with a bunch of bugs arguments

linuxaudiodev.c:
    use explicit O_WRONLY and O_RDONLY instead of 1 and 0
    add a string name to each of the entries in audio_types[]
    add AFMT_A_LAW to the list of known formats
    add x_mode attribute to lad object, stores imode from open call
    test ioctl return value as == -1, not < 0
    in read() method, resize string before return
    add getptr() method, that calls does ioctl on GETIPTR or GETOPTR
        depending on x_mode
    in setparameters() method, do better error checking and raise
        ValueErrors; also use ioctl calls recommended by Open Sound
        System Programmer's Guido (www.opensound.com)
    use PyModule_AddXXX to define names in module

24 years agoIt turns out that Guido does not like or encourage the use of the term
Fred Drake [Fri, 6 Oct 2000 19:39:47 +0000 (19:39 +0000)]
It turns out that Guido does not like or encourage the use of the term
"disciplines" for the __*__() methods, so they should be referred to as
"methods" or "special methods", as appropriate in context.

24 years ago__getslice__(): Make this use the constructor form that gets a sequence
Fred Drake [Fri, 6 Oct 2000 19:26:01 +0000 (19:26 +0000)]
__getslice__():  Make this use the constructor form that gets a sequence
                 as a parameter; this was the only use of the base
                 constructor or surgical alteration of another object's
                 data attribute.

This change simplifies the constructor requirements for subclasses.

This relates to SourceForge bug #115928.

24 years agoAdded a new "base" type, IOobject for which most of the
Jim Fulton [Fri, 6 Oct 2000 19:24:23 +0000 (19:24 +0000)]
Added a new "base" type, IOobject for which most of the
operations are defined.  This will, hopefully clarify
some of the logic.

Added close test to raise proper error when operations
are performed on closed StringIOs.

Added a position argument to the truncate method.

Added a size argument to readline.

Added PyArg_Parse calls for methods that don't take arguments to
make sure they don't take arguments.

24 years agoUncommented tests that failed for cStringIO,
Jim Fulton [Fri, 6 Oct 2000 19:21:32 +0000 (19:21 +0000)]
Uncommented tests that failed for cStringIO,

Added missing clode to make the clode test test a close. ;)

24 years agoAdding Jeremy's new test_import (SF patch 101709).
Tim Peters [Fri, 6 Oct 2000 18:46:22 +0000 (18:46 +0000)]
Adding Jeremy's new test_import (SF patch 101709).

24 years agoAdd SAXReaderNotAvailable, and use it to distinguish between an
Martin v. Löwis [Fri, 6 Oct 2000 17:41:52 +0000 (17:41 +0000)]
Add SAXReaderNotAvailable, and use it to distinguish between an
ImportError, and a missing driver.

24 years agoRemoving these scripts. redemo.py lives on in Tools/scripts/.
Guido van Rossum [Fri, 6 Oct 2000 17:38:42 +0000 (17:38 +0000)]
Removing these scripts.  redemo.py lives on in Tools/scripts/.
regexdemo.py is obsolete with the regex module.

24 years agoI'm moving redemo.py here from Demo/tkinter/guido, since it is
Guido van Rossum [Fri, 6 Oct 2000 17:37:12 +0000 (17:37 +0000)]
I'm moving redemo.py here from Demo/tkinter/guido, since it is
somewhat useful to learn regular expressions, and this way it'll be
installed on Windows.

This closes bug report 115609.

24 years ago[ Bug #113803 ] [2.0b1 NT4.0] printing non asci char causes idle to abort
Guido van Rossum [Fri, 6 Oct 2000 16:58:26 +0000 (16:58 +0000)]
[ Bug #113803 ] [2.0b1 NT4.0] printing non asci char causes idle to abort
http://sourceforge.net/bugs/?func=detailbug&bug_id=113803&group_id=5470

Add Unicode support and error handling to AsString().  Both AsString()
and Merge() now return NULL and set a proper Python exception
condition when an error happens; Merge() and other callers of
AsString() check for errors from AsString().  Also fixed cleanup in
Merge() and Tkapp_Call() return cleanup code; the fv array was not
necessarily completely initialized, causing calls to ckfree() with
garbage arguments!

(Also reindented some lines that were longer than 80 chars and
reformatted some code that used an alien coding standard.)

24 years agoUse the cvsinfo module instead of a module stuff off in my personal
Fred Drake [Fri, 6 Oct 2000 16:37:47 +0000 (16:37 +0000)]
Use the cvsinfo module instead of a module stuff off in my personal
collection.