]> granicus.if.org Git - python/log
python
24 years agoDifferent phrasing of keepconsole options, suggested by David Goodger.
Jack Jansen [Thu, 19 Oct 2000 20:33:41 +0000 (20:33 +0000)]
Different phrasing of keepconsole options, suggested by David Goodger.

24 years agoUse MacOS.OutputSeen() on menuselections: it treats a menu selection in the same...
Jack Jansen [Thu, 19 Oct 2000 20:32:35 +0000 (20:32 +0000)]
Use MacOS.OutputSeen() on menuselections: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before). This makes the CGI tools work nicely for Quit.

24 years agoUse MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This soluti...
Jack Jansen [Thu, 19 Oct 2000 20:31:51 +0000 (20:31 +0000)]
Use MacOS.OutputSeen() on menuselections. Removed KeepConsole code again. This solution is better: it treats a menu selection in the same way as input to stdin (i.e. as an ack of the output that went before).

24 years agoRemove the bzip2 archives from the "distfiles" target. There are not
Fred Drake [Thu, 19 Oct 2000 13:25:15 +0000 (13:25 +0000)]
Remove the bzip2 archives from the "distfiles" target.  There are not
enough downloads to keep this around.

24 years agoFixed a bug that caused namespace names to be reported as lists rather
Lars Gustäbel [Thu, 19 Oct 2000 07:36:29 +0000 (07:36 +0000)]
Fixed a bug that caused namespace names to be reported as lists rather
than tuples.

24 years agoTwo more names.
Fred Drake [Thu, 19 Oct 2000 05:58:03 +0000 (05:58 +0000)]
Two more names.

24 years agoHelper scripts used in published the "development" snapshots of the
Fred Drake [Thu, 19 Oct 2000 05:54:51 +0000 (05:54 +0000)]
Helper scripts used in published the "development" snapshots of the
Python documentation.

24 years agoRevise the capitalization policy of \versionchanged explanation; the
Fred Drake [Thu, 19 Oct 2000 05:36:10 +0000 (05:36 +0000)]
Revise the capitalization policy of \versionchanged explanation; the
explanation must now be capitalized.  This is more consistent with the
\see* explanation fields.

Added a lot of material to the "LaTeX Primer" section.

24 years agoCapitalize first letter of an explanation for a \versionchanged
Fred Drake [Thu, 19 Oct 2000 05:33:46 +0000 (05:33 +0000)]
Capitalize first letter of an explanation for a \versionchanged
annotation.

24 years agoCorrection from David Bolen: the Windows version no longer crashes
Andrew M. Kuchling [Thu, 19 Oct 2000 01:42:33 +0000 (01:42 +0000)]
Correction from David Bolen: the Windows version no longer crashes
    on trying to import a 1.5 module
Bump the document version number

24 years agoDocument the .lastindex and .lastgroup attributes of MatchObject
Andrew M. Kuchling [Wed, 18 Oct 2000 23:08:13 +0000 (23:08 +0000)]
Document the .lastindex and .lastgroup attributes of MatchObject

24 years agoMake all the \seemodule explanations consistent: start with a capitalized
Fred Drake [Wed, 18 Oct 2000 17:43:06 +0000 (17:43 +0000)]
Make all the \seemodule explanations consistent: start with a capitalized
letter and end with proper punctuation.  "Documenting Python" will be
updated accordingly so that this will be editorial policy for the Python
documentation.

24 years agoCapitalize & use periods for \seemodule explanation parameter.
Fred Drake [Wed, 18 Oct 2000 16:47:52 +0000 (16:47 +0000)]
Capitalize & use periods for \seemodule explanation parameter.

24 years agoUpdated Popt resources to current version
Jack Jansen [Wed, 18 Oct 2000 09:13:45 +0000 (09:13 +0000)]
Updated Popt resources to current version

24 years agoUse test_support.TESTFN as the temporary filename.
Fred Drake [Wed, 18 Oct 2000 01:21:38 +0000 (01:21 +0000)]
Use test_support.TESTFN as the temporary filename.
Fix a minor stylistic nit.

This closes SourceForge bug #117032.

24 years agoBump version number -- this document is pretty much finished!
Andrew M. Kuchling [Tue, 17 Oct 2000 13:02:42 +0000 (13:02 +0000)]
Bump version number -- this document is pretty much finished!

24 years agoUpdate the links to the NumPy website and documentation, based on a
Fred Drake [Tue, 17 Oct 2000 04:58:01 +0000 (04:58 +0000)]
Update the links to the NumPy website and documentation, based on a
comment from Janko Hauser <jhauser@ifm.uni-kiel.de>.

24 years agoThis commit was manufactured by cvs2svn to create tag 'release20'. v2.0
cvs2svn [Mon, 16 Oct 2000 20:51:33 +0000 (20:51 +0000)]
This commit was manufactured by cvs2svn to create tag 'release20'.

24 years agoTypo repair.
Tim Peters [Mon, 16 Oct 2000 20:51:33 +0000 (20:51 +0000)]
Typo repair.

24 years agorevise xml comment
Jeremy Hylton [Mon, 16 Oct 2000 20:41:38 +0000 (20:41 +0000)]
revise xml comment

24 years agoUpdated the XML package comment.
Fred Drake [Mon, 16 Oct 2000 20:27:25 +0000 (20:27 +0000)]
Updated the XML package comment.

24 years agoFilled in math-module info; fixed a typo or two.
Tim Peters [Mon, 16 Oct 2000 20:24:53 +0000 (20:24 +0000)]
Filled in math-module info; fixed a typo or two.

24 years agoAdd NEWS for 2.0 final (there are a few XXX comments that must be
Jeremy Hylton [Mon, 16 Oct 2000 20:08:38 +0000 (20:08 +0000)]
Add NEWS for 2.0 final (there are a few XXX comments that must be
addressed).

Fix a few nits in 2.0c1 news.

24 years agothe usual
Jeremy Hylton [Mon, 16 Oct 2000 18:26:42 +0000 (18:26 +0000)]
the usual

24 years agothe usual (part II)
Jeremy Hylton [Mon, 16 Oct 2000 17:42:40 +0000 (17:42 +0000)]
the usual (part II)

24 years agoTest for math.* exceptional behavior only in verbose mode, so that the
Tim Peters [Mon, 16 Oct 2000 17:35:13 +0000 (17:35 +0000)]
Test for math.* exceptional behavior only in verbose mode, so that the
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.

24 years agothe usual
Jeremy Hylton [Mon, 16 Oct 2000 17:33:50 +0000 (17:33 +0000)]
the usual

24 years agoPatch #101936: Auto-detect DEC threads (which need "-threads" argument)
Jeremy Hylton [Mon, 16 Oct 2000 16:59:12 +0000 (16:59 +0000)]
Patch #101936: Auto-detect DEC threads (which need "-threads" argument)
by Thomas Wouters

24 years agofind(): Application of (slightly modified) SF patch #101928 by Ulf
Barry Warsaw [Mon, 16 Oct 2000 15:47:50 +0000 (15:47 +0000)]
find(): Application of (slightly modified) SF patch #101928 by Ulf
Betlehem, verified by Peter Funk.  Fixes preservation of language
search order lost due to use of dictionary keys instead of a list.
Closes SF bug #116964.

24 years agodistutils setup files for Tkinter
Jeremy Hylton [Mon, 16 Oct 2000 15:36:25 +0000 (15:36 +0000)]
distutils setup files for Tkinter

24 years agomisc. RPM support files
Jeremy Hylton [Mon, 16 Oct 2000 15:34:52 +0000 (15:34 +0000)]
misc. RPM support files

24 years agoDemos of the new XML support from Lars Marius Garshol <larsga@garshol.priv.no>.
Fred Drake [Mon, 16 Oct 2000 15:27:05 +0000 (15:27 +0000)]
Demos of the new XML support from Lars Marius Garshol <larsga@garshol.priv.no>.

24 years agoCorrect form of FourThought's name
Andrew M. Kuchling [Mon, 16 Oct 2000 14:19:21 +0000 (14:19 +0000)]
Correct form of FourThought's name

24 years agoBump version to 1.0.1.
Greg Ward [Sun, 15 Oct 2000 19:20:20 +0000 (19:20 +0000)]
Bump version to 1.0.1.

24 years agoFixed minor problem with reset().
Lars Gustäbel [Sat, 14 Oct 2000 10:28:01 +0000 (10:28 +0000)]
Fixed minor problem with reset().

24 years agoPrep the Windows installer for 2.0 final:
Tim Peters [Sat, 14 Oct 2000 07:35:15 +0000 (07:35 +0000)]
Prep the Windows installer for 2.0 final:
+ Bump the build number.
+ Changed app name in installer dialogs.
+ Fiddled dialogs to repair grammar and get rid of anachronisms (e.g.,
  "ProgMan" and "Program Manager" haven't made sense since Windows 3.1!).

24 years agoFor PyErr_Format(), note that the exception parameter can be a string or
Fred Drake [Sat, 14 Oct 2000 05:49:30 +0000 (05:49 +0000)]
For PyErr_Format(), note that the exception parameter can be a string or
class, but not an instance (since an instance will be created using the
formatted message string as the constructor parameter).

24 years agoAdjust the Macintosh manual to have the formatting dependencies for
Fred Drake [Sat, 14 Oct 2000 05:47:17 +0000 (05:47 +0000)]
Adjust the Macintosh manual to have the formatting dependencies for
manuals instead of howtos.

24 years agoFor os.stat() & friends, note that the time fields are returned as
Fred Drake [Sat, 14 Oct 2000 05:46:11 +0000 (05:46 +0000)]
For os.stat() & friends, note that the time fields are returned as
floating-point values.

24 years agoUpdate dependencies for the Macintosh manual.
Fred Drake [Sat, 14 Oct 2000 05:44:32 +0000 (05:44 +0000)]
Update dependencies for the Macintosh manual.

24 years agoUpdate to include all the new chapters & sections.
Fred Drake [Sat, 14 Oct 2000 05:41:17 +0000 (05:41 +0000)]
Update to include all the new chapters & sections.
Convert from a howto to a manual, so we can *have* chapters!
Comment out the macconsole module documentation; Think C seems to have
disappeared.

24 years agoRemove everything that is not module documentation.
Fred Drake [Sat, 14 Oct 2000 05:39:08 +0000 (05:39 +0000)]
Remove everything that is not module documentation.
It is no longer needed here.

24 years agoFix some internal references that I botched.
Fred Drake [Sat, 14 Oct 2000 05:24:20 +0000 (05:24 +0000)]
Fix some internal references that I botched.

24 years agoChapter on how to use MacPython, by Bob Savage <bobsavage@mac.com>.
Fred Drake [Sat, 14 Oct 2000 05:09:42 +0000 (05:09 +0000)]
Chapter on how to use MacPython, by Bob Savage <bobsavage@mac.com>.

24 years agoChapters on Mac Toolbox modules and other undocumented modules, ready to
Fred Drake [Sat, 14 Oct 2000 05:08:34 +0000 (05:08 +0000)]
Chapters on Mac Toolbox modules and other undocumented modules, ready to
be filled in with real information.  Contributed by Chris Barker
<cbarker@jps.net>.

24 years agoDocumentation for the aepack and aetypes modules, by Vincent Marchetti
Fred Drake [Sat, 14 Oct 2000 05:06:24 +0000 (05:06 +0000)]
Documentation for the aepack and aetypes modules, by Vincent Marchetti
<vincem@en.com>.

24 years agoChris Barker <cbarker@jps.net>:
Fred Drake [Sat, 14 Oct 2000 04:59:12 +0000 (04:59 +0000)]
Chris Barker <cbarker@jps.net>:
Small fixes.

24 years agoChris Barker <cbarker@jps.net>:
Fred Drake [Sat, 14 Oct 2000 04:56:52 +0000 (04:56 +0000)]
Chris Barker <cbarker@jps.net>:
Various updates and additions.

24 years agoChris Barker <cbarker@jps.net>:
Fred Drake [Sat, 14 Oct 2000 04:55:15 +0000 (04:55 +0000)]
Chris Barker <cbarker@jps.net>:
Small clarification, remove the assertion that the module is temporary.

24 years agoChris Barker <cbarker@jps.net>:
Fred Drake [Sat, 14 Oct 2000 04:53:31 +0000 (04:53 +0000)]
Chris Barker <cbarker@jps.net>:
Added summary of the strengths and weaknesses of the FrameWork module
and fixed some typos.

24 years agoWrap a long line.
Fred Drake [Sat, 14 Oct 2000 04:49:36 +0000 (04:49 +0000)]
Wrap a long line.

24 years agoMore names.
Fred Drake [Sat, 14 Oct 2000 04:47:53 +0000 (04:47 +0000)]
More names.

24 years agoA bunch of nits fix and some additional information added by Chris
Fred Drake [Sat, 14 Oct 2000 04:45:22 +0000 (04:45 +0000)]
A bunch of nits fix and some additional information added by Chris
Barker <cbarker@jps.net>.

24 years agoUpdate the comments for the BSD DB module, including a new pointer to
Fred Drake [Sat, 14 Oct 2000 04:14:09 +0000 (04:14 +0000)]
Update the comments for the BSD DB module, including a new pointer to
the DB 3 module; thanks to Robin Dunn <robind@users.sourceforge.net>.

This closes SourceForge bug #116850.

24 years agoCenter the top line of the license page, to make it look just a little bit
Fred Drake [Sat, 14 Oct 2000 04:07:49 +0000 (04:07 +0000)]
Center the top line of the license page, to make it look just a little bit
cleaner.

24 years agoRemoved debugging code at bottom.
Greg Ward [Sat, 14 Oct 2000 04:07:39 +0000 (04:07 +0000)]
Removed debugging code at bottom.

24 years agoUntabified.
Greg Ward [Sat, 14 Oct 2000 04:06:40 +0000 (04:06 +0000)]
Untabified.

24 years agoBastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
Greg Ward [Sat, 14 Oct 2000 03:56:42 +0000 (03:56 +0000)]
Bastian Kleineidam: make 'check_lib()' more like AC_CHECK_LIB by adding
an 'other_libraries()' parameter.

24 years agoLyle Johnson: use 'normcase()' in addition to 'normpath()' when testing if
Greg Ward [Sat, 14 Oct 2000 03:47:07 +0000 (03:47 +0000)]
Lyle Johnson: use 'normcase()' in addition to 'normpath()' when testing if
we actually installed modules to a directory in sys.path.

24 years agoBastian Kleineidam: fix up any supplied command-line options.
Greg Ward [Sat, 14 Oct 2000 03:40:20 +0000 (03:40 +0000)]
Bastian Kleineidam: fix up any supplied command-line options.

24 years agoCall SchedParams(1,0) so the dialog is correctly re-enabled after something has been...
Jack Jansen [Fri, 13 Oct 2000 23:35:04 +0000 (23:35 +0000)]
Call SchedParams(1,0) so the dialog is correctly re-enabled after something has been on top of it.

24 years agoAdded some of the new Numeric modules (which weren't rebuilt).
Jack Jansen [Fri, 13 Oct 2000 23:34:06 +0000 (23:34 +0000)]
Added some of the new Numeric modules (which weren't rebuilt).

24 years agoIf we're installing to another partition than the system partition offer to copy...
Jack Jansen [Fri, 13 Oct 2000 23:33:34 +0000 (23:33 +0000)]
If we're installing to another partition than the system partition offer to copy PythonCore in stead of aliasing it. This should fix the applet problems some people have.

24 years agoUpdated with cmd-. fix and PythonCore copy option.
Jack Jansen [Fri, 13 Oct 2000 23:32:44 +0000 (23:32 +0000)]
Updated with cmd-. fix and PythonCore copy option.

24 years agogetting close
Jeremy Hylton [Fri, 13 Oct 2000 23:05:44 +0000 (23:05 +0000)]
getting close

24 years agorun the std regression test suite using bytecode produced by the compiler
Jeremy Hylton [Fri, 13 Oct 2000 22:00:13 +0000 (22:00 +0000)]
run the std regression test suite using bytecode produced by the compiler

24 years agoadd -d option that dumps entire AST before compiling
Jeremy Hylton [Fri, 13 Oct 2000 21:59:32 +0000 (21:59 +0000)]
add -d option that dumps entire AST before compiling

24 years agoNow supports entire Python 2.0 language and still supports Python
Jeremy Hylton [Fri, 13 Oct 2000 21:58:13 +0000 (21:58 +0000)]
Now supports entire Python 2.0 language and still supports Python
1.5.2.  The compiler generates code for the version of the interpreter
it is run under.

ast.py:
    Print and Printnl add dest attr for extended print
    new node AugAssign for augmented assignments
    new nodes ListComp, ListCompFor, and ListCompIf for list
        comprehensions

pyassem.py:
    add work around for string-Unicode comparison raising UnicodeError
        on comparison of two objects in code object's const table

pycodegen.py:
    define VERSION, the Python major version number
    get magic number using imp.get_magic() instead of hard coding
    implement list comprehensions, extended print, and augmented
        assignment; augmented assignment uses Delegator classes (see
        doc string)
    fix import and tuple unpacking for 1.5.2

transformer.py:
    various changes to support new 2.0 grammar and old 1.5 grammar
    add debug_tree helper than converts and symbol and token numbers
    to their names

24 years agoUpdated test suite to latest pulldom changes.
Lars Gustäbel [Fri, 13 Oct 2000 20:54:10 +0000 (20:54 +0000)]
Updated test suite to latest pulldom changes.

24 years agoMoved appendChild calls back to DOMEventStream.
Lars Gustäbel [Fri, 13 Oct 2000 20:53:27 +0000 (20:53 +0000)]
Moved appendChild calls back to DOMEventStream.
Added SAX2DOM class.

24 years agoClear siblings, now that they are being set.
Paul Prescod [Fri, 13 Oct 2000 20:11:42 +0000 (20:11 +0000)]
Clear siblings, now that they are being set.

24 years agoMade options global (as PyMac_options) so macosmodule can access it.
Jack Jansen [Fri, 13 Oct 2000 19:44:40 +0000 (19:44 +0000)]
Made options global (as PyMac_options) so macosmodule can access it.

24 years agoUpdate the release number and date.
Fred Drake [Fri, 13 Oct 2000 15:35:27 +0000 (15:35 +0000)]
Update the release number and date.

24 years agoMake the regrtest.py -l (findleaks) option considerably less obnoxious.
Neil Schemenauer [Fri, 13 Oct 2000 01:32:42 +0000 (01:32 +0000)]
Make the regrtest.py -l (findleaks) option considerably less obnoxious.
First, only report garbage that the GC cannot free.  Second, only report
the number of objects found, not their repr().  People can dig deeper on
their own if they find a leak.

24 years agoVise archive templates used for 2.0c1
Jack Jansen [Thu, 12 Oct 2000 21:45:05 +0000 (21:45 +0000)]
Vise archive templates used for 2.0c1

24 years agoDisribution templates used for 2.0c1
Jack Jansen [Thu, 12 Oct 2000 21:44:06 +0000 (21:44 +0000)]
Disribution templates used for 2.0c1

24 years agoProjects used for 2.0c1
Jack Jansen [Thu, 12 Oct 2000 21:42:51 +0000 (21:42 +0000)]
Projects used for 2.0c1

24 years agoUse MacOS.KeepConsole to always exit if the program calls FrameWork._quit(). Overrida...
Jack Jansen [Thu, 12 Oct 2000 21:25:37 +0000 (21:25 +0000)]
Use MacOS.KeepConsole to always exit if the program calls FrameWork._quit(). Overridable with a class variable keepconsole.

24 years agoAdded sha module, it's needed by the unicode stuff, it seems.
Jack Jansen [Thu, 12 Oct 2000 21:24:24 +0000 (21:24 +0000)]
Added sha module, it's needed by the unicode stuff, it seems.

24 years agoAdded a method KeepConsole so programs can override the Keep console open option.
Jack Jansen [Thu, 12 Oct 2000 21:24:05 +0000 (21:24 +0000)]
Added a method KeepConsole so programs can override the Keep console open option.

24 years agoMade options global (as PyMac_options) so macosmodule can access it.
Jack Jansen [Thu, 12 Oct 2000 21:23:19 +0000 (21:23 +0000)]
Made options global (as PyMac_options) so macosmodule can access it.

24 years agoBetter exit handling.
Jack Jansen [Thu, 12 Oct 2000 21:22:26 +0000 (21:22 +0000)]
Better exit handling.

24 years agoUpdated for 2.0c1
Jack Jansen [Thu, 12 Oct 2000 21:21:43 +0000 (21:21 +0000)]
Updated for 2.0c1

24 years agoPython implementation of strptime().
Jack Jansen [Thu, 12 Oct 2000 21:20:41 +0000 (21:20 +0000)]
Python implementation of strptime().

24 years agoExtension to Findertools by Erik van Blokland. In Contrib because I don't have the...
Jack Jansen [Thu, 12 Oct 2000 21:20:11 +0000 (21:20 +0000)]
Extension to Findertools by Erik van Blokland. In Contrib because I don't have the time to merge it into findertools before the distribution.

24 years agoAndy Dustman <adustman@users.sourceforge.net>:
Fred Drake [Thu, 12 Oct 2000 20:58:32 +0000 (20:58 +0000)]
Andy Dustman <adustman@users.sourceforge.net>:
Eliminate unused variables to appease compiler.

24 years agoMarc-Andre Lemburg <mal@lemburg.com>:
Fred Drake [Thu, 12 Oct 2000 20:50:55 +0000 (20:50 +0000)]
Marc-Andre Lemburg <mal@lemburg.com>:
Documentation for the codec base classes.
Lots of markup adjustments by FLD.

This closes SourceForge bug #115308, patch #101877.

24 years agoFix SF bug #116263: support for from .. import *
Jeremy Hylton [Thu, 12 Oct 2000 20:23:23 +0000 (20:23 +0000)]
Fix SF bug #116263: support for from .. import *
transformer.py: return '*', None from com_import_as_name
pycodegen.py: special case for name == '*'
pyassem.py: fix stack counting for IMPORT_ opcodes

24 years agoAdded entries for new files of SAX documentation.
Fred Drake [Thu, 12 Oct 2000 20:07:09 +0000 (20:07 +0000)]
Added entries for new files of SAX documentation.

24 years agoMassive addition of SAX documentation from Martin von Loewis
Fred Drake [Thu, 12 Oct 2000 20:05:09 +0000 (20:05 +0000)]
Massive addition of SAX documentation from Martin von Loewis
<loewis@informatik.hu-berlin.de>.

Reorganized to be more like other parts of the documentation in its
arrangement, but with few content changes.

This closes SourceForge patch #101850.

24 years agoIf the status line is invalid, assume it is a pre-1.0 response. The
Jeremy Hylton [Thu, 12 Oct 2000 19:58:36 +0000 (19:58 +0000)]
If the status line is invalid, assume it is a pre-1.0 response.  The
msg/headers are empty and the entire response is treated as the body.

24 years agoRepaired a comment and asserted a precondition.
Tim Peters [Thu, 12 Oct 2000 19:42:00 +0000 (19:42 +0000)]
Repaired a comment and asserted a precondition.

24 years agoRecreated after installer source code changes.
Thomas Heller [Thu, 12 Oct 2000 19:31:13 +0000 (19:31 +0000)]
Recreated after installer source code changes.
This should close SF bug (patch)
http://sourceforge.net/patch/?func=detailpatch&patch_id=101844&group_id=5470

24 years agotwo fixes for redirects:
Jeremy Hylton [Thu, 12 Oct 2000 18:54:18 +0000 (18:54 +0000)]
two fixes for redirects:
    - don't close the fp, since that appears to also close the socket
    - join the original url with the redirect reponse to deal with
      relative redirect URL

wrap two socket ops in try/except to turn them into URLErrors, so that
client code need only catch one exception.

in HTTPError.__del__ only close fp if fp is not None

style changes:
    - use f(*args) instead of apply(f, args)
    - use __super_init instead of super.__init__(self, ...)

24 years agocosmetic changes only:
Jeremy Hylton [Thu, 12 Oct 2000 17:31:36 +0000 (17:31 +0000)]
cosmetic changes only:
use standard Python style for whitespace near = and ()

24 years agoFix for Bug #116453.
Guido van Rossum [Thu, 12 Oct 2000 17:14:46 +0000 (17:14 +0000)]
Fix for Bug #116453.

Direct use of interp->result is deprecated; changing this to
Tcl_GetStringResult(interp) everywhere fixed the problem of losing the
error message with TclError exceptions, on Windows.

24 years agoWhen we know the compiler is GCC, always add the -Wall and
Fred Drake [Thu, 12 Oct 2000 17:11:38 +0000 (17:11 +0000)]
When we know the compiler is GCC, always add the -Wall and
-Wstrict-prototypes options.  This will make it a lot easier to keep
warnings under control in the first place in the future.

There is one known warning at this time, caught by the -Wstrict-prototypes
option.  In Modules/main.c, the declaration of getopt() without parameters
gets a complaint (rightly) that it is not a proper prototype.  The lack of
a complete prototype information should be corrected when the right
portability conditions have been identified.

Approved by the Guido.

24 years agoAdded a test for the StringIO write() error I just fixed.
Guido van Rossum [Thu, 12 Oct 2000 16:46:28 +0000 (16:46 +0000)]
Added a test for the StringIO write() error I just fixed.

24 years ago[ Bug #116636 ] Bug in StringIO.write()
Guido van Rossum [Thu, 12 Oct 2000 16:45:37 +0000 (16:45 +0000)]
[ Bug #116636 ] Bug in StringIO.write()
http://sourceforge.net/bugs/?func=detailbug&bug_id=116636&group_id=5470
bobalex@rsv.ricoh.com

Bug report: If the file position is less than the end of the "file",
and a write is performed extending past then end of the file, the data
string is corrupted.

Solution: in write(), when writing past the end, properly set self.len
when newpos is > self.len.

24 years agoAnonymous patch to add Darwin 1.2 to the list of BSDs.
Guido van Rossum [Thu, 12 Oct 2000 16:01:55 +0000 (16:01 +0000)]
Anonymous patch to add Darwin 1.2 to the list of BSDs.

Let's hope this is correct (I'm not sure why the sys.platform would be
'Darwin1.2' rather than 'darwin1', which seems to be the convention).

Someone with Darwin please test this!