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

23 years agoMove line; reported on python-dev by Mark Favas (thanks!).
Tim Peters [Sun, 12 Aug 2001 02:01:09 +0000 (02:01 +0000)]
Move line; reported on python-dev by Mark Favas (thanks!).

23 years agoSF Patch [ 429024 ] deal with some unary ops at compile time
Jeremy Hylton [Sun, 12 Aug 2001 01:54:38 +0000 (01:54 +0000)]
SF Patch [ 429024 ] deal with some unary ops at compile time

Revised version of Fred's patch, including support for ~ operator.

If the unary +, -, or ~ operator is applied to a constant, don't
generate a UNARY_xxx opcode. Just store the approriate value as a
constant.  If the value is negative, extend the string containing the
constant and insert a negative in the 0th position.

For ~, compute the inverse of int and longs and use them directly, but
be prepared to generate code for all other possibilities (invalid
numbers, floats, complex).

23 years agoTeach regrtest which tests we *expect* to skip on Win32. Please teach it
Tim Peters [Sun, 12 Aug 2001 01:20:39 +0000 (01:20 +0000)]
Teach regrtest which tests we *expect* to skip on Win32.  Please teach it
about your platform too.

23 years agoremoved some cruft
Steven M. Gava [Sun, 12 Aug 2001 01:14:55 +0000 (01:14 +0000)]
removed some cruft

23 years ago_Condition.wait(): never sleep longer than the timeout time remaining,
Tim Peters [Sun, 12 Aug 2001 00:41:33 +0000 (00:41 +0000)]
_Condition.wait():  never sleep longer than the timeout time remaining,
and even if we have a long time left to wait, try the lock at least 20
times/second.

23 years agoMerged release21-maint changes.
Jack Jansen [Sun, 12 Aug 2001 00:11:15 +0000 (00:11 +0000)]
Merged release21-maint changes.

23 years agoThe test assumed that the local pathname convention for "foo" would sort before ...
Jack Jansen [Sat, 11 Aug 2001 23:22:43 +0000 (23:22 +0000)]
The test assumed that the local pathname convention for "foo" would sort before "foo/bar", which is not true on the mac (where they are "foo" and ":foo:bar", respectively; ":foo" would be fine too, but "foo" is the preferred spelling). Fixed by sorting the output.

23 years agotest_glob found a nasty bug in GUSI opendir(): it will not fail when called on files...
Jack Jansen [Sat, 11 Aug 2001 23:18:55 +0000 (23:18 +0000)]
test_glob found a nasty bug in GUSI opendir(): it will not fail when called on files, but in stead open the parent directory! We now explicitly test for the argument being a directory and simulate ENOTDIR otherwise.

23 years agoBefore asking the finder to start the application (if start=1 is specified), check...
Jack Jansen [Sat, 11 Aug 2001 22:29:18 +0000 (22:29 +0000)]
Before asking the finder to start the application (if start=1 is specified), check that it isn't incidentally running already.

23 years agoGot rid of the activate() so codewarrior doesn't come to front. It isn't needed,...
Jack Jansen [Sat, 11 Aug 2001 22:28:11 +0000 (22:28 +0000)]
Got rid of the activate() so codewarrior doesn't come to front. It isn't needed, and without it you can get work done while building the projects:-)

23 years agoPatch by Jonathan Wight (slightly reformatted) to forestall loading the
Jack Jansen [Sat, 11 Aug 2001 21:54:11 +0000 (21:54 +0000)]
Patch by Jonathan Wight (slightly reformatted) to forestall loading the
same module twice, which apparently crashes Python. I could not test the
error condition, but in normal life it seems to have no adverse effects.

Also removed an unsued variable, and corrected 2 glaring errors (missing
'case' in front of a label).

23 years agoRemove st_nested_scopes from struct symtable,
Jeremy Hylton [Sat, 11 Aug 2001 21:51:24 +0000 (21:51 +0000)]
Remove st_nested_scopes from struct symtable,
because nested scopes are always enabled.

(Accidentally checked in one small change along this path yesterday,
wreaking havoc in the Windows build.)

23 years agoReplace all type comparisons with isinstance() calls
Jeremy Hylton [Sat, 11 Aug 2001 21:44:46 +0000 (21:44 +0000)]
Replace all type comparisons with isinstance() calls

23 years agoAdded a note about the various tests here.
Jack Jansen [Sat, 11 Aug 2001 21:13:19 +0000 (21:13 +0000)]
Added a note about the various tests here.

23 years agorepair posix fonts fix
Steven M. Gava [Sat, 11 Aug 2001 15:48:13 +0000 (15:48 +0000)]
repair posix fonts fix

23 years agoOnly catch the errors that can actually occur, as reported in bug #411881.
Martin v. Löwis [Sat, 11 Aug 2001 15:02:57 +0000 (15:02 +0000)]
Only catch the errors that can actually occur, as reported in bug #411881.

23 years agouse the proper prefix file under Carbon
Just van Rossum [Sat, 11 Aug 2001 10:07:23 +0000 (10:07 +0000)]
use the proper prefix file under Carbon

23 years agosupport for help menu changes
Steven M. Gava [Sat, 11 Aug 2001 07:46:26 +0000 (07:46 +0000)]
support for help menu changes

23 years agosome re-design
Steven M. Gava [Sat, 11 Aug 2001 07:45:28 +0000 (07:45 +0000)]
some re-design

23 years agosupports about changes
Steven M. Gava [Sat, 11 Aug 2001 07:44:28 +0000 (07:44 +0000)]
supports about changes

23 years agoadjust help menu bindings
Steven M. Gava [Sat, 11 Aug 2001 07:42:37 +0000 (07:42 +0000)]
adjust help menu bindings

23 years agoFinally fix SF bug #441172, using a variant of patch ##443626:
Guido van Rossum [Sat, 11 Aug 2001 04:37:07 +0000 (04:37 +0000)]
Finally fix SF bug #441172, using a variant of patch ##443626:
canceling an edit operation would not revert the value of the field.
The fix takes care to destroy the Entry object, as suggested in the
patch.

23 years agoNow that the dialogs have some breathing room, split the combo of Tcl/Tk,
Tim Peters [Sat, 11 Aug 2001 04:01:31 +0000 (04:01 +0000)]
Now that the dialogs have some breathing room, split the combo of Tcl/Tk,
IDLE and pydoc into a separate component.  That's almost as big as the
rest of Python (excl. docs and test suite) combined.

Pop up a confimation box if they choose to install at least one of
{Tcl/Tk/IDLE/pydoc, Tools, Test suite} but do not choose to install
Python -- doesn't make much sense, so ask whether that's really what they
want.

23 years agoFor the escape() function, added a reference to the quoteattrs() function
Fred Drake [Sat, 11 Aug 2001 03:28:41 +0000 (03:28 +0000)]
For the escape() function, added a reference to the quoteattrs() function
in xml.sax.saxutils, since that is the right function to use for quoting
attribute values.
This closes SF bug #444707.

Cleaned up a variety of other minor markup errors.

23 years agoAdded tests for rich comparison operator functions.
Fred Drake [Sat, 11 Aug 2001 03:21:35 +0000 (03:21 +0000)]
Added tests for rich comparison operator functions.
Converted tests to PyUnit.

23 years agoGrow the dialogs 25%, to make room for a nicer bitmap (in progress; don't
Tim Peters [Sat, 11 Aug 2001 03:13:58 +0000 (03:13 +0000)]
Grow the dialogs 25%, to make room for a nicer bitmap (in progress; don't
have it yet).

23 years agoAdd section on PEP 238 changes
Andrew M. Kuchling [Sat, 11 Aug 2001 03:06:50 +0000 (03:06 +0000)]
Add section on PEP 238 changes
Minor grammatical changes, reformattings, and an error fix from Keith Briggs

23 years agost_nested_scopes was uninitialized trash. Jeremy should fix in a better
Tim Peters [Sat, 11 Aug 2001 01:06:35 +0000 (01:06 +0000)]
st_nested_scopes was uninitialized trash.  Jeremy should fix in a better
way; see code comments.

23 years agoAdd a note that the quoteattr() function is useful for HTML and SGML
Fred Drake [Fri, 10 Aug 2001 22:14:17 +0000 (22:14 +0000)]
Add a note that the quoteattr() function is useful for HTML and SGML
attributes as well.

23 years agoRefactor future feature handling
Jeremy Hylton [Fri, 10 Aug 2001 21:41:33 +0000 (21:41 +0000)]
Refactor future feature handling

Replace uses of PyCF_xxx with CO_xxx.

Replace individual feature slots in PyFutureFeatures with single
bitmask ff_features.

When flags must be transfered among the three parts of the interpreter
that care about them -- the pythonrun layer, the compiler, and the
future feature parser -- can simply or (|) the definitions.

23 years agoRefactor future feature handling
Jeremy Hylton [Fri, 10 Aug 2001 21:38:04 +0000 (21:38 +0000)]
Refactor future feature handling

Replace individual slots in PyFutureFeatures with a single bitmask
with one field per feature.  The flags for this bitmask are the same
as the flags used in the co_flags slot of a code object.

    XXX This means we waste several bits, because they are used
    for co_flags but have no meaning for future statements.  Don't
    think this is an issue.

Remove the NESTED_SCOPES_DEFAULT define and others.  Not sure what
they were for anyway.

Remove all the PyCF_xxx flags, but define PyCF_MASK in terms of the
CO_xxx flags that are relevant for this release.

Change definition of PyCompilerFlags so that cf_flags matches
co_flags.

23 years agoAdded documentation for PyDict_Update() and PyDict_Merge().
Fred Drake [Fri, 10 Aug 2001 21:31:12 +0000 (21:31 +0000)]
Added documentation for PyDict_Update() and PyDict_Merge().

23 years agoAdd test for SF bug #442833 (multiple inheritance).
Guido van Rossum [Fri, 10 Aug 2001 21:28:46 +0000 (21:28 +0000)]
Add test for SF bug #442833 (multiple inheritance).

23 years agoThe message accompanying the TypeError exception on a readonly
Guido van Rossum [Fri, 10 Aug 2001 21:25:24 +0000 (21:25 +0000)]
The message accompanying the TypeError exception on a readonly
attribute changed again.

23 years ago- Big changes to fix SF bug #442833 (a nasty multiple inheritance
Guido van Rossum [Fri, 10 Aug 2001 21:24:08 +0000 (21:24 +0000)]
- Big changes to fix SF bug #442833 (a nasty multiple inheritance
  problem).  inherit_slots() is split in two parts: inherit_special()
  which inherits the flags and a few very special members from the
  dominant base; inherit_slots() which inherits only regular slots,
  and is now called for each base in the MRO in turn.  These are now
  both void functions since they don't have error returns.

- Added object.__setitem__() back -- for the same reason as
  object.__new__(): a subclass of object should be able to call
  object.__new__().

- add_wrappers() was moved around to be closer to where it is used (it
  was defined together with add_methods() etc., but has nothing to do
  with these).

23 years agoAutotest for netpacket/packet.h, as it is not available on all Linux versions.
Martin v. Löwis [Fri, 10 Aug 2001 20:29:40 +0000 (20:29 +0000)]
Autotest for netpacket/packet.h, as it is not available on all Linux versions.
Depend AF_PACKET on HAVE_NETPACKET_PACKET_H.

23 years agoAutotest for netpacket/packet.h, as it is not available on all Linux versions.
Martin v. Löwis [Fri, 10 Aug 2001 20:29:40 +0000 (20:29 +0000)]
Autotest for netpacket/packet.h, as it is not available on all Linux versions.
Depend AF_PACKET on HAVE_NETPACKET_PACKET_H. Fixes #449157

23 years agoAdd PyDict_Merge(a, b, override):
Guido van Rossum [Fri, 10 Aug 2001 20:28:28 +0000 (20:28 +0000)]
Add PyDict_Merge(a, b, override):
PyDict_Merge(a, b, 1) is the same as PyDict_Update(a, b).
PyDict_Merge(a, b, 0) does something similar but leaves existing items
unchanged.

23 years ago[Bug #414032] Make the 'sdist' command work when the distribution contains
Andrew M. Kuchling [Fri, 10 Aug 2001 20:24:33 +0000 (20:24 +0000)]
[Bug #414032] Make the 'sdist' command work when the distribution contains
    libraries.  This is done by adding a .get_source_files() method,
    contributed by Rene Liebscher and slightly modified.
Remove an unused local variable spotted by PyChecker

23 years agoPass the Makefile's value of CC and LDSHARED to the environment of setup.py.
Martin v. Löwis [Fri, 10 Aug 2001 20:18:26 +0000 (20:18 +0000)]
Pass the Makefile's value of CC and LDSHARED to the environment of setup.py.
This fixes the problem reported in bug report #438786.

23 years agoDo more to be compatible with Windows/CygWin. Make error messages more
Fred Drake [Fri, 10 Aug 2001 20:17:09 +0000 (20:17 +0000)]
Do more to be compatible with Windows/CygWin.  Make error messages more
informative when a child process dies with an error.

This is a variation of parts of SF patch #429611.

23 years agoRemove the use of the "cat" program. This improves portability to non-Unix
Fred Drake [Fri, 10 Aug 2001 20:12:09 +0000 (20:12 +0000)]
Remove the use of the "cat" program.  This improves portability to non-Unix
platforms.

This is part the response to SF patch #429611.

23 years agoAdded this LaTeX style file to the package since not all LaTeX installations
Fred Drake [Fri, 10 Aug 2001 19:47:41 +0000 (19:47 +0000)]
Added this LaTeX style file to the package since not all LaTeX installations
have it, especially on non-Unix platforms.  (MikTeX in particular does not
have it.)

This is part of the response to SF patch #429611.

23 years agoAllow AttributeError as well as TypeError for attribute-less objects.
Guido van Rossum [Fri, 10 Aug 2001 19:42:38 +0000 (19:42 +0000)]
Allow AttributeError as well as TypeError for attribute-less objects.

23 years ago_DATE_FMT does not always accompany CODESET.
Martin v. Löwis [Fri, 10 Aug 2001 19:41:45 +0000 (19:41 +0000)]
_DATE_FMT does not always accompany CODESET.

23 years agoRemove unused variable
Andrew M. Kuchling [Fri, 10 Aug 2001 19:00:41 +0000 (19:00 +0000)]
Remove unused variable

23 years agoFix typo caught by PyChecker
Andrew M. Kuchling [Fri, 10 Aug 2001 19:00:15 +0000 (19:00 +0000)]
Fix typo caught by PyChecker

23 years agoAdd forgotten import
Andrew M. Kuchling [Fri, 10 Aug 2001 18:59:59 +0000 (18:59 +0000)]
Add forgotten import

23 years agoWrap a comment to fit in 80 columns.
Fred Drake [Fri, 10 Aug 2001 18:59:30 +0000 (18:59 +0000)]
Wrap a comment to fit in 80 columns.
Use construction-syntax for an exception to make the argument easier
to read.

23 years agoUse .get_license()
Andrew M. Kuchling [Fri, 10 Aug 2001 18:50:11 +0000 (18:50 +0000)]
Use .get_license()

23 years ago[Bug #412271, bug #449009] Use 'license' as the attribute name,
Andrew M. Kuchling [Fri, 10 Aug 2001 18:49:23 +0000 (18:49 +0000)]
[Bug #412271, bug #449009] Use 'license' as the attribute name,
   though 'licence' is still supported for backward-compatibility
   (Should I add a warning to get_licence(), or not bother?)

Also fixes an UnboundLocalError noticed by PyChecker

23 years agoChange PyType_Ready() to use the READY and READYING flags. This makes
Guido van Rossum [Fri, 10 Aug 2001 17:39:49 +0000 (17:39 +0000)]
Change PyType_Ready() to use the READY and READYING flags.  This makes
it possible to detect recursive calls early (as opposed to when the
stack overflows :-).

23 years agoAdded a warning about reference cycles and memory consumption to the
Fred Drake [Fri, 10 Aug 2001 17:37:33 +0000 (17:37 +0000)]
Added a warning about reference cycles and memory consumption to the
section on functions which return stack frames.

This closes SF bug #449258.

23 years agoAdd new flags for PyType_Ready(): READY to explicitly indicate the
Guido van Rossum [Fri, 10 Aug 2001 17:37:02 +0000 (17:37 +0000)]
Add new flags for PyType_Ready(): READY to explicitly indicate the
type is ready, and READYING to indicate that it is busy with the type.

A recursive call is a fatal error.

23 years agoUsage fix, problem reported by Keith Briggs.
Fred Drake [Fri, 10 Aug 2001 16:15:08 +0000 (16:15 +0000)]
Usage fix, problem reported by Keith Briggs.

23 years agoAdded documentation for the new rich comparison support.
Fred Drake [Fri, 10 Aug 2001 15:55:09 +0000 (15:55 +0000)]
Added documentation for the new rich comparison support.
This closes SF patch #428320.

Added documentation for the new floordiv() and truediv() functions.
This is part of SF bug #449093.

Re-organized the listing of functions to get better logical grouping.

23 years agoPatch #441091 from Finn Bock: the more advanced flush options are not
Andrew M. Kuchling [Fri, 10 Aug 2001 15:50:11 +0000 (15:50 +0000)]
Patch #441091 from Finn Bock: the more advanced flush options are not
  available in java, so only use the advanced flush options if they
  are defined in the zlib module.

23 years agoDisable the sub() optimization until Fredrik has time to look into SF
Guido van Rossum [Fri, 10 Aug 2001 14:56:54 +0000 (14:56 +0000)]
Disable the sub() optimization until Fredrik has time to look into SF
bug #449000, "re.sub(r'\n', ...) broke".  This was Fredrik's
suggestion -- he's on vacation and said he wouldn't be able to work on
this until next week.

23 years agoCheck in a testcase for SF bug #449000: re.sub(r'\n', ...) broke.
Guido van Rossum [Fri, 10 Aug 2001 14:52:48 +0000 (14:52 +0000)]
Check in a testcase for SF bug #449000: re.sub(r'\n', ...) broke.

23 years agoRemove "referents" structure (it's not needed). Check return value
Neil Schemenauer [Fri, 10 Aug 2001 14:46:47 +0000 (14:46 +0000)]
Remove "referents" structure (it's not needed).  Check return value
of PyList_Append.

23 years agoRemove hard-coded NT constants that are already defined in errno on NT.
Jeremy Hylton [Fri, 10 Aug 2001 14:30:35 +0000 (14:30 +0000)]
Remove hard-coded NT constants that are already defined in errno on NT.
Wrap some long lines.
Remove unnecessary tuple unpack.

23 years agoRemove the bogus flags parameter from the PyFile_WriteString() signature;
Fred Drake [Fri, 10 Aug 2001 14:27:38 +0000 (14:27 +0000)]
Remove the bogus flags parameter from the PyFile_WriteString() signature;
it has no such parameter.

This closes SF bug #449761.

23 years agoExpose nl_langinfo through locale where available.
Martin v. Löwis [Fri, 10 Aug 2001 13:58:50 +0000 (13:58 +0000)]
Expose nl_langinfo through locale where available.

23 years agoRegenerated.
Jack Jansen [Fri, 10 Aug 2001 12:17:04 +0000 (12:17 +0000)]
Regenerated.

23 years agoChanged reference to config.h to pyconfig.h.
Jack Jansen [Fri, 10 Aug 2001 10:01:05 +0000 (10:01 +0000)]
Changed reference to config.h to pyconfig.h.

23 years agoGet OPT from the environment to build the CCSHARED command.
Martin v. Löwis [Fri, 10 Aug 2001 08:56:17 +0000 (08:56 +0000)]
Get OPT from the environment to build the CCSHARED command.
Fixes the problem reported in bug #438786.