python/dscho.git
21 years agoThis commit was manufactured by cvs2svn to create tagsvn/tags/last_cw_pro_53last_cw_pro_53
(no author) [Tue, 7 Nov 2000 21:07:33 +0000 (7 21:07 +0000)]
This commit was manufactured by cvs2svn to create tag
'last_cw_pro_53'.

git-svn-id: http://svn.python.org/projects/python/tags/last_cw_pro_53@18248 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoLast CW Pro 5.3 projects.
jack [Tue, 7 Nov 2000 21:07:33 +0000 (7 21:07 +0000)]
Last CW Pro 5.3 projects.

git-svn-id: http://svn.python.org/projects/python/trunk@18247 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMore names...
fdrake [Tue, 7 Nov 2000 16:09:53 +0000 (7 16:09 +0000)]
More names...

git-svn-id: http://svn.python.org/projects/python/trunk@18246 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix for SF bug #117606:
gward [Tue, 7 Nov 2000 15:44:21 +0000 (7 15:44 +0000)]
Fix for SF bug #117606:
  - when compiling with GCC on Solaris, use "$(CC) -shared" instead
    of "$(CC) -G" to generate .so files
  - when compiling with GCC on any platform, add "-fPIC" to OPT
    (without this, "$(CC) -shared" dies horribly)

git-svn-id: http://svn.python.org/projects/python/trunk@18245 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoPatch #102278: add tparm() function to _curses module
akuchling [Tue, 7 Nov 2000 03:35:24 +0000 (7 03:35 +0000)]
Patch #102278: add tparm() function to _curses module

git-svn-id: http://svn.python.org/projects/python/trunk@18244 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoDocument the proper exception to be raised by I/O operations on closed
fdrake [Mon, 6 Nov 2000 20:17:37 +0000 (6 20:17 +0000)]
Document the proper exception to be raised by I/O operations on closed
files; error reported by Ng Pheng Siong <ngps@post1.com>.

Make sure that various special object attributes are properly indexed.

git-svn-id: http://svn.python.org/projects/python/trunk@18243 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoThis fixes several bug reports concering memory bloating during large
bwarsaw [Mon, 6 Nov 2000 18:46:09 +0000 (6 18:46 +0000)]
This fixes several bug reports concering memory bloating during large
file uploads.

In response to SF bugs 110674 and 119806, and discussions on
python-dev, we are removing the self.lines attribute from the
FieldStorage class.  Specifically touched where methods __init__(),
read_lines_to_eof(), and skip_lines().

No one can remember why self.lines was added.  Technically, it's part
of the public interface for the class, but it was never documented.
It's possible clever or nosy code will break because of this, but it
was decided to remove it and see who complains.

This resolution also closes the second half of the cgi.py entry in PEP
42.  The first half of that PEP concerns specifically binary file
uploads, where there may be no end-of-line marker for a very long
time.  This patch does not address that issue.

git-svn-id: http://svn.python.org/projects/python/trunk@18242 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoa few small optimizations that seem to give a 5-10% speedup; the
jhylton [Mon, 6 Nov 2000 16:03:52 +0000 (6 16:03 +0000)]
a few small optimizations that seem to give a 5-10% speedup; the
further optimization of com_node makes the most difference.

git-svn-id: http://svn.python.org/projects/python/trunk@18241 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agomove pruneNext method to correct object (doh!)
jhylton [Mon, 6 Nov 2000 03:47:39 +0000 (6 03:47 +0000)]
move pruneNext method to correct object (doh!)

git-svn-id: http://svn.python.org/projects/python/trunk@18240 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoChange the graph structure to contain the code generator object for
jhylton [Mon, 6 Nov 2000 03:43:11 +0000 (6 03:43 +0000)]
Change the graph structure to contain the code generator object for
embedded code objects (e.g. functions) rather than the generated code
object.  This change means that the compiler generates code for
everything at the end, rather then generating code for each function
as it finds it.  Implementation note: _convert_LOAD_CONST in
pyassem.py must be change to call getCode().

Other changes follow.  Several changes creates extra edges between
basic blocks to reflect control flow for loops and exceptions.  These
missing edges had gone unnoticed because they do not affect the
current compilation process.

pyassem.py:
    Add _enable_debug() and _disable_debug() methods that print
    instructions and blocks to stdout as they are generated.

    Add edges between blocks for instructions like SETUP_LOOP,
    FOR_LOOP, etc.

    Add pruneNext to get rid of bogus edges remaining after
    unconditional transfer ops (e.g. JUMP_FORWARD)

    Change repr of Block to omit block length.

pycodegen.py:
    Make sure a new block is started after FOR_LOOP, etc.

    Change assert implementation to use RAISE_VARARGS 1 when there is
    no user-specified failure output.

misc.py:
    Implement __contains__ and copy for Set.

git-svn-id: http://svn.python.org/projects/python/trunk@18239 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoIf a function contains a doc string, remove the doc string node from
jhylton [Mon, 6 Nov 2000 03:33:52 +0000 (6 03:33 +0000)]
If a function contains a doc string, remove the doc string node from
the function's body.

If assert is used without an error message, make the AST node None
rather than Name('None').

git-svn-id: http://svn.python.org/projects/python/trunk@18238 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoApplication of [ Patch #102226 ] freeze/modulefinder.py should use _winreg, not win32api
mhammond [Mon, 6 Nov 2000 02:49:27 +0000 (6 02:49 +0000)]
Application of [ Patch #102226 ] freeze/modulefinder.py should use _winreg, not win32api

git-svn-id: http://svn.python.org/projects/python/trunk@18237 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded 38,642 missing characters to the Unicode database (first-last
effbot [Fri, 3 Nov 2000 20:24:15 +0000 (3 20:24 +0000)]
Added 38,642 missing characters to the Unicode database (first-last
ranges) -- but thanks to the 2.0 compression scheme, this doesn't add
a single byte to the resulting binaries (!)

Closes bug #117524

git-svn-id: http://svn.python.org/projects/python/trunk@18236 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix Makefile so at least it uses Python 2.0, and compiles out of the
gvanrossum [Fri, 3 Nov 2000 12:58:09 +0000 (3 12:58 +0000)]
Fix Makefile so at least it uses Python 2.0, and compiles out of the
box on Linux.

git-svn-id: http://svn.python.org/projects/python/trunk@18235 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMove our own getopt() implementation to _PyOS_GetOpt(), and use it
twouters [Fri, 3 Nov 2000 08:18:37 +0000 (3 08:18 +0000)]
Move our own getopt() implementation to _PyOS_GetOpt(), and use it
regardless of whether the system getopt() does what we want. This avoids the
hassle with prototypes and externs, and the check to see if the system
getopt() does what we want. Prefix optind, optarg and opterr with _PyOS_ to
avoid name clashes. Add new include file to define the right symbols. Fix
Demo/pyserv/pyserv.c to include getopt.h itself, instead of relying on
Python to provide it.

git-svn-id: http://svn.python.org/projects/python/trunk@18234 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake sure we clean up the index data each time it is written by LaTeX.
fdrake [Fri, 3 Nov 2000 02:57:31 +0000 (3 02:57 +0000)]
Make sure we clean up the index data each time it is written by LaTeX.

git-svn-id: http://svn.python.org/projects/python/trunk@18233 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix cut & paste error that describes three paramters when there are only
fdrake [Thu, 2 Nov 2000 21:49:17 +0000 (2 21:49 +0000)]
Fix cut & paste error that describes three paramters when there are only
two [bug #119729].

Update use of distutils.sysconfig that "broke" when Greg W. changed the API
[bug #119645].

git-svn-id: http://svn.python.org/projects/python/trunk@18232 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoNew configure script from latest configure.in with autoconf 2.13
gvanrossum [Thu, 2 Nov 2000 19:33:53 +0000 (2 19:33 +0000)]
New configure script from latest configure.in with autoconf 2.13

git-svn-id: http://svn.python.org/projects/python/trunk@18231 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake sure the Modules/ directory is created before writing Modules/Setup.
fdrake [Thu, 2 Nov 2000 17:52:56 +0000 (2 17:52 +0000)]
Make sure the Modules/ directory is created before writing Modules/Setup.

git-svn-id: http://svn.python.org/projects/python/trunk@18230 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoPatch from Randall Hopper to fix PR #116172, "curses module fails to
akuchling [Wed, 1 Nov 2000 19:59:12 +0000 (1 19:59 +0000)]
Patch from Randall Hopper to fix PR #116172, "curses module fails to
build on SGI":
* Check for 'sgi' preprocessor symbol, not '__sgi__'
* Surround individual character macros with #ifdef's, instead of making them
  all rely on STRICT_SYSV_CURSES

git-svn-id: http://svn.python.org/projects/python/trunk@18229 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoTypo: writeable --> writable
fdrake [Wed, 1 Nov 2000 03:12:34 +0000 (1 03:12 +0000)]
Typo:  writeable --> writable
Reported by Erno Kuusela <erno@iki.fi>.

git-svn-id: http://svn.python.org/projects/python/trunk@18228 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoHack ndiff to display lines w/ leading tabs more intuitively. This synchs
tim_one [Wed, 1 Nov 2000 02:51:27 +0000 (1 02:51 +0000)]
Hack ndiff to display lines w/ leading tabs more intuitively.  This synchs
ndiff w/ a custom version I made for Guido during the pre-2.0 freeze.

git-svn-id: http://svn.python.org/projects/python/trunk@18227 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agotrack recent change to test_extcall.py
jhylton [Mon, 30 Oct 2000 19:41:33 +0000 (30 19:41 +0000)]
track recent change to test_extcall.py

git-svn-id: http://svn.python.org/projects/python/trunk@18226 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoHack to force -lpthread instead instead of -lcma on HPUX, by Philipp
gvanrossum [Mon, 30 Oct 2000 17:45:07 +0000 (30 17:45 +0000)]
Hack to force -lpthread instead instead of -lcma on HPUX, by Philipp
Jocham.  Philipp asks: "Are there any success stories with HP-UX 11.00
and -lcma?  Maybe libcma is broken."

git-svn-id: http://svn.python.org/projects/python/trunk@18225 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix for SF bug #117241
jhylton [Mon, 30 Oct 2000 17:15:20 +0000 (30 17:15 +0000)]
Fix for SF bug #117241

When a method is called with no regular arguments and * args, defer
the first arg is subclass check until after the * args have been
expanded.

N.B. The CALL_FUNCTION implementation is getting really hairy; should
review it to see if it can be simplified.

git-svn-id: http://svn.python.org/projects/python/trunk@18224 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agodefine_module(): Change the "index sub-item" for definitions at module
fdrake [Mon, 30 Oct 2000 06:24:56 +0000 (30 06:24 +0000)]
define_module():  Change the "index sub-item" for definitions at module
                  scope to be " (in module <name>)" instead of
                  " (in <name>)" to be consistent with \withsubitem
                  usage throughout the documentation.  This achieves
                  consistency in indexing throughout the documentation.

git-svn-id: http://svn.python.org/projects/python/trunk@18223 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix \withsubitem so that it actually works if the only indexing macro in
fdrake [Mon, 30 Oct 2000 06:22:22 +0000 (30 06:22 +0000)]
Fix \withsubitem so that it actually works if the only indexing macro in
the content body is the \ttindex macro, which seems to match actual usage.

Adjust \funcline to restore the "index sub-item" for functions to be
" (in module <name>)" instead of " (in <name>)".  This is need to match
uses of \withsubitem throughout the documentation.  (Not ideal, but
gets achieves consistency.)

git-svn-id: http://svn.python.org/projects/python/trunk@18222 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRevise the message to be a little nicer.
fdrake [Sun, 29 Oct 2000 13:21:45 +0000 (29 13:21 +0000)]
Revise the message to be a little nicer.

Have the mail sent to the python-dev and Doc-SIG lists.

git-svn-id: http://svn.python.org/projects/python/trunk@18221 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAvoid using \withsubitem and \ttindex internally; they have not proven
fdrake [Sun, 29 Oct 2000 05:19:16 +0000 (29 05:19 +0000)]
Avoid using \withsubitem and \ttindex internally; they have not proven
to be very robust.  Using \index directly fixes a lot of entries in the
index that had to be specifically read to determine that they had the
wrong parenthesized description.

git-svn-id: http://svn.python.org/projects/python/trunk@18220 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMany small markup revisions to be more consistent with markup elsewhere,
fdrake [Sun, 29 Oct 2000 05:10:30 +0000 (29 05:10 +0000)]
Many small markup revisions to be more consistent with markup elsewhere,
and to provide more consistent indexing.

Added an index entry.

Added documentation for the error and XMLParserType objects.

git-svn-id: http://svn.python.org/projects/python/trunk@18219 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoParserCreate(): Added test that the namespace_separator value, if given,
fdrake [Sun, 29 Oct 2000 04:57:53 +0000 (29 04:57 +0000)]
ParserCreate():  Added test that the namespace_separator value, if given,
                 has the required length.

initpyexpat():  Provide the type object for the ParserCreate() return
                value as XMLParserType.

git-svn-id: http://svn.python.org/projects/python/trunk@18218 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoDo not echo the echo command with the message telling the user that Setup
fdrake [Sun, 29 Oct 2000 04:28:48 +0000 (29 04:28 +0000)]
Do not echo the echo command with the message telling the user that Setup
may be out of date.

git-svn-id: http://svn.python.org/projects/python/trunk@18217 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoDo not release unallocated Tcl objects. Closes #117278 and #117167.
loewis [Sun, 29 Oct 2000 00:44:43 +0000 (29 00:44 +0000)]
Do not release unallocated Tcl objects. Closes #117278 and  #117167.

git-svn-id: http://svn.python.org/projects/python/trunk@18216 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years ago-- properly reset groups in findall (bug #117612)
effbot [Sat, 28 Oct 2000 19:30:41 +0000 (28 19:30 +0000)]
-- properly reset groups in findall (bug #117612)

-- fixed negative lookbehind to work correctly at the beginning
of the target string (bug #117242)

-- improved syntax check; you can no longer refer to a group
inside itself (bug #110866)

git-svn-id: http://svn.python.org/projects/python/trunk@18215 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdate author information.
fdrake [Sat, 28 Oct 2000 04:08:38 +0000 (28 04:08 +0000)]
Update author information.

git-svn-id: http://svn.python.org/projects/python/trunk@18214 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years ago(py-goto-beginning-of-tqs): When searching backwards for the matching
bwarsaw [Fri, 27 Oct 2000 05:00:25 +0000 (27 05:00 +0000)]
(py-goto-beginning-of-tqs): When searching backwards for the matching
delimiter, watch out for backslash escaped delimiters.  Also use =
instead of eq for character comparison (because a character is = to
it's integer value, but not eq to it).

git-svn-id: http://svn.python.org/projects/python/trunk@18213 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded the -D/--docstrings option for extraction of unmarked module,
bwarsaw [Fri, 27 Oct 2000 04:56:28 +0000 (27 04:56 +0000)]
Added the -D/--docstrings option for extraction of unmarked module,
class, method, and function docstrings.

git-svn-id: http://svn.python.org/projects/python/trunk@18212 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoExplained that os.path.basename() may return something different from the
fdrake [Thu, 26 Oct 2000 21:38:23 +0000 (26 21:38 +0000)]
Explained that os.path.basename() may return something different from the
basename program, as suggested by Gregor Hoffleit <gregor@hoffleit.de>.

This closes bug #119485.

git-svn-id: http://svn.python.org/projects/python/trunk@18211 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoDo not require packages that are not needed.
fdrake [Thu, 26 Oct 2000 21:13:22 +0000 (26 21:13 +0000)]
Do not require packages that are not needed.

git-svn-id: http://svn.python.org/projects/python/trunk@18210 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoNormalize the HTML generated for table headers.
fdrake [Thu, 26 Oct 2000 20:14:58 +0000 (26 20:14 +0000)]
Normalize the HTML generated for table headers.

git-svn-id: http://svn.python.org/projects/python/trunk@18209 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMinor simplification.
fdrake [Thu, 26 Oct 2000 20:01:09 +0000 (26 20:01 +0000)]
Minor simplification.

git-svn-id: http://svn.python.org/projects/python/trunk@18208 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdate the dependency information to allow the other Makefiles to handle
fdrake [Thu, 26 Oct 2000 19:26:47 +0000 (26 19:26 +0000)]
Update the dependency information to allow the other Makefiles to handle
as much of this as possible.  Avoids propogating information about how
various outputs relate (or don't!).

git-svn-id: http://svn.python.org/projects/python/trunk@18207 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoNoted that building the info version requires the HTML::Element package,
fdrake [Thu, 26 Oct 2000 19:01:46 +0000 (26 19:01 +0000)]
Noted that building the info version requires the HTML::Element package,
and provided instructions for getting it installed.

git-svn-id: http://svn.python.org/projects/python/trunk@18206 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAll acknowledgements have been moved to the Doc/ACKS file.
fdrake [Thu, 26 Oct 2000 17:19:58 +0000 (26 17:19 +0000)]
All acknowledgements have been moved to the Doc/ACKS file.

Adjusted to reflect the rename of Setup.in to Setup.dist.

Added pointer to the "Distributing Python Modules" manual in the
appropriate place.

git-svn-id: http://svn.python.org/projects/python/trunk@18205 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdate build instructions to reflect the rename from Setup.in to Setup.dist.
fdrake [Thu, 26 Oct 2000 17:13:19 +0000 (26 17:13 +0000)]
Update build instructions to reflect the rename from Setup.in to Setup.dist.
Clarify when this file is created automatically and do not advocate
creating it unless needed.

Explain that Setup never gets overwritten.

git-svn-id: http://svn.python.org/projects/python/trunk@18204 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoTest for and create Modules/Setup in the configure script if it does not
fdrake [Thu, 26 Oct 2000 17:09:35 +0000 (26 17:09 +0000)]
Test for and create Modules/Setup in the configure script if it does not
already exist.

git-svn-id: http://svn.python.org/projects/python/trunk@18203 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRename Setup.in to Setup.dist, and assume that configure will create
fdrake [Thu, 26 Oct 2000 17:07:40 +0000 (26 17:07 +0000)]
Rename Setup.in to Setup.dist, and assume that configure will create
Setup (instead of creating it from the Makefile).

git-svn-id: http://svn.python.org/projects/python/trunk@18202 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoLots of small markup adjustments for consistency with the rest of the
fdrake [Thu, 26 Oct 2000 16:41:03 +0000 (26 16:41 +0000)]
Lots of small markup adjustments for consistency with the rest of the
documentation.

git-svn-id: http://svn.python.org/projects/python/trunk@18201 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdate a comment to be correct.
fdrake [Thu, 26 Oct 2000 14:57:29 +0000 (26 14:57 +0000)]
Update a comment to be correct.

git-svn-id: http://svn.python.org/projects/python/trunk@18200 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemove bogus stdout redirection and use of sys.__stdout__; use
fdrake [Thu, 26 Oct 2000 03:56:46 +0000 (26 03:56 +0000)]
Remove bogus stdout redirection and use of sys.__stdout__; use
augmented print statement instead.

git-svn-id: http://svn.python.org/projects/python/trunk@18199 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemove bogus stdout redirection and use of sys.__stdout__; use
fdrake [Thu, 26 Oct 2000 03:49:15 +0000 (26 03:49 +0000)]
Remove bogus stdout redirection and use of sys.__stdout__; use
augmented print statement instead.

git-svn-id: http://svn.python.org/projects/python/trunk@18198 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoTypo: shorted --> shorter
fdrake [Wed, 25 Oct 2000 23:22:54 +0000 (25 23:22 +0000)]
Typo:  shorted --> shorter
This closes bug #117706.

git-svn-id: http://svn.python.org/projects/python/trunk@18197 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoPatch 102114, Bug 11725. On OpenBSD (but apparently not on the other
gvanrossum [Wed, 25 Oct 2000 22:07:45 +0000 (25 22:07 +0000)]
Patch 102114, Bug 11725.  On OpenBSD (but apparently not on the other
BSDs) you need a leading underscore in the dlsym() lookup name.

git-svn-id: http://svn.python.org/projects/python/trunk@18196 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix two typos in __imul__. Closes Bug #117745.
gvanrossum [Wed, 25 Oct 2000 21:58:20 +0000 (25 21:58 +0000)]
Fix two typos in __imul__.  Closes Bug #117745.

git-svn-id: http://svn.python.org/projects/python/trunk@18195 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdd IDLE wish: access items of arrays
gvanrossum [Wed, 25 Oct 2000 21:18:12 +0000 (25 21:18 +0000)]
Add IDLE wish: access items of arrays

git-svn-id: http://svn.python.org/projects/python/trunk@18194 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoSince LookupError can be raised by sys.setdefaultencoding(), we should not
fdrake [Wed, 25 Oct 2000 21:05:29 +0000 (25 21:05 +0000)]
Since LookupError can be raised by sys.setdefaultencoding(), we should not
document it as only being a base class, not matter how unlikely this is
to affect normal users.

git-svn-id: http://svn.python.org/projects/python/trunk@18193 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMarc-Andre Lemburg <mal@lemburg.com> noted that the encode() string method
fdrake [Wed, 25 Oct 2000 21:03:55 +0000 (25 21:03 +0000)]
Marc-Andre Lemburg <mal@lemburg.com> noted that the encode() string method
was added in 2.0.

git-svn-id: http://svn.python.org/projects/python/trunk@18192 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdditions from Marc-Andre Lemburg <mal@lemburg.com>, documenting
fdrake [Wed, 25 Oct 2000 21:02:55 +0000 (25 21:02 +0000)]
Additions from Marc-Andre Lemburg <mal@lemburg.com>, documenting
getdefaultencoding() and setdefaultencoding().

git-svn-id: http://svn.python.org/projects/python/trunk@18191 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoSeveral additions and updates based on text from Marc-Andre Lemburg
fdrake [Wed, 25 Oct 2000 20:59:52 +0000 (25 20:59 +0000)]
Several additions and updates based on text from Marc-Andre Lemburg
<mal@lemburg.com>.

Lots of markup reformatting to make it easier for me to read & maintain.

git-svn-id: http://svn.python.org/projects/python/trunk@18190 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMany changes.
jhylton [Wed, 25 Oct 2000 18:10:32 +0000 (25 18:10 +0000)]
Many changes.

Reformatting -- long lines, "[ ]" -> "[]", a few indentation nits.

Replace calls to Node function (which constructed ast nodes) with
calls to actual constructors imported from ast module.

Optimize com_node (most frequently used method) for the common case --
the appropriate method is found in _dispatch.

Fix com_augassign to use class object's rather than node names
(rendered invalid by recent changes to ast)

Remove expensive tests for sequence-ness in com_stmt and
com_append_stmt. These tests should never fail; if they do, something
is really broken and exception will be raised elsewhere.

Fix com_stmt and com_append_stmt to use isinstance rather than
testing's type slot of ast node (this slot disappeared with recent
changes to ast).

git-svn-id: http://svn.python.org/projects/python/trunk@18189 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoGenerated from rev 1.1 of ast.txt
jhylton [Wed, 25 Oct 2000 18:02:59 +0000 (25 18:02 +0000)]
Generated from rev 1.1 of ast.txt

git-svn-id: http://svn.python.org/projects/python/trunk@18188 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoSmall optimizations in dispatch method: 1) lookup node's __class__ once
jhylton [Wed, 25 Oct 2000 18:02:02 +0000 (25 18:02 +0000)]
Small optimizations in dispatch method: 1) lookup node's __class__ once
and store in local; 2) define _preorder to be dispatch (rather than
method that called dispatch).

git-svn-id: http://svn.python.org/projects/python/trunk@18187 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoSupport for generation of ast.py from simple description of node
jhylton [Wed, 25 Oct 2000 17:59:17 +0000 (25 17:59 +0000)]
Support for generation of ast.py from simple description of node
structure (ast.txt).  Usage is python astgen.py > ast.py.

git-svn-id: http://svn.python.org/projects/python/trunk@18186 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoTry to clarify when the Modules/Setup file should be edited. Added
fdrake [Wed, 25 Oct 2000 17:51:02 +0000 (25 17:51 +0000)]
Try to clarify when the Modules/Setup file should be edited.  Added
information about the --with-pydebug option to configure.

This closes bug #117070.

git-svn-id: http://svn.python.org/projects/python/trunk@18185 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAlso point TK_LIBRARY to the appropriate directory.
gvanrossum [Wed, 25 Oct 2000 17:42:13 +0000 (25 17:42 +0000)]
Also point TK_LIBRARY to the appropriate directory.
Changed the landmark to tclIndex, which should occur in both.

git-svn-id: http://svn.python.org/projects/python/trunk@18184 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRename $PYTHON_VERSION to $PACKAGE_VERSION; this is the version number for
fdrake [Wed, 25 Oct 2000 16:18:10 +0000 (25 16:18 +0000)]
Rename $PYTHON_VERSION to $PACKAGE_VERSION; this is the version number for
whatever is being documented, not necessarily Python.  (These tools are
also used for the How-To documents, etc.)

get_version_text():  New function.  Returns HTML fragment describing the
        software version and documentation date.

bot_navigation_panel():  Include the result of get_version_text() at the
        end, so the information is available on every page.

git-svn-id: http://svn.python.org/projects/python/trunk@18183 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRename $PYTHON_VERSION to $PACKAGE_VERSION; this is the version number for
fdrake [Wed, 25 Oct 2000 16:15:13 +0000 (25 16:15 +0000)]
Rename $PYTHON_VERSION to $PACKAGE_VERSION; this is the version number for
whatever is being documented, not necessarily Python.  (These tools are
also used for the How-To documents, etc.)

git-svn-id: http://svn.python.org/projects/python/trunk@18182 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemove some HTML from the PYTHONDOCS fragment defined here.
fdrake [Wed, 25 Oct 2000 16:12:04 +0000 (25 16:12 +0000)]
Remove some HTML from the PYTHONDOCS fragment defined here.

git-svn-id: http://svn.python.org/projects/python/trunk@18181 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMinor addition; add a little formatting to the release information that
fdrake [Wed, 25 Oct 2000 16:10:46 +0000 (25 16:10 +0000)]
Minor addition; add a little formatting to the release information that
will be added to Doc/perl/l2hinit.perl shortly.

git-svn-id: http://svn.python.org/projects/python/trunk@18180 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake this actually work now that the tool is checked in here instead of
fdrake [Tue, 24 Oct 2000 19:59:55 +0000 (24 19:59 +0000)]
Make this actually work now that the tool is checked in here instead of
just sitting around in my working directory.

git-svn-id: http://svn.python.org/projects/python/trunk@18179 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoKa-Ping Yee <ping@lfw.org>:
fdrake [Tue, 24 Oct 2000 19:57:45 +0000 (24 19:57 +0000)]
Ka-Ping Yee <ping@lfw.org>:
Changes to error messages to increase consistency & clarity.

This (mostly) closes SourceForge patch #101839.

git-svn-id: http://svn.python.org/projects/python/trunk@18178 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoInsert the current directory to the front of sys.path -- and remove it
gvanrossum [Tue, 24 Oct 2000 17:16:32 +0000 (24 17:16 +0000)]
Insert the current directory to the front of sys.path -- and remove it
at the end.  This fixes a problem where

python Lib/test/test_import.py

failed while "make test" succeeded.

git-svn-id: http://svn.python.org/projects/python/trunk@18177 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded a test case for the saxutils.prepare_input_source setSystemId bug.
larsga [Tue, 24 Oct 2000 16:00:22 +0000 (24 16:00 +0000)]
Added a test case for the saxutils.prepare_input_source setSystemId bug.

git-svn-id: http://svn.python.org/projects/python/trunk@18176 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFix bug in prepare_input_source (patched by Paul P., sourceforge.net down
larsga [Tue, 24 Oct 2000 15:53:12 +0000 (24 15:53 +0000)]
Fix bug in prepare_input_source (patched by Paul P., sourceforge.net down
now, so can't find number).

git-svn-id: http://svn.python.org/projects/python/trunk@18175 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdated output.
larsga [Tue, 24 Oct 2000 15:36:28 +0000 (24 15:36 +0000)]
Updated output.

git-svn-id: http://svn.python.org/projects/python/trunk@18174 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded some more tests here and there.
larsga [Tue, 24 Oct 2000 15:35:07 +0000 (24 15:35 +0000)]
Added some more tests here and there.

git-svn-id: http://svn.python.org/projects/python/trunk@18173 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded entries for the xml.dom.minidom module.
fdrake [Tue, 24 Oct 2000 02:35:42 +0000 (24 02:35 +0000)]
Added entries for the xml.dom.minidom module.

git-svn-id: http://svn.python.org/projects/python/trunk@18172 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoPaul Prescod <paul@prescod.net>:
fdrake [Tue, 24 Oct 2000 02:34:45 +0000 (24 02:34 +0000)]
Paul Prescod <paul@prescod.net>:
Documentation for the xml.dom.minidom module & Python DOM API.

FLD:  I have revised the markup in some places and added a few minor
details to Paul's text, but that's it.  Given the substantial
structural differences with the bulk of the presentation, I will be
making additional revisions over the next few days.

git-svn-id: http://svn.python.org/projects/python/trunk@18171 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemove second horizontal line below table headers; it is just too
fdrake [Tue, 24 Oct 2000 02:18:30 +0000 (24 02:18 +0000)]
Remove second horizontal line below table headers; it is just too
distracting.

git-svn-id: http://svn.python.org/projects/python/trunk@18170 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemove some obsolete files, and update the README.
fdrake [Mon, 23 Oct 2000 20:50:23 +0000 (23 20:50 +0000)]
Remove some obsolete files, and update the README.

git-svn-id: http://svn.python.org/projects/python/trunk@18169 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake reindent.py happy (convert everything to 4-space indents!).
fdrake [Mon, 23 Oct 2000 18:31:14 +0000 (23 18:31 +0000)]
Make reindent.py happy (convert everything to 4-space indents!).

git-svn-id: http://svn.python.org/projects/python/trunk@18168 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake reindent.py happy (lots of trailing whitespace removed).
fdrake [Mon, 23 Oct 2000 18:09:50 +0000 (23 18:09 +0000)]
Make reindent.py happy (lots of trailing whitespace removed).

git-svn-id: http://svn.python.org/projects/python/trunk@18167 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake reindent happy, but not in the way it planned!
fdrake [Mon, 23 Oct 2000 17:30:23 +0000 (23 17:30 +0000)]
Make reindent happy, but not in the way it planned!

git-svn-id: http://svn.python.org/projects/python/trunk@18166 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake reindent.py happy (convert everything to 4-space indents!).
fdrake [Mon, 23 Oct 2000 17:22:08 +0000 (23 17:22 +0000)]
Make reindent.py happy (convert everything to 4-space indents!).

git-svn-id: http://svn.python.org/projects/python/trunk@18165 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUse 4-space indents.
fdrake [Mon, 23 Oct 2000 17:00:30 +0000 (23 17:00 +0000)]
Use 4-space indents.

git-svn-id: http://svn.python.org/projects/python/trunk@18164 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoClean up the temporary file when done with it.
fdrake [Mon, 23 Oct 2000 16:59:35 +0000 (23 16:59 +0000)]
Clean up the temporary file when done with it.

git-svn-id: http://svn.python.org/projects/python/trunk@18163 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMake sure the temporary file is cleaned up even when we raise TestSkipped.
fdrake [Mon, 23 Oct 2000 16:38:20 +0000 (23 16:38 +0000)]
Make sure the temporary file is cleaned up even when we raise TestSkipped.

git-svn-id: http://svn.python.org/projects/python/trunk@18162 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded note saying to use test_support.TESTFN for a temporary filename,
fdrake [Mon, 23 Oct 2000 16:37:14 +0000 (23 16:37 +0000)]
Added note saying to use test_support.TESTFN for a temporary filename,
and be clear that you need to clean it up when done.

git-svn-id: http://svn.python.org/projects/python/trunk@18161 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded exception to the rule that the buffer returned by PyString_AsString()
fdrake [Mon, 23 Oct 2000 16:00:54 +0000 (23 16:00 +0000)]
Added exception to the rule that the buffer returned by PyString_AsString()
and PyString_AsStringAndSize() for strings that were just created using
PyString_FromStringAndSize(NULL, n).

This closes bug #117377.

Added warning about passing NULL to the concrete object functions; many of
them use the appropriate Py<Type>_Check() test, but do not check for NULL.

"de-allocated" --> "deallocated"

git-svn-id: http://svn.python.org/projects/python/trunk@18160 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoCorrect the name of a parameter in the description of the register()
fdrake [Mon, 23 Oct 2000 15:41:13 +0000 (23 15:41 +0000)]
Correct the name of a parameter in the description of the register()
function.

This closes bug #117467.

git-svn-id: http://svn.python.org/projects/python/trunk@18159 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded test for regression on SourceForge bug #117490.
fdrake [Mon, 23 Oct 2000 13:39:15 +0000 (23 13:39 +0000)]
Added test for regression on SourceForge bug #117490.

git-svn-id: http://svn.python.org/projects/python/trunk@18158 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMaildir.__init__(): Make sure self.boxes is set.
fdrake [Mon, 23 Oct 2000 13:37:01 +0000 (23 13:37 +0000)]
Maildir.__init__():  Make sure self.boxes is set.

This closes SourceForge bug #117490.

git-svn-id: http://svn.python.org/projects/python/trunk@18157 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agostruct.pack has become picky about h (short) and H (unsigned short).
jack [Sun, 22 Oct 2000 21:59:23 +0000 (22 21:59 +0000)]
struct.pack has become picky about h (short) and H (unsigned short).

git-svn-id: http://svn.python.org/projects/python/trunk@18155 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoUpdated because developer option isn't distributed separately anymore.
jack [Sun, 22 Oct 2000 21:57:12 +0000 (22 21:57 +0000)]
Updated because developer option isn't distributed separately anymore.

git-svn-id: http://svn.python.org/projects/python/trunk@18154 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoRemoved, no longer pertinent.
jack [Sun, 22 Oct 2000 21:55:03 +0000 (22 21:55 +0000)]
Removed, no longer pertinent.

git-svn-id: http://svn.python.org/projects/python/trunk@18153 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFinal version used for 2.0 distribution.
jack [Sun, 22 Oct 2000 21:54:33 +0000 (22 21:54 +0000)]
Final version used for 2.0 distribution.

git-svn-id: http://svn.python.org/projects/python/trunk@18152 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMore names.
fdrake [Sun, 22 Oct 2000 03:23:58 +0000 (22 03:23 +0000)]
More names.

git-svn-id: http://svn.python.org/projects/python/trunk@18151 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoAdded missing entry for invert() function.
fdrake [Sun, 22 Oct 2000 03:19:30 +0000 (22 03:19 +0000)]
Added missing entry for invert() function.

Added table mapping abstract operations to syntax to functions, based on
a suggestion from Bob Weiner <weiner@beopen.com>.

git-svn-id: http://svn.python.org/projects/python/trunk@18150 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoMinor tweaks to catch up with the current code in a few spots.
gward [Sun, 22 Oct 2000 01:40:08 +0000 (22 01:40 +0000)]
Minor tweaks to catch up with the current code in a few spots.
Wrote the "Distutils Configuration Files" section.

git-svn-id: http://svn.python.org/projects/python/trunk@18149 6015fed2-1504-0410-9fe1-9d1591cc4771

21 years agoFlesh out the "LaTeX Primer" some more.
fdrake [Fri, 20 Oct 2000 20:51:31 +0000 (20 20:51 +0000)]
Flesh out the "LaTeX Primer" some more.

git-svn-id: http://svn.python.org/projects/python/trunk@18148 6015fed2-1504-0410-9fe1-9d1591cc4771