]> granicus.if.org Git - python/log
python
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.

22 years agoFix SF bug # 561858 Assertion with very long lists
Neal Norwitz [Fri, 14 Jun 2002 01:11:57 +0000 (01:11 +0000)]
Fix SF bug # 561858 Assertion with very long lists

Write 4 bytes for co_stacksize, etc. to prevent writing out
bad .pyc files which can cause a crash when read back in.

(I forgot that frozen needs to be updated too for the test.)

22 years agoFix SF bug # 561858 Assertion with very long lists
Neal Norwitz [Fri, 14 Jun 2002 01:07:39 +0000 (01:07 +0000)]
Fix SF bug # 561858 Assertion with very long lists

Write 4 bytes for co_stacksize, etc. to prevent writing out
bad .pyc files which can cause a crash when read back in.

22 years agoSF bug # 493951 string.{starts,ends}with vs slices
Neal Norwitz [Fri, 14 Jun 2002 00:50:42 +0000 (00:50 +0000)]
SF bug # 493951 string.{starts,ends}with vs slices

Handle negative indices similar to slices.

22 years agoDocument the Binary.data attribute.
Fred Drake [Fri, 14 Jun 2002 00:33:02 +0000 (00:33 +0000)]
Document the Binary.data attribute.
This closes SF bug #562878.

22 years agoUse \code{True} (or False) instead of true/false.
Neal Norwitz [Fri, 14 Jun 2002 00:27:13 +0000 (00:27 +0000)]
Use \code{True} (or False) instead of true/false.
Not sure if code is correct, but that is what's in this file.
I've seen \constant{True} in other places.

22 years agoTest exceptional condition in select()
Neal Norwitz [Thu, 13 Jun 2002 22:23:47 +0000 (22:23 +0000)]
Test exceptional condition in select()

22 years agoTest exceptional conditions in list.sort()
Neal Norwitz [Thu, 13 Jun 2002 22:23:06 +0000 (22:23 +0000)]
Test exceptional conditions in list.sort()

22 years agoCleanup a little
Neal Norwitz [Thu, 13 Jun 2002 22:18:39 +0000 (22:18 +0000)]
Cleanup a little

22 years agoSF # 533070 Silence AIX C Compiler Warnings
Neal Norwitz [Thu, 13 Jun 2002 21:42:51 +0000 (21:42 +0000)]
SF # 533070 Silence AIX C Compiler Warnings

Warning caused by using &func.  & is not necessary.

22 years agoMajor cleanup operation: whenever there's a call that looks for an
Guido van Rossum [Thu, 13 Jun 2002 21:42:04 +0000 (21:42 +0000)]
Major cleanup operation: whenever there's a call that looks for an
optional attribute, only clear the exception when the internal getattr
operation raised AttributeError.  Many places in this file already had
that policy; but just as many didn't, and there didn't seem to be any
rhyme or reason to it.  Be consistently cautious.

Question: should I backport this?  On the one hand it's a bugfix.  On
the other hand it's a change in behavior.  Certain forms of buggy or
just weird code would work in the past but raise an exception under
the new rules; e.g. if you define a __getattr__ method that raises a
non-AttributeError exception.

22 years agoFix for SF bug 532646. This is a little simpler than what Neal
Guido van Rossum [Thu, 13 Jun 2002 21:32:51 +0000 (21:32 +0000)]
Fix for SF bug 532646.  This is a little simpler than what Neal
suggested there, based upon a better analysis (__getattr__ is a red
herring).  Will backport to 2.2.

22 years agoSF # 561244 Micro optimizations
Neal Norwitz [Thu, 13 Jun 2002 21:32:44 +0000 (21:32 +0000)]
SF # 561244 Micro optimizations

Cleanup code a bit and return as early as possible.

22 years agoFix typo in exception message
Neal Norwitz [Thu, 13 Jun 2002 21:25:17 +0000 (21:25 +0000)]
Fix typo in exception message

22 years agoUse new PyDoc_STRVAR macro
Neal Norwitz [Thu, 13 Jun 2002 21:22:11 +0000 (21:22 +0000)]
Use new PyDoc_STRVAR macro

22 years agoAdd "version added" for getpgid
Neal Norwitz [Thu, 13 Jun 2002 21:19:25 +0000 (21:19 +0000)]
Add "version added" for getpgid

22 years agoSF #561244 Micro optimizations
Neal Norwitz [Thu, 13 Jun 2002 21:11:11 +0000 (21:11 +0000)]
SF #561244 Micro optimizations

Convert loops to memset()s.

22 years agoPatch #568235: Add posix.setpgid.
Martin v. Löwis [Thu, 13 Jun 2002 21:09:11 +0000 (21:09 +0000)]
Patch #568235: Add posix.setpgid.

22 years agoPatch #568124: Add doc string macros.
Martin v. Löwis [Thu, 13 Jun 2002 20:33:02 +0000 (20:33 +0000)]
Patch #568124: Add doc string macros.

22 years agoTemporarily disable the timeout and socket tests.
Guido van Rossum [Thu, 13 Jun 2002 20:24:17 +0000 (20:24 +0000)]
Temporarily disable the timeout and socket tests.
They still run as standalone scripts, but when used as part of the
regression test suite, they are effectively no-ops.
(This is done by renaming test_main to main.)

22 years agoHopefully this addresses the remaining issues of SF bugs 459235 and
Guido van Rossum [Thu, 13 Jun 2002 19:17:46 +0000 (19:17 +0000)]
Hopefully this addresses the remaining issues of SF bugs 459235 and
473985.  Through a subtle rearrangement of some members in the etype
struct (!), mapping methods are now preferred over sequence methods,
which is necessary to support str.__getitem__("hello", slice(4)) etc.