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
Barry Warsaw [Wed, 30 Aug 2000 03:29:58 +0000 (03:29 +0000)]
Finalize this module for Python 2.0 based on feedback and input from
Martin von Loewis, Peter Funk, James Henstridge, Francois Pinard, and
Marc-Andre Lemburg.
Removed forgotten text in list comprehensions section (taken from the Haskell
description of listcomps and used as inspiration)
Rearranged sections (which accounts for much of the size of the diffs)
Added section on augmented assignment
Mentioned 'print >>file'
Broke up the "Core Changes" section into subsections
Fred Drake [Tue, 29 Aug 2000 18:15:05 +0000 (18:15 +0000)]
Add a --style option to allow specifying an alternate CSS style sheet for
HTML generation; the machinery was there but no option to set it was
defined.
Simplify some of the path-math since we can assume a recent version of
Python.
Fix for two problems on FreeBSD:
In test_poll1(), unregister file descriptors as they're closed,
and also close the read end of the pipe
In test_poll2(), make the code assume less about the combinations of flag
bits that will be returned
Barry Warsaw [Tue, 29 Aug 2000 04:56:13 +0000 (04:56 +0000)]
eval_code2(): Guido provides this patch for his suggested elaboration
of extended print. If the file object being printed to is None, then
sys.stdout is used.
Greg Ward [Tue, 29 Aug 2000 01:15:18 +0000 (01:15 +0000)]
Added 'script_name' and 'script_args' instance attributes to Distribution.
Changed 'core.setup()' so it sets them to reasonable defaults.
Tweaked how the "usage" string is generated: 'core' now provides
'gen_usage()', which is used instead of 'USAGE'.
Modified "build_py" and "sdist" commands to refer to
'self.distribution.script_name' rather than 'sys.argv[0]'.
Thomas Wouters [Sun, 27 Aug 2000 20:31:27 +0000 (20:31 +0000)]
Replace the run-time 'future-bytecode-stream-inspection' hack to find out
how 'import' was called with a compiletime mechanism: create either a tuple
of the import arguments, or None (in the case of a normal import), add it to
the code-block constants, and load it onto the stack before calling
IMPORT_NAME.
Guido van Rossum [Sun, 27 Aug 2000 19:21:52 +0000 (19:21 +0000)]
Add three new APIs: PyRun_AnyFileEx(), PyRun_SimpleFileEx(),
PyRun_FileEx(). These are the same as their non-Ex counterparts but
have an extra argument, a flag telling them to close the file when
done.
Then this is used by Py_Main() and execfile() to close the file after
it is parsed but before it is executed.
Adding APIs seems strange given the feature freeze but it's the only
way I see to close the bug report without incompatible changes.
[ Bug #110616 ] source file stays open after parsing is done (PR#209)
Tim Peters [Sat, 26 Aug 2000 08:24:18 +0000 (08:24 +0000)]
Another new test using "from test.test_support import ...", causing
subtle breakage on Windows (the test is skipped here, but the TestSkipped
exception wasn't recognized as such, because of duplicate copies of
test_support got loaded; so the test looks like a failure under Windows
instead of a skip).
Repaired the import, but
THIS TEST *WILL* FAIL ON OTHER SYSTEMS NOW!
Again due to the duplicate copies of test_support, the checked-in
"expected output" file actually contains verbose-mode output. I can't
generate the *correct* non-verbose output on my system. So, somebody
please do that.
Tim Peters [Sat, 26 Aug 2000 07:38:06 +0000 (07:38 +0000)]
Try to supply a prototype for the module init function but avoid
Windows "inconsistent linkage" warnings at the same time. I agree
with Mark Hammond that the whole DL_IMPORT/DL_EXPORT macro system
needs an overhaul; this is just an expedient hack until then.
Greg Ward [Sat, 26 Aug 2000 02:40:10 +0000 (02:40 +0000)]
New release of the Windows installer from Thomas Heller.
The known bug (bogus error message when an empty file is
extracted) is fixed.
Other changes:
- The target-compile and target-optimize flags of bdist_wininst
are gone. It is no longer possible to compile the python
files during installation.
- The zlib module is no longer required or used by bdist_wininst.
- I moved the decompression/extraction code into a separate
file (extract.c).
- The installer stub is now compressed by UPX (see
http://upx.tsx.org/). This reduces the size of the exe
(and thus the overhead of the final installer program)
from 40 kB to 16 kB.
- The installer displays a more uptodate user wizard-like
user interface, also containing a graphic: Just's Python Powered logo.
(I could not convince myself to use one of the BeOpen logos).
- The installation progress bar now moves correctly.
Fix to bug [ Bug #111860 ] file.writelines() crashes.
file.writelines() now tries to emulate the behaviour of file.write()
as closely as possible. Due to the problems with releasing the
interpreter lock the solution isn't exactly optimal, but still better
than not supporting the file.write() semantics at all.