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

22 years agoThe opcode FOR_LOOP no longer exists.
Guido van Rossum [Thu, 13 Jun 2002 17:59:51 +0000 (17:59 +0000)]
The opcode FOR_LOOP no longer exists.

22 years agoDo not claim that getlocale() returns a tulpe; that is not always true.
Fred Drake [Thu, 13 Jun 2002 17:54:06 +0000 (17:54 +0000)]
Do not claim that getlocale() returns a tulpe; that is not always true.
Closes SF bug #568577.

22 years agoMunge depends files to have absolute paths.
Jeremy Hylton [Thu, 13 Jun 2002 17:38:11 +0000 (17:38 +0000)]
Munge depends files to have absolute paths.

Look in both moddirlist and incdirlist, since a .h could be in either.

22 years agoExtend dependency tracking so that .o files are rebuilt.
Jeremy Hylton [Thu, 13 Jun 2002 17:32:20 +0000 (17:32 +0000)]
Extend dependency tracking so that .o files are rebuilt.

Two new tests are needed:

Don't skip building an extension if any of the depends files are newer
than the target.

Pass ext.depends to compiler.compile() so that it can track individual
files.

22 years agoRefactor compile() method implementations.
Jeremy Hylton [Thu, 13 Jun 2002 17:28:18 +0000 (17:28 +0000)]
Refactor compile() method implementations.

Always use _setup_compile() to do the grunt work of processing
arguments, figuring out which files to compile, and emitting debug
messages for files that are up-to-date.

Use _get_cc_args() when possible.

22 years agoAdd depends=None to the arglist for compile().
Jeremy Hylton [Thu, 13 Jun 2002 17:27:13 +0000 (17:27 +0000)]
Add depends=None to the arglist for compile().

22 years agoExtend compiler() method with optional depends argument.
Jeremy Hylton [Thu, 13 Jun 2002 17:26:30 +0000 (17:26 +0000)]
Extend compiler() method with optional depends argument.

This change is not backwards compatible.  If a compiler subclass
exists outside the distutils package, it may get called with the
unexpected keyword arg.  It's easy to extend that compiler by having
it ignore the argument, and not much harder to do the right thing.  If
this ends up being burdensome, we can change it before 2.3 final to
work harder at compatibility.

Also add _setup_compile() and _get_cc_args() helper functions that
factor out much of the boilerplate for each concrete compiler class.

22 years agoRearrange the #ifndef WITHOUT_COMPLEX so it can be picked up from
Guido van Rossum [Thu, 13 Jun 2002 17:07:07 +0000 (17:07 +0000)]
Rearrange the #ifndef WITHOUT_COMPLEX so it can be picked up from
pyconfig.h.

22 years agoComment out testHostnameRes() -- it depends on a correctly working
Guido van Rossum [Thu, 13 Jun 2002 16:54:38 +0000 (16:54 +0000)]
Comment out testHostnameRes() -- it depends on a correctly working
DNS, and we can't assume that.

22 years agoFix non-blocking connect() for Windows. Refactored the code
Guido van Rossum [Thu, 13 Jun 2002 16:07:04 +0000 (16:07 +0000)]
Fix non-blocking connect() for Windows.  Refactored the code
that retries the connect() call in timeout mode so it can be shared
between connect() and connect_ex(), and needs only a single #ifdef.

The test for this was doing funky stuff I don't approve of,
so I removed it in favor of a simpler test.  This allowed me
to implement a simpler, "purer" form of the timeout retry code.
Hopefully that's enough (if you want to be fancy, use non-blocking
mode and decode the errors yourself, like before).

22 years agoMore style changes and little cleanups.
Jeremy Hylton [Thu, 13 Jun 2002 15:14:10 +0000 (15:14 +0000)]
More style changes and little cleanups.

Remove __init__ that just called base class __init__ with same args.
Fold long argument lists into fewer, shorter lines.
Remove parens in tuple unpacks.
Don't put multiple statements on one line with a semicolon.
In find_library_file() compute the library_filename() upfront.

22 years agoGet rid of accidentally checked-in reference to "bits".
Guido van Rossum [Thu, 13 Jun 2002 15:08:35 +0000 (15:08 +0000)]
Get rid of accidentally checked-in reference to "bits".

22 years agoMajor overhaul of timeout sockets:
Guido van Rossum [Thu, 13 Jun 2002 15:07:44 +0000 (15:07 +0000)]
Major overhaul of timeout sockets:

- setblocking(0) and settimeout(0) are now equivalent, and ditto for
  setblocking(1) and settimeout(None).

- Don't raise an exception from internal_select(); let the final call
  report the error (this means you will get an EAGAIN error instead of
  an ETIMEDOUT error -- I don't care).

- Move the select to inside the Py_{BEGIN,END}_ALLOW_THREADS brackets,
  so other theads can run (this was a bug in the original code).

- Redid the retry logic in connect() and connect_ex() to avoid masking
  errors.  This probably doesn't work for Windows yet; I'll fix that
  next.  It may also fail on other platforms, depending on what
  retrying a connect does; I need help with this.

- Get rid of the retry logic in accept().  I don't think it was needed
  at all.  But I may be wrong.

22 years agoFix a typo.
Guido van Rossum [Thu, 13 Jun 2002 15:03:01 +0000 (15:03 +0000)]
Fix a typo.
Add a sleep (yuck!) to _testRecvFrom() so the server can set up first.

22 years agoSome more style improvements
Jeremy Hylton [Thu, 13 Jun 2002 15:01:38 +0000 (15:01 +0000)]
Some more style improvements

22 years agoPython style conformance: Delete spaces between name of function and arglist.
Jeremy Hylton [Thu, 13 Jun 2002 14:58:30 +0000 (14:58 +0000)]
Python style conformance: Delete spaces between name of function and arglist.

Making the world better a little bit at a time <wink>.

22 years agoAdd dependencies on socketmodule.h.
Guido van Rossum [Thu, 13 Jun 2002 14:41:32 +0000 (14:41 +0000)]
Add dependencies on socketmodule.h.

22 years ago_Py prefix is verboten for static entry points
Andrew MacIntyre [Thu, 13 Jun 2002 11:55:14 +0000 (11:55 +0000)]
_Py prefix is verboten for static entry points

22 years agowork around name clash with OS/2 TCPIP routine sock_init()
Andrew MacIntyre [Thu, 13 Jun 2002 11:53:52 +0000 (11:53 +0000)]
work around name clash with OS/2 TCPIP routine sock_init()

22 years agoWhitespace nit.
Guido van Rossum [Thu, 13 Jun 2002 11:53:12 +0000 (11:53 +0000)]
Whitespace nit.

22 years agoAdd documentation for PyObject_RichCompare() and PyObject_RichCompareBool(),
Fred Drake [Thu, 13 Jun 2002 11:51:48 +0000 (11:51 +0000)]
Add documentation for PyObject_RichCompare() and PyObject_RichCompareBool(),
constributed by David Abrahams.
This closes SF patch #568081.

22 years agoChanged the extended slice example to show that you can reverse a
Guido van Rossum [Thu, 13 Jun 2002 11:41:07 +0000 (11:41 +0000)]
Changed the extended slice example to show that you can reverse a
string with a [::-1] slice.

22 years agoAdd version annotations for some older changes to the calendar module.
Fred Drake [Thu, 13 Jun 2002 01:34:50 +0000 (01:34 +0000)]
Add version annotations for some older changes to the calendar module.
Closes SF patch #567867.

22 years agoRemove some overly complicated ways to concatenate and repeat strings
Guido van Rossum [Wed, 12 Jun 2002 21:29:43 +0000 (21:29 +0000)]
Remove some overly complicated ways to concatenate and repeat strings
using "".join().  Fold a long line.

22 years agoDon't test for Java, test for sys.getrefcount.
Guido van Rossum [Wed, 12 Jun 2002 21:19:40 +0000 (21:19 +0000)]
Don't test for Java, test for sys.getrefcount.

22 years agoSome provisional changes to get more tests to run on Windows (I hope).
Guido van Rossum [Wed, 12 Jun 2002 21:17:20 +0000 (21:17 +0000)]
Some provisional changes to get more tests to run on Windows (I hope).

22 years agoArgh. Typo. :-(
Guido van Rossum [Wed, 12 Jun 2002 20:55:17 +0000 (20:55 +0000)]
Argh.  Typo. :-(

22 years agoAllow absent fromfd(), for Windows.
Guido van Rossum [Wed, 12 Jun 2002 20:48:59 +0000 (20:48 +0000)]
Allow absent fromfd(), for Windows.

22 years agotestSetSockOpt() should not require the reuse flag to be 1 -- any
Guido van Rossum [Wed, 12 Jun 2002 20:46:49 +0000 (20:46 +0000)]
testSetSockOpt() should not require the reuse flag to be 1 -- any
nonzero value is OK.  Also fixed the error message for this and for
testGetSockOpt().

22 years agoLose the message on assertEqual calls -- they actually hide
Guido van Rossum [Wed, 12 Jun 2002 20:38:30 +0000 (20:38 +0000)]
Lose the message on assertEqual calls -- they actually hide
information on what went wrong.

22 years agoDocstring, layout and style tweaking. Increase fuzz to 1 second.
Guido van Rossum [Wed, 12 Jun 2002 20:22:49 +0000 (20:22 +0000)]
Docstring, layout and style tweaking.  Increase fuzz to 1 second.

22 years agoAdd a new definition to Extension objects: depends.
Jeremy Hylton [Wed, 12 Jun 2002 20:08:56 +0000 (20:08 +0000)]
Add a new definition to Extension objects: depends.

depends is a list of files that the target depends, but aren't direct
sources of the target.  think .h files.

22 years agoAdd some more basic tests to validate the argument checking of
Guido van Rossum [Wed, 12 Jun 2002 19:57:18 +0000 (19:57 +0000)]
Add some more basic tests to validate the argument checking of
settimeout(), test settimeout(None), and the interaction between
settimeout() and setblocking().

22 years agoNew test suite for the socket module by Michael Gilfix.
Guido van Rossum [Wed, 12 Jun 2002 19:18:08 +0000 (19:18 +0000)]
New test suite for the socket module by Michael Gilfix.
Changed test_timeout.py to conform to the guidelines in Lib/test/README.

22 years agoSF bug 567826. Document new opcodes:
Guido van Rossum [Wed, 12 Jun 2002 15:33:08 +0000 (15:33 +0000)]
SF bug 567826.  Document new opcodes:
['BINARY_FLOOR_DIVIDE', 'BINARY_TRUE_DIVIDE',
'INPLACE_FLOOR_DIVIDE', 'INPLACE_TRUE_DIVIDE', 'GET_ITER',
'YIELD_VALUE', 'FOR_ITER', 'CONTINUE_LOOP']

22 years agoAdd a testcase to ensure that cycles going through the __class__ link
Guido van Rossum [Wed, 12 Jun 2002 14:38:04 +0000 (14:38 +0000)]
Add a testcase to ensure that cycles going through the __class__ link
of a new-style instance are detected by the garbage collector.

22 years agoSF bug 567538: Generator can crash the interpreter (Finn Bock).
Guido van Rossum [Wed, 12 Jun 2002 03:45:21 +0000 (03:45 +0000)]
SF bug 567538: Generator can crash the interpreter (Finn Bock).

This was a simple typo.  Strange that the compiler didn't catch it!
Instead of WHY_CONTINUE, two tests used CONTINUE_LOOP, which isn't a
why_code at all, but an opcode; but even though 'why' is declared as
an enum, comparing it to an int is apparently not even worth a
warning -- not in gcc, and not in VC++. :-(

Will fix in 2.2 too.

22 years agoRework the code to have only the GvR RPC. Output from execution of user
Kurt B. Kaiser [Wed, 12 Jun 2002 03:28:57 +0000 (03:28 +0000)]
Rework the code to have only the GvR RPC.  Output from execution of user
code is directed to the Shell.

22 years agoThe opcode YIELD_STMT was accidentally called YIELD_VALUE here.
Guido van Rossum [Tue, 11 Jun 2002 21:17:35 +0000 (21:17 +0000)]
The opcode YIELD_STMT was accidentally called YIELD_VALUE here.

22 years agopatch #562492 - prevent duplicate lines in history
Skip Montanaro [Tue, 11 Jun 2002 14:32:46 +0000 (14:32 +0000)]
patch #562492 - prevent duplicate lines in history
also call using_history() to properly initialize history variables

22 years agoFix SF #565414, FancyURLopener() needs to support **kwargs
Neal Norwitz [Tue, 11 Jun 2002 13:38:51 +0000 (13:38 +0000)]
Fix SF #565414, FancyURLopener() needs to support **kwargs
since the URLopener base class does and **kwargs are used in urlopen.

22 years agoFix for problem reported by Neal Norwitz. Tighten up calculation of
Michael W. Hudson [Tue, 11 Jun 2002 13:38:42 +0000 (13:38 +0000)]
Fix for problem reported by Neal Norwitz.  Tighten up calculation of
slicelength.  Include his test case.

22 years agoFold remaining long lines.
Guido van Rossum [Tue, 11 Jun 2002 12:22:28 +0000 (12:22 +0000)]
Fold remaining long lines.

22 years agoThis is my nearly two year old patch
Michael W. Hudson [Tue, 11 Jun 2002 10:55:12 +0000 (10:55 +0000)]
This is my nearly two year old patch

[ 400998 ] experimental support for extended slicing on lists

somewhat spruced up and better tested than it was when I wrote it.

Includes docs & tests.  The whatsnew section needs expanding, and arrays
should support extended slices -- later.

22 years agoPatch #488073: AtheOS port.
Martin v. Löwis [Tue, 11 Jun 2002 06:22:31 +0000 (06:22 +0000)]
Patch #488073: AtheOS port.

22 years agoadd a version of GvR's q&d python idle printing patch,
Steven M. Gava [Tue, 11 Jun 2002 04:45:34 +0000 (04:45 +0000)]
add a version of GvR's q&d python idle printing patch,
slightly tweaked and modified for the idlefork config system