]> granicus.if.org Git - python/log
python
24 years agostop messing around with goto and just write the macro correctly.
Greg Stein [Sun, 16 Jul 2000 21:39:49 +0000 (21:39 +0000)]
stop messing around with goto and just write the macro correctly.

24 years agoOnline help facility for the Python interprter and other interactive
Paul Prescod [Sun, 16 Jul 2000 19:53:00 +0000 (19:53 +0000)]
Online help facility for the Python interprter and other interactive
environments.

24 years agoMore of Rob W. W. Hooft's spelling fixes. The only ones left now are the
Thomas Wouters [Sun, 16 Jul 2000 19:05:38 +0000 (19:05 +0000)]
More of Rob W. W. Hooft's spelling fixes. The only ones left now are the
distutils patches, which I'll leave to the distutils maintainers.

Tip: review the patch like this:

grep "^[\!+-] " <patchfile>

To get a quick and easy way to review the actual changes. Most of the
changes are single-line ones, anyway.

24 years agoRob W. W. Hooft's spelling fixes for the Library Reference. I hope
Thomas Wouters [Sun, 16 Jul 2000 19:01:10 +0000 (19:01 +0000)]
Rob W. W. Hooft's spelling fixes for the Library Reference. I hope
SourceForge doesn't choke on this batch :-)

I'm not entirely sure this is 100% correct. The patch changes an
\index{persistency} to \index{presistence}, and I don't know what \index{}
does. But it seems to do so persi--er, consistently, so I hope it isn't a
problem.

24 years ago- change \x to mean "byte" also in unicode literals
Fredrik Lundh [Sun, 16 Jul 2000 18:47:43 +0000 (18:47 +0000)]
- change \x to mean "byte" also in unicode literals
  (patch #100912)

24 years agoFix fatal compiler (MSVC6) error:
Tim Peters [Sun, 16 Jul 2000 17:10:50 +0000 (17:10 +0000)]
Fix fatal compiler (MSVC6) error:
unicodeobject.c(735) :
    error C2143: syntax error : missing ';' before '}'

24 years agosplit and join on "/" in commonprefix
Skip Montanaro [Sun, 16 Jul 2000 16:52:45 +0000 (16:52 +0000)]
split and join on "/" in commonprefix

24 years agoFix to a bug found by Florian Weimer:
Marc-André Lemburg [Sun, 16 Jul 2000 13:29:13 +0000 (13:29 +0000)]
Fix to a bug found by Florian Weimer:

The UTF-8 decoder is still buggy (i.e. it doesn't pass Markus Kuhn's
stress test), mainly due to the following construct:

    #define UTF8_ERROR(details)  do {                       \
        if (utf8_decoding_error(&s, &p, errors, details))   \
            goto onError;                                   \
        continue;                                           \
    } while (0)

(The "continue" statement is supposed to exit from the outer loop,
but of course, it doesn't.  Indeed, this is a marvelous example of
the dangers of the C programming language and especially of the C
preprocessor.)

24 years agoSpelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
Thomas Wouters [Sun, 16 Jul 2000 12:04:32 +0000 (12:04 +0000)]
Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either
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 ;)

24 years agoBugfix by Rob W. W. Hooft, from his spelling fixes patch. This one is a
Thomas Wouters [Sun, 16 Jul 2000 11:57:20 +0000 (11:57 +0000)]
Bugfix by Rob W. W. Hooft, from his spelling fixes patch. This one is a
genuine bug, so I checked it in separately.

24 years agoImplemented getdefaultlocale() for macintosh, after an idea by Fredrik.
Jack Jansen [Sat, 15 Jul 2000 22:31:45 +0000 (22:31 +0000)]
Implemented getdefaultlocale() for macintosh, after an idea by Fredrik.

24 years agoModified the standard mac preamble so we include pymactoolbox.h in
Jack Jansen [Sat, 15 Jul 2000 22:29:30 +0000 (22:29 +0000)]
Modified the standard mac preamble so we include pymactoolbox.h in
stead of defining lots of function prototypes in each module.

24 years agoScannerPREUH3.initpatterns() should call Scanner.initpatterns() so the
Jack Jansen [Sat, 15 Jul 2000 22:27:47 +0000 (22:27 +0000)]
ScannerPREUH3.initpatterns() should call Scanner.initpatterns() so the
new comment patterns get included.

24 years agoOops, forgot to run autoheader before checking in the _getpty move to
Thomas Wouters [Sat, 15 Jul 2000 22:13:48 +0000 (22:13 +0000)]
Oops, forgot to run autoheader before checking in the _getpty move to
posixmodule.

24 years ago-- fixed the comment, too
Fredrik Lundh [Sat, 15 Jul 2000 20:58:44 +0000 (20:58 +0000)]
-- fixed the comment, too

24 years ago-- note to self: wait until 'cvs commit' has finished before
Fredrik Lundh [Sat, 15 Jul 2000 20:50:27 +0000 (20:50 +0000)]
-- note to self: wait until 'cvs commit' has finished before
   you edit the file.

24 years ago-- changed default encoding to "ascii". you can still change
Fredrik Lundh [Sat, 15 Jul 2000 20:45:23 +0000 (20:45 +0000)]
-- changed default encoding to "ascii".  you can still change
   the default via site.py...

24 years agoFix in PyList_New(). With GC enabled and when out of memory,
Vladimir Marangozov [Sat, 15 Jul 2000 03:31:31 +0000 (03:31 +0000)]
Fix in PyList_New().  With GC enabled and when out of memory,
free() the GC pointer, not the object pointer.

24 years agoBreak a cycle created in the saboteur() function.
Vladimir Marangozov [Sat, 15 Jul 2000 00:42:09 +0000 (00:42 +0000)]
Break a cycle created in the saboteur() function.

24 years agoGot rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.
Jack Jansen [Fri, 14 Jul 2000 22:52:50 +0000 (22:52 +0000)]
Got rid of obsolete HAVE_UNIVERSAL_HEADERS test and SystemSevenOrLater define.

24 years agoTest for TARGET_API_MAC_CARBON with #if in stead of #ifdef.
Jack Jansen [Fri, 14 Jul 2000 22:37:27 +0000 (22:37 +0000)]
Test for TARGET_API_MAC_CARBON with #if in stead of #ifdef.

24 years agoinclude stdio.h for sprintf prototype.
Jack Jansen [Fri, 14 Jul 2000 22:18:32 +0000 (22:18 +0000)]
include stdio.h for sprintf prototype.

24 years agopymactoolbox.h contains protoypes for all externally visible toolbox module
Jack Jansen [Fri, 14 Jul 2000 22:16:45 +0000 (22:16 +0000)]
pymactoolbox.h contains protoypes for all externally visible toolbox module
functions. Include it in stead of duplicating the declarations everywhere. Also
cleaned up toolbox module exports, and got rid of resNotFound error.

24 years agoinclude macdefs.h for declaration of getwd, if non-gusi python.
Jack Jansen [Fri, 14 Jul 2000 22:16:01 +0000 (22:16 +0000)]
include macdefs.h for declaration of getwd, if non-gusi python.

24 years agoPyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.
Jack Jansen [Fri, 14 Jul 2000 22:15:24 +0000 (22:15 +0000)]
PyMac_PromptGetFile and PyMac_GetDirectory don't exist in carbonpython.

24 years agoDon't declare sync if we use gusi.
Jack Jansen [Fri, 14 Jul 2000 22:14:46 +0000 (22:14 +0000)]
Don't declare sync if we use gusi.

24 years agoDocument the second round of ConfigParser changes.
Eric S. Raymond [Fri, 14 Jul 2000 15:00:02 +0000 (15:00 +0000)]
Document the second round of ConfigParser changes.

24 years agoMove (actually copy) support for the sgi._getpty() function into
Thomas Wouters [Fri, 14 Jul 2000 14:28:33 +0000 (14:28 +0000)]
Move (actually copy) support for the sgi._getpty() function into
posix.openpty(). And conveniently also check if CVS write access really
works.

Closes SF patch #100722

24 years agoConfigParser enhancements to edit existing configs, part 2
Eric S. Raymond [Fri, 14 Jul 2000 14:28:22 +0000 (14:28 +0000)]
ConfigParser enhancements to edit existing configs, part 2

24 years agoTypo fix from Bastian Kleineidam
Andrew M. Kuchling [Fri, 14 Jul 2000 13:35:07 +0000 (13:35 +0000)]
Typo fix from Bastian Kleineidam

24 years agomoving files to nondist/sf-html
Peter Schneider-Kamp [Fri, 14 Jul 2000 08:54:58 +0000 (08:54 +0000)]
moving files to nondist/sf-html

24 years agoGosh - clean up that messy HTML; make it valid XHTML instead.
Vladimir Marangozov [Fri, 14 Jul 2000 06:22:54 +0000 (06:22 +0000)]
Gosh - clean up that messy HTML; make it valid XHTML instead.

24 years agoBreak the cycles after testing cmp() on cyclic objects.
Vladimir Marangozov [Fri, 14 Jul 2000 04:32:09 +0000 (04:32 +0000)]
Break the cycles after testing cmp() on cyclic objects.

24 years agoadded information how to edit pages at http://python.sourceforge.net
Peter Schneider-Kamp [Fri, 14 Jul 2000 01:43:31 +0000 (01:43 +0000)]
added information how to edit pages at http://python.sourceforge.net

24 years agosmall FAQ about Python CVS and patches at SourceForge
Peter Schneider-Kamp [Fri, 14 Jul 2000 01:28:47 +0000 (01:28 +0000)]
small FAQ about Python CVS and patches at SourceForge

24 years agoUse PyObject_AsFileDescriptor
Andrew M. Kuchling [Thu, 13 Jul 2000 23:59:35 +0000 (23:59 +0000)]
Use PyObject_AsFileDescriptor

24 years agoDocument PyObject_AsFileDescriptor
Andrew M. Kuchling [Thu, 13 Jul 2000 23:58:16 +0000 (23:58 +0000)]
Document PyObject_AsFileDescriptor

24 years agoAdded PyObject_AsFileDescriptor, which checks for integer, long integer,
Andrew M. Kuchling [Thu, 13 Jul 2000 23:56:54 +0000 (23:56 +0000)]
Added PyObject_AsFileDescriptor, which checks for integer, long integer,
or .fileno() method

24 years agoANSI-fication (got lost in the deep seas of source forge <wink>)
Peter Schneider-Kamp [Thu, 13 Jul 2000 21:10:57 +0000 (21:10 +0000)]
ANSI-fication (got lost in the deep seas of source forge <wink>)

24 years agofix PyXXX_Length macros as suggested by Fred
Jeremy Hylton [Thu, 13 Jul 2000 19:39:15 +0000 (19:39 +0000)]
fix PyXXX_Length macros as suggested by Fred

24 years agoPatch by Toby Dickenson, mentored by Mark Hammond, to support
Guido van Rossum [Thu, 13 Jul 2000 15:45:17 +0000 (15:45 +0000)]
Patch by Toby Dickenson, mentored by Mark Hammond, to support
automatically finding (most of) the standard PYD extensions, and to
remove the hardcoded Python version.

24 years agoApply Greg Kochanski's fix for open/265.
Eric S. Raymond [Thu, 13 Jul 2000 13:25:07 +0000 (13:25 +0000)]
Apply Greg Kochanski's fix for open/265.

24 years agoFix bug open/243 reported by Dimitri Papadopoulos
Eric S. Raymond [Thu, 13 Jul 2000 13:12:21 +0000 (13:12 +0000)]
Fix bug open/243 reported by Dimitri Papadopoulos

24 years agojust fixing the indentation
Peter Schneider-Kamp [Thu, 13 Jul 2000 06:24:29 +0000 (06:24 +0000)]
just fixing the indentation

24 years agoraise error on duplicate function arguments
Peter Schneider-Kamp [Thu, 13 Jul 2000 06:15:04 +0000 (06:15 +0000)]
raise error on duplicate function arguments

example:

>>> def f(a,a):print a
...
SyntaxError: duplicate argument in function definition

24 years agoImprove the descriptions of expected exceptions for __getitem__(),
Fred Drake [Thu, 13 Jul 2000 04:57:58 +0000 (04:57 +0000)]
Improve the descriptions of expected exceptions for __getitem__(),
__setitem__(), and __delitem__().  Based on related comments from
Barry Warsaw.

24 years agoFrom Sam Rushing's Medusa, via SF patch #100858: add & document
Andrew M. Kuchling [Thu, 13 Jul 2000 01:26:58 +0000 (01:26 +0000)]
From Sam Rushing's Medusa, via SF patch #100858: add & document
os.seteuid(), os.setegid(), os.setreuid(), os.setregid().

24 years agoforgot to change copy.copy(m) to m[:]
Skip Montanaro [Thu, 13 Jul 2000 01:01:03 +0000 (01:01 +0000)]
forgot to change copy.copy(m) to m[:]

24 years agoPropagate the current exception in get_inprogress_dict() -- it doesn't
Vladimir Marangozov [Wed, 12 Jul 2000 23:39:38 +0000 (23:39 +0000)]
Propagate the current exception in get_inprogress_dict() -- it doesn't
need to be cleared.

24 years agodeleted obsolete SYMANTEC__CFM68K__ tests
Skip Montanaro [Wed, 12 Jul 2000 17:26:09 +0000 (17:26 +0000)]
deleted obsolete SYMANTEC__CFM68K__ tests

24 years agodelete obsolete SYMANTEC__CFM68K__ #ifdefs
Skip Montanaro [Wed, 12 Jul 2000 17:21:42 +0000 (17:21 +0000)]
delete obsolete SYMANTEC__CFM68K__ #ifdefs

24 years agofixed semantics of commonprefix to work by path elements instead of
Skip Montanaro [Wed, 12 Jul 2000 16:55:57 +0000 (16:55 +0000)]
fixed semantics of commonprefix to work by path elements instead of
characters.

24 years agoreplace PyXXX_Length calls with PyXXX_Size calls
Jeremy Hylton [Wed, 12 Jul 2000 13:05:33 +0000 (13:05 +0000)]
replace PyXXX_Length calls with PyXXX_Size calls

24 years agochange abstract size functions PySequence_Size &c.
Jeremy Hylton [Wed, 12 Jul 2000 12:56:19 +0000 (12:56 +0000)]
change abstract size functions PySequence_Size &c.
add macros for backwards compatibility with C source

24 years agoAdd "exceptions" to list of built-in modules for the sake of
Guido van Rossum [Wed, 12 Jul 2000 12:11:36 +0000 (12:11 +0000)]
Add "exceptions" to list of built-in modules for the sake of
sys.builtin_module_names.  (Noticed by Toby Dickenson.)

[Tim, please test!]

24 years agoAdd "exceptions" to list of built-in modules for the sake of
Guido van Rossum [Wed, 12 Jul 2000 12:09:05 +0000 (12:09 +0000)]
Add "exceptions" to list of built-in modules for the sake of
sys.builtin_module_names.  (Noticed by Toby Dickenson.)

24 years agoFixed up some ANSIfications.
Sjoerd Mullender [Wed, 12 Jul 2000 10:43:11 +0000 (10:43 +0000)]
Fixed up some ANSIfications.

24 years agoapply patch #100868 from Moshe Zadka:
Greg Stein [Wed, 12 Jul 2000 09:55:30 +0000 (09:55 +0000)]
apply patch #100868 from Moshe Zadka:
    refactor the copying of file data. new: shutil.copyfileobj(fsrc, fdst)

24 years agodebug_instance(): Use the same %p format directive as with
Barry Warsaw [Wed, 12 Jul 2000 05:18:36 +0000 (05:18 +0000)]
debug_instance(): Use the same %p format directive as with
debug_cycle(), and don't cast the pointer to a long.  Neither needs
the literal `0x' prefix as %p automatically inserts this (on Linux at
least).

24 years agoSecond try: checks whether right shift extends the sign bit.
Vladimir Marangozov [Wed, 12 Jul 2000 05:05:06 +0000 (05:05 +0000)]
Second try: checks whether right shift extends the sign bit.

Adds caching and reverts back the 'return' to 'exit()' in
AC_TRY_RUN as recommended by the Autoconf documentation.

24 years agoConvert coding style to be internally consistent and similar to the
Fred Drake [Wed, 12 Jul 2000 04:49:00 +0000 (04:49 +0000)]
Convert coding style to be internally consistent and similar to the
rest of the Python C code: space between "if", "for" and "(", no space
between "(", ")" and function call parameters, etc.

24 years agoAlways use the :funcname part of the format specifier for PyArg_ParseTuple()
Fred Drake [Wed, 12 Jul 2000 04:42:23 +0000 (04:42 +0000)]
Always use the :funcname part of the format specifier for PyArg_ParseTuple()
so we get better error messages.

24 years agoDocumentation for the gc module. Text from Neil Schemenauer
Fred Drake [Wed, 12 Jul 2000 04:22:53 +0000 (04:22 +0000)]
Documentation for the gc module.  Text from Neil Schemenauer
<nascheme@enme.ucalgary.ca>, markup & minor revisions from Fred
Drake.

24 years agoWorm around MSVC6 error on single string literal > 2Kb.
Tim Peters [Wed, 12 Jul 2000 04:02:10 +0000 (04:02 +0000)]
Worm around MSVC6 error on single string literal > 2Kb.

24 years agoRemove extra argument to method call
Andrew M. Kuchling [Wed, 12 Jul 2000 03:38:34 +0000 (03:38 +0000)]
Remove extra argument to method call

24 years agoChecks whether right shift extends the sign bit.
Vladimir Marangozov [Wed, 12 Jul 2000 03:02:43 +0000 (03:02 +0000)]
Checks whether right shift extends the sign bit.

Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine
(in main(), use return instead of exit).

Closes patch #100832

24 years agoChecks whether right shift extends the sign bit.
Vladimir Marangozov [Wed, 12 Jul 2000 03:02:16 +0000 (03:02 +0000)]
Checks whether right shift extends the sign bit.

Patch by Thomas Wouters <thomas@xs4all.net> with small changes of mine
(in main(), use return instead of exit).

Closes patch #100832
(but I can't assign it to myself, nor close it -- sorry)

24 years agoFix typo in error message
Andrew M. Kuchling [Wed, 12 Jul 2000 02:58:28 +0000 (02:58 +0000)]
Fix typo in error message

24 years agoResynchronize the TeX docs with (a) the module docstring, and (b) my recent
Eric S. Raymond [Wed, 12 Jul 2000 02:56:15 +0000 (02:56 +0000)]
Resynchronize the TeX docs with (a) the module docstring, and (b) my recent
fix to the code to make it behave like the module docstring.

24 years agoFix bugs in readinst():
Andrew M. Kuchling [Wed, 12 Jul 2000 01:27:18 +0000 (01:27 +0000)]
Fix bugs in readinst():
* There was no error reported if the .read() method returns a non-string
* If read() returned too much data, the buffer would be overflowed causing a
  core dump
* Used strncpy, not memcpy, which seems incorrect if there are embedded \0s.
* The args and bytes objects were leaked

24 years agoPatch #100854 from jhylton: eliminate compiler warnings in pyexpat:
Andrew M. Kuchling [Wed, 12 Jul 2000 00:53:41 +0000 (00:53 +0000)]
Patch #100854 from jhylton: eliminate compiler warnings in pyexpat:
The first two warnings seem harmless enough,
but the last one looks like a potential bug: an
uninitialized int is returned on error. (I also
ended up reformatting some of the code,
because it was hard to read.)

24 years agoFix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().
Vladimir Marangozov [Wed, 12 Jul 2000 00:49:17 +0000 (00:49 +0000)]
Fix mixed mallocs: re->re_patbuf.buffer is allocated with std malloc().

24 years agonew test for posixpath module
Skip Montanaro [Wed, 12 Jul 2000 00:20:45 +0000 (00:20 +0000)]
new test for posixpath module

24 years agonew test file for posixpath module
Skip Montanaro [Wed, 12 Jul 2000 00:20:08 +0000 (00:20 +0000)]
new test file for posixpath module

24 years agoErrare humanum est.
Peter Schneider-Kamp [Tue, 11 Jul 2000 23:00:12 +0000 (23:00 +0000)]
Errare humanum est.

Changed parameter in getsockaddrlen from unsigned to socklen_t.

24 years agoGot rid of __SC__ ifdefs.
Jack Jansen [Tue, 11 Jul 2000 22:37:03 +0000 (22:37 +0000)]
Got rid of __SC__ ifdefs.

24 years agoInclude macglue.h for some function prototypes, and renamed a few
Jack Jansen [Tue, 11 Jul 2000 21:59:16 +0000 (21:59 +0000)]
Include macglue.h for some function prototypes, and renamed a few
mac-specific functions to have a PyMac_ name.

24 years agoInclude macglue.h on the macintosh, so function prototypes are in scope.
Jack Jansen [Tue, 11 Jul 2000 21:47:20 +0000 (21:47 +0000)]
Include macglue.h on the macintosh, so function prototypes are in scope.

24 years agoOne more include of limits.h (possibly to be moved elsewhere when there is
Jack Jansen [Tue, 11 Jul 2000 21:35:02 +0000 (21:35 +0000)]
One more include of limits.h (possibly to be moved elsewhere when there is
consensus where it should go).

24 years agoRemoved guesstabsize.c, which is obsolete.
Jack Jansen [Tue, 11 Jul 2000 21:18:44 +0000 (21:18 +0000)]
Removed guesstabsize.c, which is obsolete.

24 years ago- Removed guesstabsize.c, which is obsolete.
Jack Jansen [Tue, 11 Jul 2000 21:18:10 +0000 (21:18 +0000)]
- Removed guesstabsize.c, which is obsolete.
- ANSIfication step 3: enable "require prototypes" flags. Still lots of warnings, mainly on init routines and bgen stuff.

24 years agoANSIfication step 2: make sure all needed prototypes are available, and all needed
Jack Jansen [Tue, 11 Jul 2000 21:16:03 +0000 (21:16 +0000)]
ANSIfication step 2: make sure all needed prototypes are available, and all needed
header files included.

24 years agoAdded a declaration of fileno() if we use GUSI. Not sure whether it should go here...
Jack Jansen [Tue, 11 Jul 2000 21:14:21 +0000 (21:14 +0000)]
Added a declaration of fileno() if we use GUSI. Not sure whether it should go here or in pyport.h really...

24 years agoFiddled declaration/implementation of setcallback() so that it is ansifyable.
Jack Jansen [Tue, 11 Jul 2000 21:12:55 +0000 (21:12 +0000)]
Fiddled declaration/implementation of setcallback() so that it is ansifyable.

24 years agosmall updates to string_join:
Jeremy Hylton [Tue, 11 Jul 2000 20:55:38 +0000 (20:55 +0000)]
small updates to string_join:
    use PyString_AS_STRING macro on local string object
    when resizing string, make sure resized string will always be big enough
    split string containing error message across two lines
add test to string_tests that causes resizing

24 years agosatisfy the -Wall: remove two unused local variables and unused ins function
Jeremy Hylton [Tue, 11 Jul 2000 20:30:05 +0000 (20:30 +0000)]
satisfy the -Wall: remove two unused local variables and unused ins function

24 years agoANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.
Jack Jansen [Tue, 11 Jul 2000 19:51:05 +0000 (19:51 +0000)]
ANSIfication step 1: get rid of Py_PROTO and Py_FPROTO.

24 years agoFix incomplete merge of Ping's SyntaxError enhancement patch (my fault).
Fred Drake [Tue, 11 Jul 2000 19:49:15 +0000 (19:49 +0000)]
Fix incomplete merge of Ping's SyntaxError enhancement patch (my fault).
Comment change only.

24 years agoMoshe Zadka <mzadka@geocities.com>:
Fred Drake [Tue, 11 Jul 2000 19:43:47 +0000 (19:43 +0000)]
Moshe Zadka <mzadka@geocities.com>:
Update the "in" / "not in" description to accomodate the current use
of the __contains__() discipline.  This patch also incorporates
suggestions from Marc-Andre Lemburg <mal@lemburg.com>, minor markup
revisions from Fred Drake, and some rewording of the first affected
paragraph (also from Fred).

Closes SourceForge patch #100831.

24 years agoCreate two new exceptions: IndentationError and TabError. These are
Fred Drake [Tue, 11 Jul 2000 17:53:00 +0000 (17:53 +0000)]
Create two new exceptions:  IndentationError and TabError.  These are
used for indentation related errors.  This patch includes Ping's
improvements for indentation-related error messages.

Closes SourceForge patches #100734 and #100856.

24 years agofixed a warning in getsockaddrlen
Peter Schneider-Kamp [Tue, 11 Jul 2000 17:40:30 +0000 (17:40 +0000)]
fixed a warning in getsockaddrlen

24 years agoadd expandtabs command (-e)
Peter Schneider-Kamp [Tue, 11 Jul 2000 16:43:16 +0000 (16:43 +0000)]
add expandtabs command (-e)
change eliminate to delete (-d)

24 years agoChange the table in the pyexpat.errors module to a series of datadesc
Fred Drake [Tue, 11 Jul 2000 16:30:30 +0000 (16:30 +0000)]
Change the table in the pyexpat.errors module to a series of datadesc
elements (since the table was pretty screwed up); this is how it is done
elsewhere in the manual.

I could use some help creating descriptions of the specific error
identifiers (input conditions that lead to each error, etc.).

24 years agofix bug #42 reported by Andrew Dalke
Jeremy Hylton [Tue, 11 Jul 2000 15:15:31 +0000 (15:15 +0000)]
fix bug #42 reported by Andrew Dalke

The Compare close contains a close method that checks to see if there
is any unconsumed data in the Compare instance; i.e. if the canonical
output file contains more data than was produced by the current test
run. This method was never called, allowing differences to go
undetected.

Fix is to call close after the test is run (after __import__)

output/test_long and output/test_popen2 needed trivial changes
output/test_select contained lots of text, but test_select.py produced
    no output

24 years agoNeil Schemenauer <nascheme@enme.ucalgary.ca>:
Fred Drake [Tue, 11 Jul 2000 14:37:41 +0000 (14:37 +0000)]
Neil Schemenauer <nascheme@enme.ucalgary.ca>:
Change a cast, intialize a local, and make some sprintf() format strings
type-appropriate (add the "l" to "%d").

Closes SourceForge patch #100737.

24 years agoBug fix: ? and ! were not full aliases for `help' and `shell' as implied in
Eric S. Raymond [Tue, 11 Jul 2000 13:03:55 +0000 (13:03 +0000)]
Bug fix: ? and ! were not full aliases for `help' and `shell' as implied in
the documentation; the cases `? foo' and `! foo' failed.

24 years agofixed inconsistent use of tab and spaces
Peter Schneider-Kamp [Tue, 11 Jul 2000 11:24:41 +0000 (11:24 +0000)]
fixed inconsistent use of tab and spaces

24 years agoAdd test of resize() method of mmap objects
Andrew M. Kuchling [Tue, 11 Jul 2000 10:45:28 +0000 (10:45 +0000)]
Add test of resize() method of mmap objects

24 years agoDocstring changes.
Andrew M. Kuchling [Tue, 11 Jul 2000 10:38:24 +0000 (10:38 +0000)]
Docstring changes.

24 years agoJeremy Hylton:
Marc-André Lemburg [Tue, 11 Jul 2000 09:47:04 +0000 (09:47 +0000)]
Jeremy Hylton:
better error message for unicode coercion failure