Fred Drake [Mon, 19 Feb 2001 19:18:09 +0000 (19:18 +0000)]
Add an option allowing the user to determine where the output HTML is built.
Provide a way to set the paper size by name instead of only supporting
separate options for each size.
Guido van Rossum [Mon, 19 Feb 2001 18:39:09 +0000 (18:39 +0000)]
SF Patch # 103839 byt dougfort: Allow ';' in attributes
sgmllib does not recognize HTML attributes containing the semicolon
';' character. This may be in accordance with the HTML spec, but there
are sites that use it (excite.com) and the browsers I regularly use
(IE5, Netscape, Opera) all handle it. Doug Fort Downright Software LLC
Neil Schemenauer [Mon, 19 Feb 2001 18:17:33 +0000 (18:17 +0000)]
Revert SF patch #103655. Martin Löwis says:
-shared does the following things:
- invoke the linker with -G -dy -z text (the latter only if
-mimpure-text was not given)
- drop crt1.o from the list of objects being linked
- drop -lc from the list of libraries being linked
OTOH, -G is just passed through to the linker.
The things that -shared does are necessary: crt1.o defines _start, and
requires main, so it should not be present in a shared library.
Likewise, -z text should be used to detect position-dependent code at
compile time.
Thomas Heller [Mon, 19 Feb 2001 17:48:03 +0000 (17:48 +0000)]
Checked in with Andrew's blessing, I leave the comments with which
this was posted to distutils-sig in.
Here is what I've hacked together over some spare time
at the weekend. I would appreciate feedback, as I've told
before I'm neither a great author, nor native english speaker,
nor anything else.
Mostly I've completed (and written) docs for bdist_wininst
(where I'm an experert for), also I've started some stuff
for the data_files and scripts option.
Should I continue in this way? Would others like to jump in?
Jeremy Hylton [Mon, 19 Feb 2001 15:50:51 +0000 (15:50 +0000)]
When running python -O, do not include blocks defined in asserts in
the symbol table pass. These blocks were already ignored by the code
gen pass. Both passes must visit the same set of blocks in the same
order.
Fred Drake [Mon, 19 Feb 2001 14:57:02 +0000 (14:57 +0000)]
DOMException._get_code():
New method; this is the "alternate" access to the exception code.
(Useful for Python DOM implementations that support the accessor
method approach to retrieving attribute values.)
Thomas Heller [Mon, 19 Feb 2001 09:20:30 +0000 (09:20 +0000)]
Enhancements to the bdist_wininst command:
--bitmap command line option allows to use a different bitmap file instead
of the build-in python powered logo.
--title lets you specify the text to display on the background.
The editbox in the first screen now longer is
selected (highlighted), it had the WS_TABSTOP flag.
This is the patch
http://sourceforge.net/patch/?func=detailpatch&patch_id=103687&group_id=5470
with two changes:
1. No messagebox displayed when the compilation to .pyc or .pyo files
failes, this will only confuse the user (and it will fail under certain
cases, where sys.path contains garbage).
2. A debugging print statement was removed from bdist_wininst.py.
This patch makes the default compiler determination more flexible
and also takes the sys.platform name into account. This helps on
platforms where there are multiple possible compiler backends (the
one with which Python itself was compiled is preferred over others
in this case).
The patch uses this new technique to enable using cygwin compiler
per default for cygwin compiled Pythons.
Written by Marc-Andre Lemburg. Copyright assigned to Guido van Rossum.
Tim Peters [Mon, 19 Feb 2001 07:06:36 +0000 (07:06 +0000)]
Take a tour of hell's seedier neighborhoods to try to make winsound.Beep()
do something non-useless on Win9X boxes. WinME unknown to me. Someone with
NT/2000 make sure it still works there!
Neil Schemenauer [Mon, 19 Feb 2001 04:47:42 +0000 (04:47 +0000)]
Use -G option for linking shared libraries on Solaris (SF patch #103656).
Compile shared object files using -fPIC option when using GCC on Solaris (SF
patch #103865). Closes bug #132783. Move config.c generated by makesetup to
the Modules directory.
Tim Peters [Sun, 18 Feb 2001 04:45:10 +0000 (04:45 +0000)]
Bug #132313 error message confusing for assignment in lambda.
They're actually complaining about something more specific, an assignment
in a lambda as an actual argument, so that Python parses the
lambda as if it were a keyword argument. Like f(lambda x: x[0]=42).
The "lambda x: x[0]" part gets parsed as if it were a keyword, being
bound to 42, and the resulting error msg didn't make much sense.
Jack Jansen [Sat, 17 Feb 2001 23:31:48 +0000 (23:31 +0000)]
ConfigurePython now comes in two flavors: ConfigurePythonClassic and ConfigurePythonCarbon, which copy the respective interpreters to PythonInterpreter and rebuild all the applets. This allows MacOS9 users to switch back and forth.
Tim Peters [Sat, 17 Feb 2001 05:58:44 +0000 (05:58 +0000)]
SF patch #103808: doctest.py docs
Checking in Moshe's patch after rewrapping some paragraphs (to consume
fewer columns) and repairing that I/2.**J lost the I.
Set PYTHONPATH when running setup.py in order to override any ambient
value for it, as suggested in bug #129854. This prevents an old
PYTHONPATH confusing setup.py (say, if it results in Python finding
an old version of the Distutils)
Tim Peters [Sat, 17 Feb 2001 05:30:26 +0000 (05:30 +0000)]
Change temp names created by listcomps from [%d] to _[%d], so the one-liner
[k for k in dir() if k[0] != "_"]
can be used to get the non-private names (used to contain "[1]").
Jack Jansen [Fri, 16 Feb 2001 21:48:24 +0000 (21:48 +0000)]
Steven Majewski's instructions for building the toolbox modules for
incorporating them in a vanilla Python under MacOSX (i.e. in a
non-MacPython-Python). Not complete and up-to-date right now, but
that'll be fixed shortly.
Fred Drake [Fri, 16 Feb 2001 20:46:26 +0000 (20:46 +0000)]
Remove the old version of my_StartElementHandler(). This was conditionally
compiled only for some versions of Expat, but was no longer needed as the
new implementation works for all versions. Keeping it created multiple
definitions for Expat 1.2, which caused compilation to fail.
Neil Schemenauer [Fri, 16 Feb 2001 03:59:53 +0000 (03:59 +0000)]
Build grammar files in their proper place rather than moving them. This should
allow building with a read-only source tree (although I haven't tried it).
Skip Montanaro [Thu, 15 Feb 2001 22:15:14 +0000 (22:15 +0000)]
bunch more __all__ lists
also modified check_all function to suppress all warnings since they aren't
relevant to what this test is doing (allows quiet checking of regsub, for
instance)
Skip Montanaro [Thu, 15 Feb 2001 16:56:36 +0000 (16:56 +0000)]
provide simple recovery/escape from apparent redirect recursion. If the
number of entries into http_error_302 exceeds the value set for the maxtries
attribute (which defaults to 10), the recursion is exited by calling
the http_error_500 method (or if that is not defined, http_error_default).
Thomas Wouters [Thu, 15 Feb 2001 08:46:56 +0000 (08:46 +0000)]
Add a few more missing prototypes to the SunOS 4.1.4 section (no SF
bugreport, just an IRC one by Marion Delgado.) These prototypes are
necessary because the functions are tossed around, not just called.
Fred Drake [Wed, 14 Feb 2001 18:29:45 +0000 (18:29 +0000)]
xmlparseobject: Remove the unused conv_attrs field, added an
in_callback field that's set to true whenever a callback into an
event handler is true. Needed for:
set_error(): Add line number of offset information to the exception
as attributes, so users don't need to parse the text of the
message.
set_error_attr(): New helper function for set_error().
xmlparse_GetInputContext(): New function of the parser object;
returns the document source for an event during a callback, None
at all other times.
xmlparse_SetParamEntityParsing(): Make the signature consistent with
the other parser methods (use xmlparseobject* for self instead of
PyObject*).
initpyexpat(): Don't lose the reference to the exception class!
call_with_frame(),
getcode(): Re-indent to be consistent with the rest of the file.