Jeremy Hylton [Fri, 1 Sep 2000 20:33:26 +0000 (20:33 +0000)]
Update magic number.
Fix import support to work with import as variant of Python 2.0. The
grammar for import changed, requiring changes in transformer and code
generator, even to handle compilation of imports with as.
Tim Peters [Fri, 1 Sep 2000 19:59:11 +0000 (19:59 +0000)]
Install LICENSE.txt and README.txt.
In the Welcome dialog:
Reworded reference to non-existent "Exit Setup" button.
Removed useless "Back" button.
Changed "push" to "click".
Tim Peters [Fri, 1 Sep 2000 19:30:26 +0000 (19:30 +0000)]
Guido pointed out that the "non-admin install" blurb got displayed
very late in the process when running on Windows 2000 without admim
privs. Rearranged so that the admin check is done at the start
instead. Added words to the end of the blurb to make it very clear
how to abort the install (wasn't obvious to me that "Cancel" was
the right thing to click).
Barry Warsaw [Fri, 1 Sep 2000 09:01:32 +0000 (09:01 +0000)]
Do the absolute minimal amount of modifications to eradicate
Py_FatalError() from module initialization functions. The importing
mechanism already checks for PyErr_Occurred() after module importation
and it Does The Right Thing.
Unfortunately, the following either were not compiled or tested by the
regression suite, due to issues with my development platform:
Barry Warsaw [Fri, 1 Sep 2000 08:10:08 +0000 (08:10 +0000)]
Tool to generate binary GNU .mo file from .po template files. Written
by Martin v. Loewis, proofed by Barry Warsaw for coding standards,
typos, and to make command line options compatible with GNU msgfmt
where they overlap.
Tim Peters [Fri, 1 Sep 2000 06:51:24 +0000 (06:51 +0000)]
Fix test_popen2 on Windows, recently broken by changes to the dict(!)
implementation. You don't want to know. I've asked Guido to give this
a critical review (we agreed on the approach, but the implementation
proved more ... interesting ... than anticipated). This will almost
certainly be the highlight of Mark Hammond's day <wink>.
Barry Warsaw [Fri, 1 Sep 2000 06:09:23 +0000 (06:09 +0000)]
Added support for RFC 959's REST command (restart), closing SF patch
#101187, which some modifications. Specifically,
ntransfercmd(), transfercmd(), and retrbinary() all grow an optional
`rest' argument, which if not None, is used as the argument to an FTP
REST comman dbefore the socket is returned. Differences from the SF
patch:
- always compare against None with `is' or `is not' instead of == or !=
- no parens around conditional
- RFC 959 defines the argument to REST is a string containing any
ASCII characters in the range [33..126]. Therefore, we use the %s
format character instead of %f or %d as suggested in the patch's
comments. Note that we do /not/ sanity checkthe contents of the
rest argument (but we'll document this in the library reference
manual).
Tim Peters [Fri, 1 Sep 2000 03:34:26 +0000 (03:34 +0000)]
Revert removal of void from function definition. Guido sez I can take it
out again after we complete switching to C++ <wink>. Thanks to Greg Stein
for hitting me.
Now that StreamRequestHandler defaults rfile to buffered, make it
unbuffered (by setting the class variable rbufsize to 0), because we
(may) need to pass the file descriptor to the subprocess running the
CGI script positioned after the headers.
In class StreamRequestHandler, make the default buffering for rfile
and wfile class variables (that the instance can also override).
Change the default for rfile to buffered, because that seems to make a
big difference in performance on some platforms.
An anti-patch is needed to revert the effect in CGIHTTPServer.py which
I'll check in momentarily.
Jeremy Hylton [Fri, 1 Sep 2000 02:47:25 +0000 (02:47 +0000)]
refactor __del__ exception handler into PyErr_WriteUnraisable
add sanity check to gc: if an exception occurs during GC, call
PyErr_WriteUnraisable and then call Py_FatalEror.
Rene Liebscher/Thomas Heller:
* ensure the "dist" directory exists
* raise exception if using for modules containing compiled extensions
on a non-win32 platform.
* don't create an .ini file anymore (it was just for debugging)
Rene Liebscher:
* reverse library names from bcpp_library to library_bcpp
* move some code to the right places, to put the def-files
in the right directories again
Rene Liebscher: hack '_init_posix()' to handle the BeOS linker script.
(With a worry-wart comment added by me about where we *should* add the
Python library to the link.)
Added 'run_setup()' to allow outsiders to run a setup script under
fairly tight control, and the '_setup_stop_after' and '_setup_distribution'
globals to provide the tight control.
This isn't entirely reliable yet: it dies horribly with a NameError on the
example PIL setup script in examples/pil_setup.py (at least with Python
1.5.2; untested with current Python). There's some strangeness going
on with execfile(), but I don't understand it and don't have time
to track it down right now.
Tim Peters [Fri, 1 Sep 2000 00:01:58 +0000 (00:01 +0000)]
Supply missing prototypes for new Py_{Get,Set}RecursionLimit; fixes compiler wngs;
un-analize Get's definition ("void" is needed only in declarations, not defns, &
is generally considered bad style in the latter).
Jeremy Hylton [Thu, 31 Aug 2000 19:23:01 +0000 (19:23 +0000)]
add user-modifiable recursion_limit
ceval.c:
define recurion_limit (static), default value is 2500
define Py_GetRecursionLimit and Py_SetRecursionLimit
raise RuntimeError if limit is exceeded
PC/config.h:
remove plat-specific definition
sysmodule.c:
add sys.(get|set)recursionlimit
Fred Drake [Thu, 31 Aug 2000 19:04:07 +0000 (19:04 +0000)]
Clear errors raised by PyObject_Compare() without losing any existing
exception context. This avoids improperly propogating errors raised by
a user-defined __cmp__() by a subsequent lookup operation.
This patch does *not* include the performance enhancement patch for
dictionaries with string keys only; that will be checked in separately.
This closes SourceForge patch #101277 and bug #112558.
Fred Drake [Thu, 31 Aug 2000 17:23:35 +0000 (17:23 +0000)]
Document the limitation that urllib does not work with proxies which
require authenication. This is an implementation limitation rather than
required behavior, and may be fixed in the future.
Fred Drake [Thu, 31 Aug 2000 16:11:07 +0000 (16:11 +0000)]
Skip Montanaro <skip@mojam.com>:
Update the build structures to automatically detect the presence of BSD db,
including the proper name of the header file to include. Has all the
expected niceties associated with yet-more-configure-options. ;)
This checkin includes changes for non-generated files only; subsequent
checkin will catch those.
Fred Drake [Thu, 31 Aug 2000 15:21:11 +0000 (15:21 +0000)]
_PySys_Init(): When setting up sys.version_info, use #if/#elif.../#endif
instead of four #if/#endif blocks. This shortens the
code and improves readability.
Sjoerd Mullender [Thu, 31 Aug 2000 10:27:00 +0000 (10:27 +0000)]
New method getnamespace.
Since the application never gets to see the namespace abbreviation
used in the XML document, but some applications may need to know them,
we provide this method.
Fred Drake [Thu, 31 Aug 2000 07:19:07 +0000 (07:19 +0000)]
Be a little more careful to avoid including style information in the
generated markup.
Don't be careless with the navigation icons! We should use the blank
icon where there is not anyplace to go for a particular position in the
navigation bar.
Fred Drake [Thu, 31 Aug 2000 06:58:34 +0000 (06:58 +0000)]
Add --up-link and --up-title parameters to allow linking the top level
of the generated document to an external index. These correspond to the
-up_url and -up_title parameters of LaTeX2HTML.
Fred Drake [Thu, 31 Aug 2000 05:15:44 +0000 (05:15 +0000)]
Removed compiler warning about wanting explicit grouping around &&
expression next to a || expression; this is a readability-inspired
warning from GCC.
Greg Ward [Thu, 31 Aug 2000 00:31:07 +0000 (00:31 +0000)]
Add /GX to 'compile_options'. This is definitely needed for C++ source;
according to the MS docs it enables exception-handling, and (according
to Alex Martelli <aleaxit@yahoo.com>) is needed to compile without
getting warnings from standard C++ library headers. Apparently
it doesn't cause any problems with C code, so I haven't bothered
conditionalizing the use of /GX.
Skip Montanaro [Wed, 30 Aug 2000 14:01:28 +0000 (14:01 +0000)]
patches from David Goodger. Closes patch 101085.
* deletes cache
* adds firstweekday and setfirstweekday functions that allow user to control
which day of the week is first when displaying calendars
* adds month, week, calendar functions that return their results instead of
printing them
* adds symbolic constants MONDAY, ..., SUNDAY so users need not remember the
ordinal values of the weekdays