]> granicus.if.org Git - python/log
python
22 years agoAdd a reminder
Andrew M. Kuchling [Tue, 25 Jun 2002 23:57:17 +0000 (23:57 +0000)]
Add a reminder

22 years agoSilence compiler warning
Jeremy Hylton [Tue, 25 Jun 2002 19:26:34 +0000 (19:26 +0000)]
Silence compiler warning

22 years agoAdd convenience module to run all the XML tests.
Fred Drake [Tue, 25 Jun 2002 19:20:10 +0000 (19:20 +0000)]
Add convenience module to run all the XML tests.

22 years agoTalk about interfaces rather than implementation classes where appropriate.
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.

22 years agoAdded some more links to the "See also" section.
Fred Drake [Tue, 25 Jun 2002 16:58:58 +0000 (16:58 +0000)]
Added some more links to the "See also" section.

22 years agoWhen talking about interfaces, use the interface names, not the names
Fred Drake [Tue, 25 Jun 2002 16:25:01 +0000 (16:25 +0000)]
When talking about interfaces, use the interface names, not the names
of the implementation classes.  (Remove the "Impl" from two names.)

22 years agoFix typo
Raymond Hettinger [Tue, 25 Jun 2002 15:26:59 +0000 (15:26 +0000)]
Fix typo

22 years agoClose bug 480337: Dict used before dicts explained. Added explanation
Raymond Hettinger [Tue, 25 Jun 2002 15:13:18 +0000 (15:13 +0000)]
Close bug 480337:  Dict used before dicts explained.  Added explanation
and examples of the dict() constructor.

22 years agoClose bug 417930 by clarifying augmented assignment docs
Raymond Hettinger [Tue, 25 Jun 2002 13:36:41 +0000 (13:36 +0000)]
Close bug 417930 by clarifying augmented assignment docs

22 years agoNot sure how I forgot to check these in - thought I did all the files in one
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.

22 years agoFix SF bug 568269 by enclosing 'computername' in a raw string
Raymond Hettinger [Tue, 25 Jun 2002 04:53:05 +0000 (04:53 +0000)]
Fix SF bug 568269 by enclosing 'computername' in a raw string

22 years agoMinor English grammar correction
Raymond Hettinger [Tue, 25 Jun 2002 04:04:14 +0000 (04:04 +0000)]
Minor English grammar correction

22 years agoRemove all EditorWindow BREAK tags when closing Debugger
Kurt B. Kaiser [Tue, 25 Jun 2002 03:28:38 +0000 (03:28 +0000)]
Remove all EditorWindow BREAK tags when closing Debugger

22 years agoFix spacing in loop example
Raymond Hettinger [Tue, 25 Jun 2002 03:17:03 +0000 (03:17 +0000)]
Fix spacing in loop example

22 years agoFix SF bug 546434 -- buffer slice type inconsistent.
Raymond Hettinger [Tue, 25 Jun 2002 00:25:30 +0000 (00:25 +0000)]
Fix SF bug 546434 -- buffer slice type inconsistent.

22 years agofix incorrect size calc. in IMAP4_SSL.read
Piers Lauder [Mon, 24 Jun 2002 23:35:37 +0000 (23:35 +0000)]
fix incorrect size calc. in IMAP4_SSL.read

22 years agoIn the Extension() call, add runtime_library_dirs so that a useful
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.

22 years agoClear associated breakpoints when closing an edit window.
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.

22 years agoFix SF bug 572567: Memory leak in object comparison.
Raymond Hettinger [Mon, 24 Jun 2002 13:08:16 +0000 (13:08 +0000)]
Fix SF bug 572567: Memory leak in object comparison.

22 years agoSF # 572928 One word change for lib/libgettext.tex
Neal Norwitz [Mon, 24 Jun 2002 02:22:39 +0000 (02:22 +0000)]
SF # 572928 One word change for lib/libgettext.tex

Fix typo.

22 years ago- Got rid of non-carbon stuff
Jack Jansen [Sun, 23 Jun 2002 22:09:45 +0000 (22:09 +0000)]
- Got rid of non-carbon stuff
- Use precompiled headers
- Rationalized naming scheme

22 years agoRandom tweaks & updates.
Michael W. Hudson [Sun, 23 Jun 2002 16:29:36 +0000 (16:29 +0000)]
Random tweaks & updates.

22 years agoFix IMAP4_SSL read and send methods to take account of short data
Piers Lauder [Sun, 23 Jun 2002 10:47:13 +0000 (10:47 +0000)]
Fix IMAP4_SSL read and send methods to take account of short data

22 years agoConvert the example C code to ANSI rather than K&R.
Fred Drake [Sat, 22 Jun 2002 01:42:00 +0000 (01:42 +0000)]
Convert the example C code to ANSI rather than K&R.
This matches the Python C style guide (PEP 7).
Closes SF patch #571489.

22 years agoCorrect the RE equivalent of scanf()'s %x and %X patterns.
Fred Drake [Sat, 22 Jun 2002 01:07:37 +0000 (01:07 +0000)]
Correct the RE equivalent of scanf()'s %x and %X patterns.
Closes SF bug #572169.

22 years agoPatch #557719 by Tony Lownds, slightly massaged by me: streamline the
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

22 years agoTypo fix.
Greg Ward [Fri, 21 Jun 2002 12:33:08 +0000 (12:33 +0000)]
Typo fix.

22 years agoAdd a check that the bug Jeremy just fixed in _PyTuple_Resize() is
Guido van Rossum [Fri, 21 Jun 2002 02:14:10 +0000 (02:14 +0000)]
Add a check that the bug Jeremy just fixed in _PyTuple_Resize() is
fixed.

(Jeremy, how did you discover that?)

22 years agoMention private vars in __slots__.
Guido van Rossum [Fri, 21 Jun 2002 01:29:25 +0000 (01:29 +0000)]
Mention private vars in __slots__.

22 years agoFix for SF bug 571885
Jeremy Hylton [Thu, 20 Jun 2002 23:13:17 +0000 (23:13 +0000)]
Fix for SF bug 571885

When resizing a tuple, zero out the memory starting at the end of the
old tuple not at the beginning of the old tuple.

22 years ago- Got rid of newmodule.c
Jack Jansen [Thu, 20 Jun 2002 22:56:22 +0000 (22:56 +0000)]
- Got rid of newmodule.c
- These are the final projects that support classic.

22 years agoSF 569257 -- Name mangle double underscored variable names in __slots__.
Raymond Hettinger [Thu, 20 Jun 2002 22:23:15 +0000 (22:23 +0000)]
SF 569257 -- Name mangle double underscored variable names in __slots__.

22 years agoCorrected return type and value information for PyUnicode_Count() and
Fred Drake [Thu, 20 Jun 2002 22:07:04 +0000 (22:07 +0000)]
Corrected return type and value information for PyUnicode_Count() and
PyUnicode_Find().
This closes SF bug #566631.

22 years agoFix the docstring for sys.getrefcount().
Fred Drake [Thu, 20 Jun 2002 21:36:19 +0000 (21:36 +0000)]
Fix the docstring for sys.getrefcount().
Closes SF bug #571759.

22 years agoDisable the test for importing very long lists for MacPython: it triggers
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.

22 years agoMake the docs for string.capitalize() match those of str.capitalize()
Fred Drake [Thu, 20 Jun 2002 21:18:46 +0000 (21:18 +0000)]
Make the docs for string.capitalize() match those of str.capitalize()
(which makes it more clear).
Closes SF bug #571767.

22 years agoAdd a note that divmod() with complex numbers is deprecated.
Fred Drake [Thu, 20 Jun 2002 21:10:25 +0000 (21:10 +0000)]
Add a note that divmod() with complex numbers is deprecated.

22 years agoAdded reference to the Expat home page.
Fred Drake [Thu, 20 Jun 2002 21:06:03 +0000 (21:06 +0000)]
Added reference to the Expat home page.

22 years agoTry to improve the explanation of the "raise" statement and how its arguments
Fred Drake [Thu, 20 Jun 2002 20:55:29 +0000 (20:55 +0000)]
Try to improve the explanation of the "raise" statement and how its arguments
are interpreted.
This closes SF bug #532467.

22 years agoOpen the source file in universal newline mode.
Jack Jansen [Thu, 20 Jun 2002 20:42:07 +0000 (20:42 +0000)]
Open the source file in universal newline mode.

22 years agoClean up docstrings:
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.

22 years agoRemoved the generator future-stmt -- not needed for 2.3.
Tim Peters [Thu, 20 Jun 2002 14:52:37 +0000 (14:52 +0000)]
Removed the generator future-stmt -- not needed for 2.3.

22 years agoSimplify the production for argument list, making sure that it
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.

22 years agoSF 563530 added missing methods for emulating numeric types
Raymond Hettinger [Thu, 20 Jun 2002 06:12:37 +0000 (06:12 +0000)]
SF 563530 added missing methods for emulating numeric types

22 years ago1. Debugger Breakpoints, finish implementation
Kurt B. Kaiser [Thu, 20 Jun 2002 04:01:47 +0000 (04:01 +0000)]
1. Debugger Breakpoints, finish implementation
2. Debugger Clear Breakpoints, implement
3. Nice yellow breakpoints for Chui  :)

22 years agoI get failures half of the time that I run this, so I'll disable
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.

22 years agoSF 570727 indexer() class no longer needed since lists now support slicing
Raymond Hettinger [Thu, 20 Jun 2002 03:38:12 +0000 (03:38 +0000)]
SF 570727 indexer() class no longer needed since lists now support slicing

22 years agoFix the bug described in
Michael W. Hudson [Wed, 19 Jun 2002 15:44:15 +0000 (15:44 +0000)]
Fix the bug described in

http://mail.python.org/pipermail/python-dev/2002-June/025461.html

with test cases.

Also includes extended slice support for arrays, which I thought I'd
already checked in but obviously not.

22 years agoMention pymemcompat.h.
Guido van Rossum [Tue, 18 Jun 2002 21:20:13 +0000 (21:20 +0000)]
Mention pymemcompat.h.

22 years agoMinor tweaks to existing items (radian/degree, and UTF-16 readers..
Guido van Rossum [Tue, 18 Jun 2002 20:43:18 +0000 (20:43 +0000)]
Minor tweaks to existing items (radian/degree, and UTF-16 readers..

22 years agoTypo: bites --> bytes
Fred Drake [Tue, 18 Jun 2002 20:38:05 +0000 (20:38 +0000)]
Typo: bites --> bytes
(Hanging around small kids too much...;)

22 years agoAdd description of the deadlock problem with child processes and pipes, and
Fred Drake [Tue, 18 Jun 2002 20:30:37 +0000 (20:30 +0000)]
Add description of the deadlock problem with child processes and pipes, and
hints about how to work around it.
Closes SF bug #530637.

22 years agoAdd a note about "as" not being a keyword, though it has special meaning
Fred Drake [Tue, 18 Jun 2002 19:17:14 +0000 (19:17 +0000)]
Add a note about "as" not being a keyword, though it has special meaning
when used as part of the import statement.

Note that both "as" and "None" becoming keywords in the future.

Closes SF bug #553262.

22 years agoDefine NDEBUG for releae builds, just like Python.
Jeremy Hylton [Tue, 18 Jun 2002 19:08:40 +0000 (19:08 +0000)]
Define NDEBUG for releae builds, just like Python.

XXX Why doesn't distutils on Windows use the same set of flags as Python?

22 years agoNote the limitation that mime_decode_header() only works for Latin-1.
Fred Drake [Tue, 18 Jun 2002 18:51:30 +0000 (18:51 +0000)]
Note the limitation that mime_decode_header() only works for Latin-1.
Closes SF bug #551912.

22 years agoAdd implementation of _compile() and use default compile() method.
Jeremy Hylton [Tue, 18 Jun 2002 18:48:55 +0000 (18:48 +0000)]
Add implementation of _compile() and use default compile() method.

22 years agoAdd a default implementation of compile() to the base class.
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.

22 years agoPlayed contortionist games with the argument_list production so it
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.

22 years agoOnly import msvccompiler on win32 platforms.
Jeremy Hylton [Tue, 18 Jun 2002 18:40:54 +0000 (18:40 +0000)]
Only import msvccompiler on win32 platforms.

22 years agoMichael fixed the race conditions and removed the sleeps.
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.

22 years ago\productioncont: Replace leading spaces with   so that it's
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.

22 years agoRefactor the generation of signature lines for funcdesc, methoddesc,
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.

22 years agoPatch from SF bug 570483 (Tim Northover).
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.

22 years agoPatch from SF bug 570483 (Tim Northover).
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.

22 years agoCorect speling and add \n\ to line ends in new docstring for access().
Guido van Rossum [Tue, 18 Jun 2002 16:22:43 +0000 (16:22 +0000)]
Corect speling and add \n\ to line ends in new docstring for access().

22 years agoClarified documentation for os.access().
Fred Drake [Tue, 18 Jun 2002 16:15:51 +0000 (16:15 +0000)]
Clarified documentation for os.access().
Patch contributed by Sean Reifschneider.
Closes SF patch #570618.

22 years agoMechanically translated string method calls to string methods.
Fred Drake [Tue, 18 Jun 2002 15:37:05 +0000 (15:37 +0000)]
Mechanically translated string method calls to string methods.

Instead of splitting a string and looping over it to call s.split(),
use list comprehensions for readability.

22 years agoSF patch #552837, submitted by Robert Pyron:
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.

FLD: wrapped some long lines.

22 years agoClarified description of error handling for shutil.rmtree().
Fred Drake [Tue, 18 Jun 2002 14:31:04 +0000 (14:31 +0000)]
Clarified description of error handling for shutil.rmtree().
This closes SF patch #569832.

22 years agoAbout the new but unreferenced new_class, Guido sez:
Michael W. Hudson [Tue, 18 Jun 2002 12:38:06 +0000 (12:38 +0000)]
About the new but unreferenced new_class, Guido sez:

> Looks like an experiment by Oren Tirosh that didn't get nuked.  I
> think you can safely lose it.

It's gone.

22 years agoUpdate description of the Expat library.
Fred Drake [Mon, 17 Jun 2002 17:55:30 +0000 (17:55 +0000)]
Update description of the Expat library.
Closes SF bug #556370.

22 years agoPyModule_AddObject(): Added missing exceptions.
Fred Drake [Mon, 17 Jun 2002 17:16:57 +0000 (17:16 +0000)]
PyModule_AddObject():  Added missing exceptions.
Closes SF bug #523473.

22 years agoFix documentation for PyMarshal_WriteObjectToFile() and
Fred Drake [Mon, 17 Jun 2002 15:44:18 +0000 (15:44 +0000)]
Fix documentation for PyMarshal_WriteObjectToFile() and
PyMarshal_WriteObjectToFile().
This closes SF bug #533735.

22 years agoEnsure \verbatiminput always uses a unique filename for each input file in
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.

22 years agoAdd reminder, and a new POSIX function
Andrew M. Kuchling [Mon, 17 Jun 2002 13:40:04 +0000 (13:40 +0000)]
Add reminder, and a new POSIX function
Tweak traceback display for consistency

22 years agoTypo.
Michael W. Hudson [Mon, 17 Jun 2002 12:51:57 +0000 (12:51 +0000)]
Typo.

22 years agoWhitespace normalization (tabs -> spaces)
Neal Norwitz [Mon, 17 Jun 2002 12:43:20 +0000 (12:43 +0000)]
Whitespace normalization (tabs -> spaces)

22 years agoApply diff2.txt from SF patch http://www.python.org/sf/566999
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.

22 years agoAdd IMAP4 QUOTA extension methods
Piers Lauder [Mon, 17 Jun 2002 07:07:20 +0000 (07:07 +0000)]
Add IMAP4 QUOTA extension methods

22 years agoAlter text test arg to obey new rule, also include inverse test to make time-zone...
Piers Lauder [Mon, 17 Jun 2002 07:06:24 +0000 (07:06 +0000)]
Alter text test arg to obey new rule, also include inverse test to make time-zone independant

22 years agoPolish RemoteDebugger code.
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.

22 years agoNuked another reference to newmodule.c.
Tim Peters [Sun, 16 Jun 2002 01:37:36 +0000 (01:37 +0000)]
Nuked another reference to newmodule.c.

22 years agoRemoved newmodule.c from the project, and removed references to it from
Tim Peters [Sun, 16 Jun 2002 01:34:49 +0000 (01:34 +0000)]
Removed newmodule.c from the project, and removed references to it from
the Windowish builds.

22 years agoForgot to add this. It's part of patch 568629.
Guido van Rossum [Sun, 16 Jun 2002 01:22:13 +0000 (01:22 +0000)]
Forgot to add this.  It's part of patch 568629.

22 years agotest_module_with_large_stack(): This failed when Python was run with -O,
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).

22 years agotest_module_with_large_stack(): This failed on Windows, for the wrong
Tim Peters [Sat, 15 Jun 2002 05:00:42 +0000 (05:00 +0000)]
test_module_with_large_stack():  This failed on Windows, for the wrong
reason <wink>:  can't unlink an open file on Windows.

22 years agoUnsure exactly why I'm doing this, but I couldn't build a debug-mode
Tim Peters [Sat, 15 Jun 2002 04:58:17 +0000 (04:58 +0000)]
Unsure exactly why I'm doing this, but I couldn't build a debug-mode
Python on Windows without it.

22 years agoAdd Oren Tirosh and news about his patch.
Guido van Rossum [Fri, 14 Jun 2002 21:31:18 +0000 (21:31 +0000)]
Add Oren Tirosh and news about his patch.

22 years agoSF patch 568629 by Oren Tirosh: types made callable.
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:

    Mac/Build/PythonCore.mcp
    Mac/Build/PythonStandSmall.mcp
    Mac/Build/PythonStandalone.mcp

[I've tweaked the code layout and the doc strings here and there, and
added a comment to types.py about StringTypes vs. basestring.  --Guido]

22 years agoThis introduces stricter library/header file checking for the Berkeley DB
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.

22 years agoClean up descriptions of PyObject_RichCompare() and PyObject_RichCompareBool()
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.

22 years agoUse code.interact(), which is even simpler, *and* imports readline
Guido van Rossum [Fri, 14 Jun 2002 13:54:26 +0000 (13:54 +0000)]
Use code.interact(), which is even simpler, *and* imports readline
when it can.

22 years agoNow FOR_LOOP is gone, loop_subscript can go too.
Michael W. Hudson [Fri, 14 Jun 2002 13:53:29 +0000 (13:53 +0000)]
Now FOR_LOOP is gone, loop_subscript can go too.

make -s rules :-)

22 years agoDon't poorly emulate the interactive interpreter, use
Guido van Rossum [Fri, 14 Jun 2002 13:48:25 +0000 (13:48 +0000)]
Don't poorly emulate the interactive interpreter, use
code.InteractiveConsole to do a much better job.

22 years agoAnchors ("a" elements) used only for the name attribute should not
Fred Drake [Fri, 14 Jun 2002 13:47:58 +0000 (13:47 +0000)]
Anchors ("a" elements) used only for the name attribute should not
change color on hover, only those that are link sources (href
attributes).

22 years agoMake a start at describing the results of class/type unification
Steve Holden [Fri, 14 Jun 2002 09:16:40 +0000 (09:16 +0000)]
Make a start at describing the results of class/type unification
in the type documentation.

22 years agoTest for the bug in recurse_down_subclasses() that I just fixed.
Guido van Rossum [Fri, 14 Jun 2002 02:35:45 +0000 (02:35 +0000)]
Test for the bug in recurse_down_subclasses() that I just fixed.

22 years agoInexplicably, recurse_down_subclasses() was comparing the object
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.

22 years agoMissed one use of new PyDoc_STRVAR macro
Neal Norwitz [Fri, 14 Jun 2002 02:04:18 +0000 (02:04 +0000)]
Missed one use of new PyDoc_STRVAR macro

22 years agoRefer the reader to the correct module for constant definitions.
Fred Drake [Fri, 14 Jun 2002 01:58:19 +0000 (01:58 +0000)]
Refer the reader to the correct module for constant definitions.
This closes SF bug #550777.