]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
24 years agoRemove some false statements.
Fred Drake [Thu, 19 Jul 2001 03:49:54 +0000 (03:49 +0000)] 
Remove some false statements.

24 years agoRemove some false comments.
Fred Drake [Thu, 19 Jul 2001 03:47:04 +0000 (03:47 +0000)] 
Remove some false comments.

Reorganize so the initialization sequences does not bite us in the foot.
(There is no good reason to discard classes that clients may want to
subclass.)

24 years agothis closes patches item 429136 and brings the release21-maint version into
Skip Montanaro [Wed, 18 Jul 2001 23:14:25 +0000 (23:14 +0000)] 
this closes patches item 429136 and brings the release21-maint version into
sync with the head branch.

24 years agoUpdated for 2.1.1. Just should check whether anything more about the IDE is worth...
Jack Jansen [Wed, 18 Jul 2001 22:40:41 +0000 (22:40 +0000)] 
Updated for 2.1.1. Just should check whether anything more about the IDE is worth mentioning.

24 years agoUpdated for 2.1.1.
Jack Jansen [Wed, 18 Jul 2001 22:40:15 +0000 (22:40 +0000)] 
Updated for 2.1.1.

24 years agoFirst set of changes for 2.1.1. MacPython builds and
Jack Jansen [Wed, 18 Jul 2001 22:39:59 +0000 (22:39 +0000)] 
First set of changes for 2.1.1. MacPython builds and
passes the selftest with these.

24 years agoIf Python doesn't have a Unicode codec for the current system encoding
Jack Jansen [Wed, 18 Jul 2001 22:37:56 +0000 (22:37 +0000)] 
If Python doesn't have a Unicode codec for the current system encoding
return "ascii", not "macroman".

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Wed, 18 Jul 2001 22:37:56 +0000 (22:37 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoLots of small updates, some long overdue.
Fred Drake [Wed, 18 Jul 2001 20:01:36 +0000 (20:01 +0000)] 
Lots of small updates, some long overdue.

24 years agoI think it's good to be explicit about the version in README.
Guido van Rossum [Wed, 18 Jul 2001 19:40:57 +0000 (19:40 +0000)] 
I think it's good to be explicit about the version in README.

24 years agoUpdate the version to the final 2.1.1.
Guido van Rossum [Wed, 18 Jul 2001 19:40:14 +0000 (19:40 +0000)] 
Update the version to the final 2.1.1.

24 years agoBump version number and set the date for the 2.1.1 release.
Fred Drake [Wed, 18 Jul 2001 19:36:32 +0000 (19:36 +0000)] 
Bump version number and set the date for the 2.1.1 release.

24 years agoAdd a more substantial example startup file for the interactive shell;
Fred Drake [Wed, 18 Jul 2001 19:21:43 +0000 (19:21 +0000)] 
Add a more substantial example startup file for the interactive shell;
sample startup script provided by Itamar Shtull-Trauring.

This closes SF patch #410890.

Add some logical markup where it was missing.

24 years agoBackport of AMK's checkins of configure.in (1.228), config.h.in (2.101) and
Thomas Wouters [Mon, 16 Jul 2001 16:07:26 +0000 (16:07 +0000)] 
Backport of AMK's checkins of configure.in (1.228), config.h.in (2.101) and
configure (1.220):

[Bug #438050] Check for sys/poll.h in configure script

24 years agoBackport of AMK's checkin 2.52:
Thomas Wouters [Mon, 16 Jul 2001 16:03:31 +0000 (16:03 +0000)] 
Backport of AMK's checkin 2.52:

[Bug #438050]
   Include sys/poll.h if it was found by the configure script.  The OpenGroup
   spec says poll.h is the correct header file to use, so that file is
   preferred.

24 years agoBackport AMK's checkin 1.42:
Thomas Wouters [Mon, 16 Jul 2001 16:00:32 +0000 (16:00 +0000)] 
Backport AMK's checkin 1.42:

Fix bug #437487: "2.1 build on Solaris fails if CC is set"
by adding the contents of CCSHARED to the compiler specified by CC

24 years agoFix SF #441664: Python crash on del of a slice of a mmap
Thomas Wouters [Mon, 16 Jul 2001 15:45:20 +0000 (15:45 +0000)] 
Fix SF #441664: Python crash on del of a slice of a mmap

Check for slice/item deletion, which calls slice/item assignment with a NULL
value, and raise a TypeError instead of coredumping. Bugreport and suggested
fix by Alex Martelli.

24 years agoRevise the description of time.clock() so that it correctly describes the
Fred Drake [Mon, 16 Jul 2001 15:41:38 +0000 (15:41 +0000)] 
Revise the description of time.clock() so that it correctly describes the
Windows version of the function as well as the Unix flavor.

This fixes SF bug #441357.

24 years agoPrepare Windows build for 2.1.1 final (buildno and installer screens).
Tim Peters [Sat, 14 Jul 2001 03:39:35 +0000 (03:39 +0000)] 
Prepare Windows build for 2.1.1 final (buildno and installer screens).

24 years agoFix the markup of the caret charater in a couple of places; LaTeX's
Fred Drake [Sat, 14 Jul 2001 03:07:55 +0000 (03:07 +0000)] 
Fix the markup of the caret charater in a couple of places; LaTeX's
special character bite us again.  ;-(

This fixes SF bug #440911.

24 years agoArgh. Somehow the header for the BEOPEN license had 2.1.1 in it.
Guido van Rossum [Fri, 13 Jul 2001 17:06:26 +0000 (17:06 +0000)] 
Argh.  Somehow the header for the BEOPEN license had 2.1.1 in it.
That should be 2.0.

24 years agoThis commit was manufactured by cvs2svn to create tag 'r211c1'. v2.1.1c1
cvs2svn [Fri, 13 Jul 2001 15:10:55 +0000 (15:10 +0000)] 
This commit was manufactured by cvs2svn to create tag 'r211c1'.

24 years agoExpand the blob on Solaris to mention passing '-Xc' to compile Python
Thomas Wouters [Fri, 13 Jul 2001 15:10:55 +0000 (15:10 +0000)] 
Expand the blob on Solaris to mention passing '-Xc' to compile Python
correctly. Note that 'faulty' should actually be spelled 'fawlty', but I
don't want those bugreports assigned to me ;)

24 years agoAdd credit for a last-minute fix in the re documentation.
Fred Drake [Thu, 12 Jul 2001 14:59:49 +0000 (14:59 +0000)] 
Add credit for a last-minute fix in the re documentation.

24 years agoFix return value for m.group() for groups not in the part of the RE that
Fred Drake [Thu, 12 Jul 2001 14:15:03 +0000 (14:15 +0000)] 
Fix return value for m.group() for groups not in the part of the RE that
matched; reported by Paul Moore.

24 years agoPreliminary NEWS entry for 2.1.1c1
Thomas Wouters [Thu, 12 Jul 2001 13:38:18 +0000 (13:38 +0000)] 
Preliminary NEWS entry for 2.1.1c1

24 years agoNet result of Tim's checkins 2.28 through 2.31:
Thomas Wouters [Thu, 12 Jul 2001 12:43:11 +0000 (12:43 +0000)] 
Net result of Tim's checkins 2.28 through 2.31:

- SF but #417587: compiler warnings compiling 2.1.
  Repaired *some* of the SGI compiler warnings Sjoerd Mullender
  reported.

- Minor fiddling related to
  SF patch 416251 2.1c1 mmapmodule: unused vrbl cleanup

- Fix the .find() method for memory maps.

  1) it didn't obey the "start" parameter (and when it does, we must
     validate the value)
  2) the return value needs to be an absolute index, rather than
     relative to some arbitrary point in the file

  (checking CVS, it appears this method never worked; these changes
   bring it into line with typical .find() behavior)

- Fix new compiler warnings.  Also boost "start" from (C) int to long and
  return a (C) long:  PyArg_ParseTuple and Py_BuildValue may not let
  us get at the size_t we really want, but C int is clearly too small
  for a 64-bit box, and both the start parameter and the return value
  should work for large mapped files even on 32-bit boxes.  The code
  really needs to be rethought from scratch (not by me, though ...).

24 years agoBackport Tim's checkin 1.9:
Thomas Wouters [Thu, 12 Jul 2001 12:28:10 +0000 (12:28 +0000)] 
Backport Tim's checkin 1.9:

SF bug 418615: regular expression bug in pipes.py.
Obviously bad regexps, spotted by Jeffery Collins.

24 years agoBackport Tim's checkin 1.7:
Thomas Wouters [Thu, 12 Jul 2001 12:26:42 +0000 (12:26 +0000)] 
Backport Tim's checkin 1.7:

SF bug 418296: WinMain.c should use WIN32_LEAN_AND_MEAN.
I believe Kevin Rodgers here!  The old WINDOWS_LEAN_AND_MEAN has, AFAICT,
always been wrong.

24 years agoRe-do the broken-nice() patch to break less platforms. Hopefully none :P
Thomas Wouters [Wed, 11 Jul 2001 22:27:39 +0000 (22:27 +0000)] 
Re-do the broken-nice() patch to break less platforms. Hopefully none :P
Also note that it isn't just Linux nice() that is broken: at least FreeBSD
and BSDI also have this problem. os.nice() should probably just be emulated
using getpriority()/setpriority(), if they are available, but that isn't
worth putting in 2.1.1.

24 years agoMove the section on concrete numeric objects before the section on
Fred Drake [Wed, 11 Jul 2001 20:40:05 +0000 (20:40 +0000)] 
Move the section on concrete numeric objects before the section on
concrete sequence objects, since their API is simpler.

This is in response to a comment in SF bug #440037.

(Does this really belong in the bugfix release?  Yes: this is a readability
bug, and those are important in the documentation.)

24 years agoAdded information about the timeout parameter to the poll() method for
Fred Drake [Wed, 11 Jul 2001 18:49:00 +0000 (18:49 +0000)] 
Added information about the timeout parameter to the poll() method for
polling objects.  This closes SF bug #439823.

Fixed a minor markup bug.

24 years agoPatch #439995 (slightly modified from the uploaded version):
Thomas Wouters [Wed, 11 Jul 2001 14:01:08 +0000 (14:01 +0000)] 
Patch #439995 (slightly modified from the uploaded version):

Work around Linux's nonstandard nice() systemcall, which does not return the
new priority.

This closes SF bug #439990.

24 years agoBackport of Guido's checkins of acconfig.h (1.50), configure.in (1.224) and
Thomas Wouters [Wed, 11 Jul 2001 12:18:24 +0000 (12:18 +0000)] 
Backport of Guido's checkins of acconfig.h (1.50), configure.in (1.224) and
readline.c (2.36), and re-generated config.h.in and configure:

SF Patch #432457 by Jason Tishler: support for readline 4.2.

This patch allows the readline module to build cleanly with GNU
readline 4.2 without breaking the build for earlier GNU readline
versions.  The configure script checks for the presence of
rl_completion_matches in libreadline.

24 years agoBackport of the socketserver test, including output file (which is still
Thomas Wouters [Wed, 11 Jul 2001 12:15:15 +0000 (12:15 +0000)] 
Backport of the socketserver test, including output file (which is still
necessary in the 2.1 branch.) Guido's original checkin message:

A test suite for SocketServer.py that exposes the various bugs just
fixed.  Regrettably, this must be run manually -- somehow the I/O
redirection of the regression test breaks the test.  When run under
the regression test, this raises ImportError with a warning to that
effect.

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Wed, 11 Jul 2001 12:15:15 +0000 (12:15 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoBackport of Guido's checkin 1.25:
Thomas Wouters [Wed, 11 Jul 2001 12:05:49 +0000 (12:05 +0000)] 
Backport of Guido's checkin 1.25:

Fix various serious problems:

- The ThreadingTCPServer class and its derived classes were completely
  broken because the main thread would close the request before the
  handler thread had time to look at it.  This was introduced by
  Ping's close_request() patch.  The fix moves the close_request()
  calls to after the handler has run to completion in the BaseServer
  class and the ForkingMixIn class; when using the ThreadingMixIn,
  closing the request is the handler's responsibility.

- The ForkingUDPServer class has always been been broken because the
  socket was closed in the child before calling the handler.  I fixed
  this by simply not calling server_close() in the child at all.

- I cannot get the UnixDatagramServer class to work at all.  The
  recvfrom() call doesn't return a meaningful client address.  I added
  a comment to this effect.  Maybe it works on other Unix versions.

- The __all__ variable was missing ThreadingMixIn and ForkingMixIn.

- Bumped __version__ to "0.4".

- Added a note about the test suite (to be checked in shortly).

24 years agoBackport of Tim's checkin 2.178:
Thomas Wouters [Wed, 11 Jul 2001 12:03:44 +0000 (12:03 +0000)] 
Backport of Tim's checkin 2.178:

SF bug #438295: [Windows] __init__.py cause strange behavior

Probable fix (the bug report doesn't have enough info to say for sure).
find_init_module():  Insist on a case-sensitive match for __init__ files.
Given __INIT__.PY instead, find_init_module() thought that was fine, but
the later attempt to do find_module("__INIT__.PY") didn't and its caller
silently suppressed the resulting ImportError.  Now find_init_module()
refuses to accept __INIT__.PY to begin with.

24 years agoBackport Tim's checkin 1.17:
Thomas Wouters [Wed, 11 Jul 2001 11:38:20 +0000 (11:38 +0000)] 
Backport Tim's checkin 1.17:

SF patch #440144:  Tests and minor bugfix for uu module

decode():  While writing tests for uu.py, Nick Mathewson discovered
that the 'Truncated input file' exception could never get raised,
because its "if not str:" test was actually testing the builtin
function "str", not the local string vrbl "s" as intended.

24 years agoAdd another name.
Fred Drake [Tue, 10 Jul 2001 16:20:59 +0000 (16:20 +0000)] 
Add another name.

24 years agoCorrected the refcount information for PyList_SET_ITEM().
Fred Drake [Tue, 10 Jul 2001 16:19:26 +0000 (16:19 +0000)] 
Corrected the refcount information for PyList_SET_ITEM().

24 years agoDocument PyObject_New(), PyObject_NewVar(), PyObject_Init(),
Fred Drake [Tue, 10 Jul 2001 16:11:09 +0000 (16:11 +0000)] 
Document PyObject_New(), PyObject_NewVar(), PyObject_Init(),
PyObject_InitVar(), PyObject_Del(), PyObject_NEW(),
PyObject_NEW_VAR(), and PyObject_DEL().

Add notes to PyMem_Malloc() and PyMem_New() about the memory buffers
not being initialized.

This fixes SF bug #439012.

Added explicit return value information for PyList_SetItem(),
PyDict_SetItem(), and PyDict_SetItemString().  Corrected return type
for PyList_SET_ITEM().

Fixed index entries in the descriptions of PyLong_AsLong() and
PyLong_AsUnignedLong().

This fixes the API manual portion of SF bug #440037.

Note that the headers properly declare everything as 'extern "C"' for
C++ users.

Document _Py_NoneStruct.

Added links to the Extending & Embedding manual for PyArg_ParseTuple()
and PyArg_ParseTupleAndKeywords().

Added note that PyArg_Parse() should not be used in new code.

Fix up a few style nits -- avoid "e.g." and "i.e." -- these make
translation more difficult, as well as reading the English more
difficult for non-native speakers.

24 years agoAdded descriptions for some modules that previously did not have any
Fred Drake [Tue, 10 Jul 2001 14:20:20 +0000 (14:20 +0000)] 
Added descriptions for some modules that previously did not have any
information about them, based on comments from Jack Jansen.

24 years agoFix for SF bug #436525, reported by Greg Kochanski:
Thomas Wouters [Mon, 9 Jul 2001 14:34:16 +0000 (14:34 +0000)] 
Fix for SF bug #436525, reported by Greg Kochanski:
The block/unblock thread macros are called 'Py_BLOCK_THREADS' and
'Py_UNBLOCK_THREADS', not 'Py_BEGIN_BLOCK_THREADS' and
'Py_BEGIN_UNBLOCK_THREADS'.

24 years agoSF bug #439104: Tuple richcompares has code-typo.
Tim Peters [Fri, 6 Jul 2001 17:48:47 +0000 (17:48 +0000)] 
SF bug #439104: Tuple richcompares has code-typo.
Symptom:  (1, 2, 3) <= (1, 2) returned 1.
Also an isomorphic error was in the list richcompare code.

24 years agoWhen reading a continuation line, make sure we still use the transformed
Fred Drake [Fri, 6 Jul 2001 17:23:22 +0000 (17:23 +0000)] 
When reading a continuation line, make sure we still use the transformed
name when filling in the internal data structures, otherwise we incorrectly
raise a KeyError.

This fixes SF bug #432369.

24 years agoExplain the exit code for the wait() method, including a reference to
Fred Drake [Fri, 6 Jul 2001 17:18:05 +0000 (17:18 +0000)] 
Explain the exit code for the wait() method, including a reference to
the os.W*() functions used to interpret the return value.

This fixes SF bug #429361.

24 years agoThe fpectl module does not work on Windows, so remove Windows from the
Fred Drake [Thu, 5 Jul 2001 21:20:01 +0000 (21:20 +0000)] 
The fpectl module does not work on Windows, so remove Windows from the
\platform statement.

Also fix a minor style consistency nit in an example.

24 years agoAllow underscores in tag names and quote characters in unquoted attribute
Fred Drake [Thu, 5 Jul 2001 18:22:48 +0000 (18:22 +0000)] 
Allow underscores in tag names and quote characters in unquoted attribute
values.  The change for attribute values matches the way Mozilla and
Navigator view the world, at least.

This closes SF bug #436621.

24 years agoOnly write out one blank line before the request data.
Fred Drake [Wed, 4 Jul 2001 05:18:18 +0000 (05:18 +0000)] 
Only write out one blank line before the request data.
This closes SF patch #419459.

24 years agoMarked the parameters to Stats.print_*() as optional.
Fred Drake [Mon, 2 Jul 2001 21:22:56 +0000 (21:22 +0000)] 
Marked the parameters to Stats.print_*() as optional.

This closes SF bug #438032.

24 years agoAvoid using os.path.normcase() on sys.path elements; doing so causes paths
Fred Drake [Mon, 2 Jul 2001 16:56:09 +0000 (16:56 +0000)] 
Avoid using os.path.normcase() on sys.path elements; doing so causes paths
to be presented in an unfamiliar case on case-preserving filesystems.

This closes SF patch #436173.

24 years agoAdded another name.
Fred Drake [Mon, 2 Jul 2001 15:12:25 +0000 (15:12 +0000)] 
Added another name.

24 years agoUpdate to reflect Python 2.1.1 release planning.
Fred Drake [Mon, 2 Jul 2001 15:11:34 +0000 (15:11 +0000)] 
Update to reflect Python 2.1.1 release planning.

24 years ago2.1.1c1 WIndows fiddling, plus patchlevel.h.
Tim Peters [Mon, 2 Jul 2001 04:31:28 +0000 (04:31 +0000)] 
2.1.1c1 WIndows fiddling, plus patchlevel.h.

24 years agoUse the more conventional "self" as the name of the self parameter in an
Fred Drake [Fri, 29 Jun 2001 17:51:42 +0000 (17:51 +0000)] 
Use the more conventional "self" as the name of the self parameter in an
example.  It actually confused a reader.

24 years agoCorrect a markup error for an accented character.
Fred Drake [Fri, 29 Jun 2001 16:24:47 +0000 (16:24 +0000)] 
Correct a markup error for an accented character.

Reported by Milan Zamazal <pdm@zamazal.org>.

24 years agoRemoved some stray periods, and fix up a number of visible markup
Fred Drake [Fri, 29 Jun 2001 16:22:36 +0000 (16:22 +0000)] 
Removed some stray periods, and fix up a number of visible markup
consistency errors (mostly omitted "()" at the end of function and
method names).

Reported by Milan Zamazal <pdm@zamazal.org>.

24 years agoAnother name.
Fred Drake [Fri, 29 Jun 2001 15:41:45 +0000 (15:41 +0000)] 
Another name.

24 years agoSourceForge bug #437041:
Fred Drake [Fri, 29 Jun 2001 15:41:19 +0000 (15:41 +0000)] 
SourceForge bug #437041:
Use a portable format in the example that creates a timestamp suitable for
use in email, also updating it and the footnote from RFC 822 to RFC 2822.

24 years agoAnother name.
Fred Drake [Fri, 29 Jun 2001 15:01:14 +0000 (15:01 +0000)] 
Another name.

24 years agoSimplify an example based on comment from Thomas Holenstein <thomas@hex.ch>:
Fred Drake [Fri, 29 Jun 2001 15:00:34 +0000 (15:00 +0000)] 
Simplify an example based on comment from Thomas Holenstein <thomas@hex.ch>:
Do not use an extra flag variable to test only once in one subsequent if
statement.

24 years agoBackport Tim's checkin 1.12:
Thomas Wouters [Wed, 27 Jun 2001 15:07:17 +0000 (15:07 +0000)] 
Backport Tim's checkin 1.12:

doctest systematically leaked memory when handling an exception in an
example (an obvious trackback cycle).  Repaired.

24 years agoBackport of Tim's checkin 1.35:
Thomas Wouters [Wed, 27 Jun 2001 14:26:58 +0000 (14:26 +0000)] 
Backport of Tim's checkin 1.35:

SF bug 434186: 0x80000000/2 != 0x80000000>>1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder <wink> ...

24 years agoBackport of Tim's checkin 2.57:
Thomas Wouters [Wed, 27 Jun 2001 14:24:12 +0000 (14:24 +0000)] 
Backport of Tim's checkin 2.57:

SF bug 434186: 0x80000000/2 != 0x80000000>>1
i_divmod:  New and simpler algorithm.  Old one returned gibberish on most
boxes when the numerator was -sys.maxint-1.  Oddly enough, it worked in the
release (not debug) build on Windows, because the compiler optimized away
some tricky sign manipulations that were incorrect in this case.
Makes you wonder <wink> ...

24 years agoBackport Tim's checkin 2.247:
Thomas Wouters [Wed, 27 Jun 2001 14:13:32 +0000 (14:13 +0000)] 
Backport Tim's checkin 2.247:

SF bug 433228:  repr(list) woes when len(list) big
call_object:  If the object isn't callable, display its type in the error
msg rather than its repr.

24 years agoSet PYTHONHOMEHELP to 2.1
Thomas Wouters [Wed, 27 Jun 2001 14:11:12 +0000 (14:11 +0000)] 
Set PYTHONHOMEHELP to 2.1

24 years agoBackport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):
Thomas Wouters [Wed, 27 Jun 2001 14:07:50 +0000 (14:07 +0000)] 
Backport Tim's checkin 1.26 (patch probably by Michael Hudson, not Hundson):

SF bug 431772:  traceback.print_exc() causes traceback
Patch from Michael Hundson.
format_exception_only() blew up when trying to report a SyntaxError
from a string input (line is None in this case, but it assumed a string).

24 years agoBackport Tim's checkin 2.201:
Thomas Wouters [Wed, 27 Jun 2001 14:04:03 +0000 (14:04 +0000)] 
Backport Tim's checkin 2.201:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Tim's checkin 1.20:
Thomas Wouters [Wed, 27 Jun 2001 14:03:30 +0000 (14:03 +0000)] 
Backport Tim's checkin 1.20:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Tim's checkin 1.97:
Thomas Wouters [Wed, 27 Jun 2001 14:02:14 +0000 (14:02 +0000)] 
Backport Tim's checkin 1.97:

SF bug 430991: wrong co_lnotab
Armin Rigo pointed out that the way the line-# table got built didn't work
for lines generating more than 255 bytes of bytecode.  Fixed as he
suggested, plus corresponding changes to pyassem.py, plus added some long
overdue docs about this subtle table to compile.c.

24 years agoBackport Martin's checkin 2.16:
Thomas Wouters [Wed, 27 Jun 2001 13:52:56 +0000 (13:52 +0000)] 
Backport Martin's checkin 2.16:

Wrap with extern "C". Fixes bug #428419.
Also protect against multiple inclusion.

24 years agoBackport Martin's checkin 1.4 (with minor fix):
Thomas Wouters [Wed, 27 Jun 2001 13:51:36 +0000 (13:51 +0000)] 
Backport Martin's checkin 1.4 (with minor fix):

Fix bug #422702: Make flag argument to open optional, and document it that way.

24 years agoBackport Martin's checkin 1.6:
Thomas Wouters [Wed, 27 Jun 2001 13:45:01 +0000 (13:45 +0000)] 
Backport Martin's checkin 1.6:

Fix bug #422702: Make flag argument to open optional, and document it that way.

24 years agoBackport Guido's checkin 1.4:
Thomas Wouters [Wed, 27 Jun 2001 13:43:51 +0000 (13:43 +0000)] 
Backport Guido's checkin 1.4:

Quick update to the extension mechanism (extend.py is gone, long live
config.txt).

24 years agoBackport Fred's checkin 2.51:
Thomas Wouters [Wed, 27 Jun 2001 13:12:47 +0000 (13:12 +0000)] 
Backport Fred's checkin 2.51:

Add :method info to the PyArg_ParseTuple() format strings for poll objects.

24 years agoBackport Jeremy's checkin 2.57:
Thomas Wouters [Wed, 27 Jun 2001 13:11:09 +0000 (13:11 +0000)] 
Backport Jeremy's checkin 2.57:

vgetargs1() and vgetargskeywords(): Replace uses of PyTuple_Size() and
PyTuple_GetItem() with PyTuple_GET_SIZE() and PyTuple_GET_ITEM().
The code has already done a PyTuple_Check().

24 years agoBackport Jeremy's checkin 2.244:
Thomas Wouters [Wed, 27 Jun 2001 13:09:44 +0000 (13:09 +0000)] 
Backport Jeremy's checkin 2.244:

Add a second special case to the inline function call code in eval_code2().

If we have a PyCFunction (builtin) and it is METH_VARARGS only, load
the args and dispatch to call_cfunction() directly.  This provides a
small speedup for perhaps the most common function calls -- builtins.

24 years agoBackport of Tim's checkin 1.52:
Thomas Wouters [Wed, 27 Jun 2001 13:05:05 +0000 (13:05 +0000)] 
Backport of Tim's checkin 1.52:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.27:
Thomas Wouters [Wed, 27 Jun 2001 13:04:24 +0000 (13:04 +0000)] 
Backport of Tim's checkin 2.27:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.111:
Thomas Wouters [Wed, 27 Jun 2001 13:01:54 +0000 (13:01 +0000)] 
Backport of Tim's checkin 2.111:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport of Tim's checkin 2.190:
Thomas Wouters [Wed, 27 Jun 2001 13:01:12 +0000 (13:01 +0000)] 
Backport of Tim's checkin 2.190:

SF patch #418147 Fixes to allow compiling w/ Borland, from Stephen Hansen.

24 years agoBackport Fred's checkin 1.3:
Thomas Wouters [Wed, 27 Jun 2001 11:57:51 +0000 (11:57 +0000)] 
Backport Fred's checkin 1.3:

Write a better synopsis for the Scrap module, and provide a link to
useful documentation on the Scrap Manager.

24 years agoPython 2.1 (and 2.0) -> Python 2.1.1 in the licence text.
Thomas Wouters [Wed, 27 Jun 2001 11:25:48 +0000 (11:25 +0000)] 
Python 2.1 (and 2.0) -> Python 2.1.1 in the licence text.

24 years agoUpdated link to zlib's home page.
Fred Drake [Mon, 25 Jun 2001 15:30:33 +0000 (15:30 +0000)] 
Updated link to zlib's home page.

24 years agoRe-organize a little, clean up some markup.
Fred Drake [Fri, 22 Jun 2001 18:22:10 +0000 (18:22 +0000)] 
Re-organize a little, clean up some markup.

Added some comments about sys.exit(), SystemExit, and preventing restricted
code from exiting the interpreter.

This closes SF bug #434743.

24 years agoCorrected an error in the information on supporting weak references in
Fred Drake [Fri, 22 Jun 2001 17:20:05 +0000 (17:20 +0000)] 
Corrected an error in the information on supporting weak references in
extension types (the docs reflected a development version of the API).

This closes SF bug #435066.

24 years agoAdjust to understand use of either single- or double-quotes to quote
Fred Drake [Fri, 22 Jun 2001 17:17:02 +0000 (17:17 +0000)] 
Adjust to understand use of either single- or double-quotes to quote
attribute values, and make the logic surrounding the platform
annotations just a little easier to read.  Also make the platform
notes appear in the generated page; they were supposed to, but did not.

24 years agoFix & clean up the information about building Python with large file support
Fred Drake [Fri, 22 Jun 2001 16:00:54 +0000 (16:00 +0000)] 
Fix & clean up the information about building Python with large file support
for Linux.

This closes SF bug #434975.

24 years agoSeparate the version number and release status information.
Fred Drake [Fri, 22 Jun 2001 15:52:13 +0000 (15:52 +0000)] 
Separate the version number and release status information.

24 years agoAdd support for the classdesc* environment and the \releaseinfo and
Fred Drake [Fri, 22 Jun 2001 15:51:28 +0000 (15:51 +0000)] 
Add support for the classdesc* environment and the \releaseinfo and
\setreleaseinfo macros added to the CVS head.

24 years agoProperly mark the availability of tempnam() and tmpnam().
Fred Drake [Fri, 22 Jun 2001 15:41:58 +0000 (15:41 +0000)] 
Properly mark the availability of tempnam() and tmpnam().

24 years agoAdded documentation for PyErr_SetFromErrnoWithFilename().
Fred Drake [Thu, 21 Jun 2001 18:56:49 +0000 (18:56 +0000)] 
Added documentation for PyErr_SetFromErrnoWithFilename().

24 years agoAdjust the documents so that the copyright is at the front of the documents
Fred Drake [Thu, 21 Jun 2001 18:52:50 +0000 (18:52 +0000)] 
Adjust the documents so that the copyright is at the front of the documents
and the license statements are at the end.  This is less annoying to readers.

24 years agoMake sure 2.1.1 takes its proper place in the history of Python licenses.
Fred Drake [Thu, 21 Jun 2001 18:51:11 +0000 (18:51 +0000)] 
Make sure 2.1.1 takes its proper place in the history of Python licenses.

24 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn [Thu, 21 Jun 2001 18:51:11 +0000 (18:51 +0000)] 
This commit was manufactured by cvs2svn to create branch
'release21-maint'.

24 years agoFix my own typo: protect the FLUSHO usage with "#ifdef FLUSHO", not
Fred Drake [Mon, 18 Jun 2001 21:05:04 +0000 (21:05 +0000)] 
Fix my own typo: protect the FLUSHO usage with "#ifdef FLUSHO", not
"#ifndef FLUSHO".

24 years agoApplying this to the 2.1.1 branch:
Guido van Rossum [Mon, 18 Jun 2001 12:34:31 +0000 (12:34 +0000)] 
Applying this to the 2.1.1 branch:

Fix SF bug #433904 (Alex Martelli) - all s_* methods return None only.

24 years agoSpell "#ifdef" as "#ifdef", not "#endif".
Fred Drake [Sat, 16 Jun 2001 20:46:10 +0000 (20:46 +0000)] 
Spell "#ifdef" as "#ifdef", not "#endif".

24 years agoProtect several more uses of constants with #ifdefs; these are necessary on
Thomas Wouters [Fri, 15 Jun 2001 11:58:49 +0000 (11:58 +0000)] 
Protect several more uses of constants with #ifdefs; these are necessary on
(at least) SCO OpenServer 5. Fixes a non-SF-submitted bugreport by Michael
Kent.