Fred Drake [Tue, 25 Jun 2002 17:10:50 +0000 (17:10 +0000)]
Talk about interfaces rather than implementation classes where appropriate.
Add hyperlinks to make the documentation on the Attributes and AttributesNS
interfaces more discoverable.
Closes SF bug #484603.
Skip Montanaro [Tue, 25 Jun 2002 05:53:48 +0000 (05:53 +0000)]
Not sure how I forgot to check these in - thought I did all the files in one
fell swoop. Anyway, this just deletes a couple checks for dbm-type header
files that are now performed in setup.py. See patch 553108 for details.
Barry Warsaw [Mon, 24 Jun 2002 20:27:33 +0000 (20:27 +0000)]
In the Extension() call, add runtime_library_dirs so that a useful
-R/--rpath flag gets passed to the linker. Source builds of
BerkeleyDB do their default installs in locations not normally on
ld.so's search path.
Kurt B. Kaiser [Mon, 24 Jun 2002 17:03:37 +0000 (17:03 +0000)]
Clear associated breakpoints when closing an edit window.
M Debugger.py : Added clear_file_breaks()
M EditorWindow.py : Clear breaks when closed, commments->docstrings,
comment out some debugging print statements
M PyShell.py : comments->docstrings ; clarify extending EditorWindow
methods.
M RemoteDebugger.py: Add clear_all_file_breaks() functionality,
clarify some comments.
Jack Jansen [Fri, 21 Jun 2002 14:48:38 +0000 (14:48 +0000)]
Patch #557719 by Tony Lownds, slightly massaged by me: streamline the
OSX framework build process. Things fixed/modified:
- the filesystem case-sensitivity test now works for builds outside
the source directory
- various other fixes for building outside the source directory
- python.app now has a target in the main Makefile
- WASTE and AquaTk are found more automatically
Jack Jansen [Thu, 20 Jun 2002 21:34:35 +0000 (21:34 +0000)]
Disable the test for importing very long lists for MacPython: it triggers
an out-of-memory condition (and a hang on OSX). Filed a bug report
(#571845) to make sure this is eventually fixed.
Fred Drake [Thu, 20 Jun 2002 18:31:21 +0000 (18:31 +0000)]
Clean up docstrings:
- Include a blank line between the signature line and the description
(Guido sez).
- Don't include "-> None" for API functions that always return None
because they don't have a meaningful return value.
Fred Drake [Thu, 20 Jun 2002 14:23:15 +0000 (14:23 +0000)]
Simplify the production for argument list, making sure that it
actually allows all the legal syntax, and nothing else. Previously,
it did not allow a call like func(arg, **dictionary).
This closes (again!) SF bug #493243.
Guido van Rossum [Thu, 20 Jun 2002 03:40:16 +0000 (03:40 +0000)]
I get failures half of the time that I run this, so I'll disable
running this as part of the regular test suite again, until I have
time to figure out why.
Jeremy Hylton [Tue, 18 Jun 2002 18:42:41 +0000 (18:42 +0000)]
Add a default implementation of compile() to the base class.
The default implementation calls _compile() to compile individual
files. This method must be implemented by the subclass. This change
factors out most of the remaining common code in all the compilers
except mwerks.
Fred Drake [Tue, 18 Jun 2002 18:42:01 +0000 (18:42 +0000)]
Played contortionist games with the argument_list production so it
might be easier to understand.
This relates to SF bug #493243, which will be closed.
Guido van Rossum [Tue, 18 Jun 2002 18:35:13 +0000 (18:35 +0000)]
Michael fixed the race conditions and removed the sleeps.
This is his SF patch 569697. I renamed main() to test_main() again so
that this is run as part of the standard test suite.
Fred Drake [Tue, 18 Jun 2002 18:30:28 +0000 (18:30 +0000)]
\productioncont: Replace leading spaces with so that it's
possible to control the indentation of continuation lines.
cfuncline_helper(): Only mark the argument names are <var>, not the
whole argument list. This leaves the argument types in the same
font as the return type. Based on a casual suggestion from
Guido.
Fred Drake [Tue, 18 Jun 2002 18:24:16 +0000 (18:24 +0000)]
Refactor the generation of signature lines for funcdesc, methoddesc,
and friends. This was part of the changes to the presentation of
signature lines, but does not include any of the aspects that people
questioned.
Guido van Rossum [Tue, 18 Jun 2002 16:49:45 +0000 (16:49 +0000)]
Patch from SF bug 570483 (Tim Northover).
In a fresh interpreter, type.mro(tuple) would segfault, because
PyType_Ready() isn't called for tuple yet. To fix, call
PyType_Ready(type) if type->tp_dict is NULL.
Guido van Rossum [Tue, 18 Jun 2002 16:44:57 +0000 (16:44 +0000)]
Patch from SF bug 570483 (Tim Northover).
In a fresh interpreter, type.mro(tuple) would segfault, because
PyType_Ready() isn't called for tuple yet. To fix, call
PyType_Ready(type) if type->tp_dict is NULL.
Fred Drake [Tue, 18 Jun 2002 15:21:21 +0000 (15:21 +0000)]
SF patch #552837, submitted by Robert Pyron:
1. BUGFIX: In function makefile(), strip blanks from the nodename.
This is necesary to match the behavior of parser.makeref() and
parser.do_node().
2. BUGFIX fixed KeyError in end_ifset (well, I may have just made
it go away, rather than fix it)
3. BUGFIX allow @menu and menu items inside @ifset or @ifclear
4. Support added for:
@uref URL reference
@image image file reference (see note below)
@multitable output an HTML table
@vtable
5. Partial support for accents, to match MAKEINFO output
6. I added a new command-line option, '-H basename', to specify
HTML Help output. This will cause three files to be created
in the current directory:
`basename`.hhp HTML Help Workshop project file
`basename`.hhc Contents file for the project
`basename`.hhk Index file for the project
When fed into HTML Help Workshop, the resulting file will be
named `basename`.chm.
7. A new class, HTMLHelp, to accomplish item 6.
8. Various calls to HTMLHelp functions.
A NOTE ON IMAGES: Just as 'outputdirectory' must exist before
running this program, all referenced images must already exist
in outputdirectory.
Fred Drake [Mon, 17 Jun 2002 15:01:05 +0000 (15:01 +0000)]
Ensure \verbatiminput always uses a unique filename for each input file in
the "Download as text" link. Previously, it could map multiple source files
to a single name since all files end up with the same extension.
This closes SF bug #558279.
Walter Dörwald [Mon, 17 Jun 2002 10:43:59 +0000 (10:43 +0000)]
Apply diff2.txt from SF patch http://www.python.org/sf/566999
This patch enhances Python/import.c/find_module() so
that unicode objects found in sys.path will be treated
as legal directory names (The current code ignores
anything that is not a str). The unicode name is
converted to str using Py_FileSystemDefaultEncoding.
Kurt B. Kaiser [Sun, 16 Jun 2002 03:32:24 +0000 (03:32 +0000)]
Polish RemoteDebugger code.
Use a repr() on the subprocess side when fetching dict values for stack.
The various dict entities are not needed by the debugger GUI, only
their representation.
Tim Peters [Sat, 15 Jun 2002 05:14:05 +0000 (05:14 +0000)]
test_module_with_large_stack(): This failed when Python was run with -O,
trying to delete a .pyc file that didn't exist (it needed to delete .pyo
then).
Guido van Rossum [Fri, 14 Jun 2002 20:41:17 +0000 (20:41 +0000)]
SF patch 568629 by Oren Tirosh: types made callable.
These built-in functions are replaced by their (now callable) type:
slice()
buffer()
and these types can also be called (but have no built-in named
function named after them)
classobj (type name used to be "class")
code
function
instance
instancemethod (type name used to be "instance method")
The module "new" has been replaced with a small backward compatibility
placeholder in Python.
A large portion of the patch simply removes the new module from
various platform-specific build recipes. The following binary Mac
project files still have references to it:
Skip Montanaro [Fri, 14 Jun 2002 20:30:31 +0000 (20:30 +0000)]
This introduces stricter library/header file checking for the Berkeley DB
library. Since multiple versions can be installed simultaneously, it's
crucial that you only select libraries and header files which are compatible
with each other. Version checking is done from highest version to lowest.
Building using version 1 of Berkeley DB is disabled by default because of
the hash file bugs people keep rediscovering. It can be enabled by
uncommenting a few lines in setup.py. Closes patch 553108.
Fred Drake [Fri, 14 Jun 2002 14:35:56 +0000 (14:35 +0000)]
Clean up descriptions of PyObject_RichCompare() and PyObject_RichCompareBool()
based on comments from David Abrahams.
Added refcount information for these functions.
Guido van Rossum [Fri, 14 Jun 2002 02:27:07 +0000 (02:27 +0000)]
Inexplicably, recurse_down_subclasses() was comparing the object
gotten from a weak reference to NULL instead of to None. This caused
the following assert() to fail (but only in 2.2 in the debug build --
I have to find a better test case). Will backport.