]> granicus.if.org Git - python/log
python
23 years agoRewrote Jack's latest change so it does what it intended to do...
Just van Rossum [Wed, 15 Aug 2001 21:20:42 +0000 (21:20 +0000)]
Rewrote Jack's latest change so it does what it intended to do...

23 years agoGiven a class without __cmp__ or __eq__, cmp() of two instances of
Guido van Rossum [Wed, 15 Aug 2001 21:02:20 +0000 (21:02 +0000)]
Given a class without __cmp__ or __eq__, cmp() of two instances of
that class should compare the id() of those instances.  Add a test
that verifies this.  This test currently fails; I believe this is
caused by object.c:2.132 (Patch #424475 by loewis).

23 years agoA large contribution from Dave Kuhlman describing what each of the slots
Fred Drake [Wed, 15 Aug 2001 19:07:18 +0000 (19:07 +0000)]
A large contribution from Dave Kuhlman describing what each of the slots
in the type object is used for, for many of the more commonly used slots.
Thanks!

(But there is still a lot more to write on this topic.)
Markup and organizational changes by your friendly neighborhood
documentation czar.

23 years agoDave Kuhlman has contributed a nice improvement to the "Defining New Types"
Fred Drake [Wed, 15 Aug 2001 19:00:29 +0000 (19:00 +0000)]
Dave Kuhlman has contributed a nice improvement to the "Defining New Types"
section of the Extending & Embedding manual -- thanks!

23 years agoRemove spurious space before a period.
Fred Drake [Wed, 15 Aug 2001 18:48:10 +0000 (18:48 +0000)]
Remove spurious space before a period.

23 years agoAdded comments before recently added/assigned slots in the type object,
Fred Drake [Wed, 15 Aug 2001 18:32:33 +0000 (18:32 +0000)]
Added comments before recently added/assigned slots in the type object,
so the backward compatibility issues will be easier to understand.  I only
added comments indicating additions and assignments back to Python 2.0.

23 years agoAdd 'state' as a get/set attribute to spamlist. This serves as an
Guido van Rossum [Wed, 15 Aug 2001 18:18:58 +0000 (18:18 +0000)]
Add 'state' as a get/set attribute to spamlist.  This serves as an
example.

23 years agoAdd 'state' as a read-only attribute to spamdict. This serves as an
Guido van Rossum [Wed, 15 Aug 2001 18:09:11 +0000 (18:09 +0000)]
Add 'state' as a read-only attribute to spamdict.  This serves as an
example.

23 years agoPyMethod_Type: add a tp_descr_get slot function to ensure proper
Guido van Rossum [Wed, 15 Aug 2001 17:52:31 +0000 (17:52 +0000)]
PyMethod_Type: add a tp_descr_get slot function to ensure proper
binding of unbound methods.

23 years agoAdd a test to verify that bound methods work correctly.
Guido van Rossum [Wed, 15 Aug 2001 17:51:17 +0000 (17:51 +0000)]
Add a test to verify that bound methods work correctly.

23 years agoFix portability problems with glibc 2.0, as reported in #449157.
Martin v. Löwis [Wed, 15 Aug 2001 17:14:33 +0000 (17:14 +0000)]
Fix portability problems with glibc 2.0, as reported in #449157.

23 years agoUse the "howto" document class rather than the "manual" class.
Fred Drake [Wed, 15 Aug 2001 17:01:34 +0000 (17:01 +0000)]
Use the "howto" document class rather than the "manual" class.

Remove the module index; there aren't enough modules documented yet
for this to make sense.

Add a couple more index entries, fixed a few typos, and adjusted a few
more things for consistency.

23 years agoProperly mark attribute names in the table.
Fred Drake [Wed, 15 Aug 2001 16:47:10 +0000 (16:47 +0000)]
Properly mark attribute names in the table.

23 years agoChange the generated markup so that attribute names are properly marked.
Fred Drake [Wed, 15 Aug 2001 16:46:22 +0000 (16:46 +0000)]
Change the generated markup so that attribute names are properly marked.

23 years agoUse the abstract object interfaces when digging around in module objects
Fred Drake [Wed, 15 Aug 2001 16:44:56 +0000 (16:44 +0000)]
Use the abstract object interfaces when digging around in module objects
instead of directly manipulating the underlying dictionary.

23 years agoNote addition of cleanfuture.py
Andrew M. Kuchling [Wed, 15 Aug 2001 15:55:48 +0000 (15:55 +0000)]
Note addition of cleanfuture.py

23 years agoFix typo
Andrew M. Kuchling [Wed, 15 Aug 2001 15:54:56 +0000 (15:54 +0000)]
Fix typo

23 years agoFix small markup consistency nits.
Fred Drake [Wed, 15 Aug 2001 14:35:13 +0000 (14:35 +0000)]
Fix small markup consistency nits.

23 years agoMacOSX: if we're building without --enable-toolbox-glue don't attempt to
Jack Jansen [Wed, 15 Aug 2001 13:55:15 +0000 (13:55 +0000)]
MacOSX: if we're building without --enable-toolbox-glue don't attempt to
include _PyMac_Error. Also don't try to include __dummy: it needs Foundation
and I think (not 100% sure) that this isn't part of naked Darwin.

23 years agoOn OSX we should not pass the -shared option to ld: it make the build
Jack Jansen [Wed, 15 Aug 2001 13:17:45 +0000 (13:17 +0000)]
On OSX we should not pass the -shared option to ld: it make the build
of audioop and cmath fail. Removing it seems to have no adverse consequences.

Closes bug #450510.

23 years agoDon't remove non-directories from sys.path on the mac: files
Jack Jansen [Wed, 15 Aug 2001 12:07:46 +0000 (12:07 +0000)]
Don't remove non-directories from sys.path on the mac: files
can be on sys.path too.

23 years agoNew, larger installer bitmap from Erik van Blokland. Added more
Tim Peters [Wed, 15 Aug 2001 06:10:16 +0000 (06:10 +0000)]
New, larger installer bitmap from Erik van Blokland.  Added more
vertical whitespace to the acknowledgements portion of the "Installation
Completed!" screen for easier reading.

23 years agoFix typo in module docstring.
Tim Peters [Wed, 15 Aug 2001 06:07:42 +0000 (06:07 +0000)]
Fix typo in module docstring.

23 years agoAdd blurb about cleanfuture.py. Fix misspelling in an older item.
Tim Peters [Wed, 15 Aug 2001 06:06:44 +0000 (06:06 +0000)]
Add blurb about cleanfuture.py.  Fix misspelling in an older item.

23 years agoMove one of the tests into the "PEP 255" section, to reflect a change in
Tim Peters [Wed, 15 Aug 2001 04:41:19 +0000 (04:41 +0000)]
Move one of the tests into the "PEP 255" section, to reflect a change in
the PEP.

23 years agoOops, forgot to check in configure.
Jack Jansen [Wed, 15 Aug 2001 01:27:14 +0000 (01:27 +0000)]
Oops, forgot to check in configure.

23 years agoLots of changes in the framework support:
Jack Jansen [Wed, 15 Aug 2001 01:26:28 +0000 (01:26 +0000)]
Lots of changes in the framework support:
- Made framework builds work for MacOSX. The configure arg is now
  "--enable-framework".
- Added an install target frameworkinstall which installs the framework.
- Ripped out Next/OpenStep support, which was broken anyway.
- Made the MacOSX toolbox glue dependant on a --enable-toolbox-glue
  configure arg. This should make naked darwin build work again (untested).

A few targets have been added to Makefile.pre.in, and on inspection they
look harmless to non-MacOSX machines, but it is worth checking.

Closes bug #420601 and patch #450350.

23 years agoWith WITH_NEXT_FRAMEWORK defined we now also expect a normal Python
Jack Jansen [Wed, 15 Aug 2001 01:14:40 +0000 (01:14 +0000)]
With WITH_NEXT_FRAMEWORK defined we now also expect a normal Python
installation.
If there is no LANDMARK we assume we're a bare framework in the
install directory (again WITH_NEXT_FRAMEWORK only).

23 years agoupdate simple explanation of parseFile()
Jeremy Hylton [Tue, 14 Aug 2001 22:38:03 +0000 (22:38 +0000)]
update simple explanation of parseFile()

23 years agoFirst day's progress on documentation
Jeremy Hylton [Tue, 14 Aug 2001 22:04:44 +0000 (22:04 +0000)]
First day's progress on documentation

23 years agoFix a minor typo and mark an exception name that was missed.
Fred Drake [Tue, 14 Aug 2001 21:51:50 +0000 (21:51 +0000)]
Fix a minor typo and mark an exception name that was missed.

23 years agoAdd material about the "r" and "u" prefixes for string literals; should
Fred Drake [Tue, 14 Aug 2001 21:43:31 +0000 (21:43 +0000)]
Add material about the "r" and "u" prefixes for string literals; should
be reviewed for clarity.

Work around a bogosity in the HTML version of the escape sequences table
conversion.

23 years agoAdded some examples of table markup.
Fred Drake [Tue, 14 Aug 2001 21:36:19 +0000 (21:36 +0000)]
Added some examples of table markup.

23 years agoFix typo in astgen script
Jeremy Hylton [Tue, 14 Aug 2001 21:18:30 +0000 (21:18 +0000)]
Fix typo in astgen script

23 years agoAdd information about __floordiv__() and __truediv__() methods for
Fred Drake [Tue, 14 Aug 2001 20:28:08 +0000 (20:28 +0000)]
Add information about __floordiv__() and __truediv__() methods for
implementing numeric objects in Python.

23 years agoNon-function fields, like tp_dictoffset and tp_weaklistoffset, should
Guido van Rossum [Tue, 14 Aug 2001 20:04:48 +0000 (20:04 +0000)]
Non-function fields, like tp_dictoffset and tp_weaklistoffset, should
be inherited in inherit_special(), otherwise dynamic types don't
inherit these.

Also added some XXX comments about open ends.

23 years agoFix SF bug [ #450909 ] __future__.division fails at prompt
Jeremy Hylton [Tue, 14 Aug 2001 20:01:59 +0000 (20:01 +0000)]
Fix SF bug [ #450909 ] __future__.division fails at prompt

When code is compiled and compiler flags are passed in, be sure to
update cf_flags with any features defined by future statements in the
compiled code.

23 years agoAdd a test for a weird bug I just discovered: a dynamic subclass
Guido van Rossum [Tue, 14 Aug 2001 20:00:33 +0000 (20:00 +0000)]
Add a test for a weird bug I just discovered: a dynamic subclass
doesn't have a __dict__!

23 years agoClarify the prompt in an example.
Fred Drake [Tue, 14 Aug 2001 19:55:42 +0000 (19:55 +0000)]
Clarify the prompt in an example.
This closes SF bug #450633.

23 years agoRegenerated from new ast.txt and new astgen.py
Jeremy Hylton [Tue, 14 Aug 2001 18:59:01 +0000 (18:59 +0000)]
Regenerated from new ast.txt and new astgen.py

23 years agoAdd getChildNodes() method to Node
Jeremy Hylton [Tue, 14 Aug 2001 18:58:00 +0000 (18:58 +0000)]
Add getChildNodes() method to Node

23 years agoAdd Yield node
Jeremy Hylton [Tue, 14 Aug 2001 18:57:43 +0000 (18:57 +0000)]
Add Yield node

23 years agoDocument the new semantics for setting and deleting a function's
Barry Warsaw [Tue, 14 Aug 2001 18:35:02 +0000 (18:35 +0000)]
Document the new semantics for setting and deleting a function's
__dict__ attribute.  Deleting it, or setting it to a non-dictionary
result in a TypeError.  Note that getting it the first time magically
initializes it to an empty dict so that func.__dict__ will always
appear to be a dictionary (never None).

Closes SF bug #446645.

23 years agoTest the new semantics for setting and deleting a function's __dict__
Barry Warsaw [Tue, 14 Aug 2001 18:28:28 +0000 (18:28 +0000)]
Test the new semantics for setting and deleting a function's __dict__
attribute.  Deleting it, or setting it to a non-dictionary result in a
TypeError.  Note that getting it the first time magically initializes
it to an empty dict so that func.__dict__ will always appear to be a
dictionary (never None).

Closes SF bug #446645.

23 years agofunc_getattro(), func_setattro(): Implement the new semantics for
Barry Warsaw [Tue, 14 Aug 2001 18:23:58 +0000 (18:23 +0000)]
func_getattro(), func_setattro(): Implement the new semantics for
    setting and deleting a function's __dict__ attribute.  Deleting
    it, or setting it to a non-dictionary result in a TypeError.  Note
    that getting it the first time magically initializes it to an
    empty dict so that func.__dict__ will always appear to be a
    dictionary (never None).

    Closes SF bug #446645.

23 years agoDescribe the new semantics for setting and deleting a function's
Barry Warsaw [Tue, 14 Aug 2001 18:22:24 +0000 (18:22 +0000)]
Describe the new semantics for setting and deleting a function's
__dict__ attribute.  Deleting it, or setting it to a non-dictionary
result in a TypeError.  Note that getting it the first time magically
initializes it to an empty dict so that func.__dict__ will always
appear to be a dictionary (never None).

Closes SF bug #446645.

23 years agoAdd "exceptions" to the list of fundamental modules
Fred Drake [Tue, 14 Aug 2001 15:32:16 +0000 (15:32 +0000)]
Add "exceptions" to the list of fundamental modules
created by Py_Initialize().

This closes SF bug #450621.

23 years agoInsert omitted "the".
Fred Drake [Tue, 14 Aug 2001 11:42:13 +0000 (11:42 +0000)]
Insert omitted "the".

23 years agoAdd the smtpd module to the list of undocumented modules; Barry needs to
Fred Drake [Tue, 14 Aug 2001 11:38:35 +0000 (11:38 +0000)]
Add the smtpd module to the list of undocumented modules; Barry needs to
write the documentation for this module.

23 years agoreload(exceptions) should not raise an ImportError, but should act
Barry Warsaw [Mon, 13 Aug 2001 23:07:00 +0000 (23:07 +0000)]
reload(exceptions) should not raise an ImportError, but should act
just like reload(sys).  Test that this is so.  Closes SF bug #422004.

23 years agoFixed typo in comment leading up to _PyImport_FixupExtension().
Barry Warsaw [Mon, 13 Aug 2001 23:05:44 +0000 (23:05 +0000)]
Fixed typo in comment leading up to _PyImport_FixupExtension().

23 years agoPy_Initialize(): Apply patch by Jürgen Hermann to call
Barry Warsaw [Mon, 13 Aug 2001 23:04:56 +0000 (23:04 +0000)]
Py_Initialize(): Apply patch by Jürgen Hermann to call
    _PyImport_FixupExtension() on the exceptions module.  Now
    reload(exceptions) acts just like reload(sys) instead of raising
    an ImportError.

    This closes SF bug #422004.

23 years agoRepair Unix-specific assumptions that caused this to fail on Windows.
Tim Peters [Mon, 13 Aug 2001 22:25:24 +0000 (22:25 +0000)]
Repair Unix-specific assumptions that caused this to fail on Windows.

23 years agofound_terminator(): Add a debug print showing the data.
Barry Warsaw [Mon, 13 Aug 2001 21:18:01 +0000 (21:18 +0000)]
found_terminator(): Add a debug print showing the data.

23 years agoNick Mathewson: test suite for the class browser support module.
Fred Drake [Mon, 13 Aug 2001 20:26:19 +0000 (20:26 +0000)]
Nick Mathewson: test suite for the class browser support module.

23 years agoNick Mathewson: Make sure the recursion is handled properly.
Fred Drake [Mon, 13 Aug 2001 20:20:51 +0000 (20:20 +0000)]
Nick Mathewson: Make sure the recursion is handled properly.
This is part of SF patch #440292.

23 years agoDavid Goodger <dgoodger@atsautomation.com>:
Fred Drake [Mon, 13 Aug 2001 19:31:59 +0000 (19:31 +0000)]
David Goodger <dgoodger@atsautomation.com>:
Documentation for difflib/ndiff refactoring: more of the ndiff functionality
has been moved to the underlying library (difflib).

This closes SF patch #445413.

23 years agoRemove redundant import (PyChecker).
Guido van Rossum [Mon, 13 Aug 2001 15:58:26 +0000 (15:58 +0000)]
Remove redundant import (PyChecker).
Update greeting message to avoid the long copyright notice.

23 years agoRemove unused variable 'imports' from readmodule_ex().
Guido van Rossum [Mon, 13 Aug 2001 15:55:19 +0000 (15:55 +0000)]
Remove unused variable 'imports' from readmodule_ex().

23 years agoRemove redundant 'import string' (PyChecker).
Guido van Rossum [Mon, 13 Aug 2001 15:48:06 +0000 (15:48 +0000)]
Remove redundant 'import string' (PyChecker).

23 years agoRemove redundant imports (PyChecker).
Guido van Rossum [Mon, 13 Aug 2001 15:37:02 +0000 (15:37 +0000)]
Remove redundant imports (PyChecker).

23 years agoRemove redundant 'import sys' (PyChecker).
Guido van Rossum [Mon, 13 Aug 2001 15:34:41 +0000 (15:34 +0000)]
Remove redundant 'import sys' (PyChecker).

23 years agoRemove two redundant statements (PyChecker).
Guido van Rossum [Mon, 13 Aug 2001 15:30:22 +0000 (15:30 +0000)]
Remove two redundant statements (PyChecker).

23 years agoRemove redundant assignment l = [] from poll3() -- copy-and-paste
Guido van Rossum [Mon, 13 Aug 2001 15:21:55 +0000 (15:21 +0000)]
Remove redundant assignment l = [] from poll3() -- copy-and-paste
error.

23 years agoUpdate a beopen.com e-mail
Andrew M. Kuchling [Mon, 13 Aug 2001 15:14:13 +0000 (15:14 +0000)]
Update a beopen.com e-mail

23 years agoUpdate a few references to beopen.com
Andrew M. Kuchling [Mon, 13 Aug 2001 15:13:24 +0000 (15:13 +0000)]
Update a few references to beopen.com

23 years agoUpdate e-mail address
Andrew M. Kuchling [Mon, 13 Aug 2001 15:10:54 +0000 (15:10 +0000)]
Update e-mail address

23 years agoCommenting out the getfillable() method -- it's broken, and nobody
Guido van Rossum [Mon, 13 Aug 2001 15:04:33 +0000 (15:04 +0000)]
Commenting out the getfillable() method -- it's broken, and nobody
remembers what it is supposed to do. :-(

23 years agoAdd a name
Andrew M. Kuchling [Mon, 13 Aug 2001 15:00:36 +0000 (15:00 +0000)]
Add a name

23 years agoRemove redefinition of has_option() method
Andrew M. Kuchling [Mon, 13 Aug 2001 14:58:32 +0000 (14:58 +0000)]
Remove redefinition of has_option() method

23 years agoRemove empty __init__ (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:55:17 +0000 (14:55 +0000)]
Remove empty __init__ (PyChecker)

23 years agoRemove redefinition of writelines() method
Andrew M. Kuchling [Mon, 13 Aug 2001 14:54:12 +0000 (14:54 +0000)]
Remove redefinition of writelines() method
Remove unused variable and import

23 years agoRemove unused variable (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:52:37 +0000 (14:52 +0000)]
Remove unused variable (PyChecker)

23 years agoRemove some dead code (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:50:44 +0000 (14:50 +0000)]
Remove some dead code (PyChecker)

23 years agoAdd forgotten import (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:47:12 +0000 (14:47 +0000)]
Add forgotten import (PyChecker)

23 years agoRemove unused import (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:43:43 +0000 (14:43 +0000)]
Remove unused import (PyChecker)

23 years agoRemove redundant import
Andrew M. Kuchling [Mon, 13 Aug 2001 14:41:39 +0000 (14:41 +0000)]
Remove redundant import

23 years agoCapture exception message (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:40:47 +0000 (14:40 +0000)]
Capture exception message (PyChecker)

23 years agoRemove unused imports (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:40:29 +0000 (14:40 +0000)]
Remove unused imports (PyChecker)

23 years agoRemove unused variable
Andrew M. Kuchling [Mon, 13 Aug 2001 14:38:50 +0000 (14:38 +0000)]
Remove unused variable

23 years agoFix malformed line (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 14:37:23 +0000 (14:37 +0000)]
Fix malformed line (PyChecker)

23 years agoFix two bugs discovered by PyChecker. (I cannot test these, but I'm
Guido van Rossum [Mon, 13 Aug 2001 14:12:35 +0000 (14:12 +0000)]
Fix two bugs discovered by PyChecker.  (I cannot test these, but I'm
confident that the old code was utterly broken -- the worse that can
happen is that the new code is still broken.)

23 years agoFix for NameError caught by PyChecker.
Andrew M. Kuchling [Mon, 13 Aug 2001 13:56:24 +0000 (13:56 +0000)]
Fix for NameError caught by PyChecker.
(This command seems to be essentially untested; should fix that...)

23 years agoFix typo (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 13:48:55 +0000 (13:48 +0000)]
Fix typo (PyChecker)

23 years agoCatch curses.error instead of a non-existent global (PyChecker)
Andrew M. Kuchling [Mon, 13 Aug 2001 13:47:23 +0000 (13:47 +0000)]
Catch curses.error instead of a non-existent global (PyChecker)
Edit comment

23 years agoRemove redundant import
Andrew M. Kuchling [Mon, 13 Aug 2001 13:45:22 +0000 (13:45 +0000)]
Remove redundant import

23 years ago+ A msg on c.l.py reminded me that docstrings can be implicitly catenated.
Tim Peters [Mon, 13 Aug 2001 05:33:53 +0000 (05:33 +0000)]
+ A msg on c.l.py reminded me that docstrings can be implicitly catenated.
  Cater to that.
+ Major speed boost via not reading more of files than necessary.  This
  was no slouch before; now it screams.
+ Improve msg when giving up on a goofy future statement.

23 years agofurther work on font config and general feel improvements
Steven M. Gava [Mon, 13 Aug 2001 04:36:58 +0000 (04:36 +0000)]
further work on font config and general feel improvements

23 years agoSF patch #445412 extract ndiff functionality to difflib, from
Tim Peters [Sun, 12 Aug 2001 22:25:01 +0000 (22:25 +0000)]
SF patch #445412 extract ndiff functionality to difflib, from
David Goodger.

23 years agoModify _Set to support iteration.
Jeremy Hylton [Sun, 12 Aug 2001 21:53:08 +0000 (21:53 +0000)]
Modify _Set to support iteration.

Otherwise printlist(surprise) will fail with a TypeError, because map
is called with an argument that doesn't support iteration.

23 years agoRemove much dead code from ceval.c
Jeremy Hylton [Sun, 12 Aug 2001 21:52:24 +0000 (21:52 +0000)]
Remove much dead code from ceval.c

The descr changes moved the dispatch for calling objects from
call_object() in ceval.c to PyObject_Call() in abstract.c.
call_object() and the many functions it used in ceval.c were no longer
used, but were not removed.

Rename meth_call() as PyCFunction_Call() so that it can be called by
the CALL_FUNCTION opcode in ceval.c.

Also, fix error message that referred to PyEval_EvalCodeEx() by its
old name eval_code2().  (I'll probably refer to it by its old name,
too.)

23 years agoBump size of sprintf buffer. Suggested by Alex Coventry.
Martin v. Löwis [Sun, 12 Aug 2001 09:28:40 +0000 (09:28 +0000)]
Bump size of sprintf buffer. Suggested by Alex Coventry.

23 years agoTool to delete (or just rewrite parts of) obsolete future statements.
Tim Peters [Sun, 12 Aug 2001 08:41:13 +0000 (08:41 +0000)]
Tool to delete (or just rewrite parts of) obsolete future statements.

23 years ago- Expand test for dynamic objects.
Guido van Rossum [Sun, 12 Aug 2001 05:24:18 +0000 (05:24 +0000)]
- Expand test for dynamic objects.

- Remove various 'global' directives and move some global definitions
  inside the test functions that use them -- we have nested scopes so
  the old hacks using globals are no longer needed.

23 years agoMake dynamic types work as intended. Or at least more so.
Guido van Rossum [Sun, 12 Aug 2001 05:17:56 +0000 (05:17 +0000)]
Make dynamic types work as intended.  Or at least more so.

XXX There are still some loose ends: repr(), str(), hash() and
comparisons don't inherit a default implementation from object.  This
must be resolved similarly to the way it's resolved for classic
instances.

23 years agoMake the output of tests skipped readable (i.e., deliberately break it
Tim Peters [Sun, 12 Aug 2001 03:45:50 +0000 (03:45 +0000)]
Make the output of tests skipped readable (i.e., deliberately break it
into indented lines each of which probably fits on a typical screen line).

23 years agoTemporary stop-gap fix for dynamic classes, so they pass the test.
Guido van Rossum [Sun, 12 Aug 2001 03:43:35 +0000 (03:43 +0000)]
Temporary stop-gap fix for dynamic classes, so they pass the test.

XXX This is not sufficient: if a dynamic class has no __repr__ method
(for instance), but later one is added, that doesn't add a tp_repr
slot, so repr() doesn't call the __repr__ method.  To make this work,
I'll have to add default implementations of several slots to 'object'.

XXX Also, dynamic types currently only inherit slots from their
dominant base.

23 years agodynamics(): add tests for dynamic *instances* (which are currently
Guido van Rossum [Sun, 12 Aug 2001 03:38:18 +0000 (03:38 +0000)]
dynamics(): add tests for dynamic *instances* (which are currently
broken).  Also fix an invalid reference to C (should be S).

23 years agoTest the unary operator changes to the compiler
Jeremy Hylton [Sun, 12 Aug 2001 02:22:27 +0000 (02:22 +0000)]
Test the unary operator changes to the compiler

23 years agoAdd the list of expected skips for Linux 2.x. Restructured the code a
Guido van Rossum [Sun, 12 Aug 2001 02:22:19 +0000 (02:22 +0000)]
Add the list of expected skips for Linux 2.x.  Restructured the code a
little bit using a dictionary to avoid more code duplication as
more platforms are supported.