]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
22 years agoFleshed out the WeakKeyDictionary.__delitem__ news, since this can change
Tim Peters [Thu, 29 May 2003 19:26:06 +0000 (19:26 +0000)] 
Fleshed out the WeakKeyDictionary.__delitem__ news, since this can change
visible behavior.

22 years agoAll the news that's fit to print (I reviewed the CVS log since the
Guido van Rossum [Thu, 29 May 2003 19:21:38 +0000 (19:21 +0000)] 
All the news that's fit to print (I reviewed the CVS log since the
bump of patchlevel.h).

22 years agoAdd section for 2.2.3 final and memory leak plug for tkinter
Neal Norwitz [Thu, 29 May 2003 19:03:43 +0000 (19:03 +0000)] 
Add section for 2.2.3 final and memory leak plug for tkinter

22 years agoBackport 1.160:
Neal Norwitz [Thu, 29 May 2003 18:58:23 +0000 (18:58 +0000)] 
Backport 1.160:
Fix SF #745055, Memory leak in _tkinter.c/Tkapp_SplitList()

Also fix a memory leak in Tkapp_Split.

22 years agoGive the Windows socket wrapper function default values for its 'family'
Tim Peters [Thu, 29 May 2003 18:50:45 +0000 (18:50 +0000)] 
Give the Windows socket wrapper function default values for its 'family'
and 'type' arguments.  This improves x-platform compatibility (e.g., on
Unix systems socket() already supported these default arguments).

No need to do anything here for 2.3 -- it already fixed this glitch in a
different way.

22 years agoSet release information for Python 2.2.3.
Fred Drake [Thu, 29 May 2003 18:49:32 +0000 (18:49 +0000)] 
Set release information for Python 2.2.3.

22 years agocrash_in_get_sf736892(): A test of SF 736892, forcing function to act
Barry Warsaw [Thu, 29 May 2003 15:14:52 +0000 (15:14 +0000)] 
crash_in_get_sf736892(): A test of SF 736892, forcing function to act
like an unbound method dumps core.

22 years agoBackport patch 2.206:
Barry Warsaw [Thu, 29 May 2003 15:13:18 +0000 (15:13 +0000)] 
Backport patch 2.206:

    ----------------------------
    revision 2.206
    date: 2003/02/11 16:25:43;  author: gvanrossum;  state: Exp;  lines: +9 -0
    Add basic arg sanity checking to wrap_descr_get().  This is called
    when Python code calls a descriptor's __get__ method.  It should
    translate None to NULL in both argument positions, and insist that at
    least one of the argument positions is not NULL after this
    transformation.
    ----------------------------

which fixes SF bug # 736892, forcing function to act like an unbound
method dumps core.

22 years agoRemove debug code from weakref_segfault().
Guido van Rossum [Thu, 29 May 2003 14:31:42 +0000 (14:31 +0000)] 
Remove debug code from weakref_segfault().

Also move the call of the test to the top; the crash is caused by a
double free.

22 years agoFix for SF 742911. We now clear the weakrefs *before* calling __del__
Guido van Rossum [Thu, 29 May 2003 14:28:22 +0000 (14:28 +0000)] 
Fix for SF 742911.  We now clear the weakrefs *before* calling __del__
or emptying __dict__, just as we do for classic classes.

22 years agoAdd testcase for SF 742911.
Guido van Rossum [Thu, 29 May 2003 14:21:29 +0000 (14:21 +0000)] 
Add testcase for SF 742911.

22 years agoThe backport gets Fred's seal of approval:
Barry Warsaw [Wed, 28 May 2003 23:03:30 +0000 (23:03 +0000)] 
The backport gets Fred's seal of approval:

    SF 742860: WeakKeyDictionary __delitem__ uses iterkeys

    Someone review this, please!  Final releases are getting close, Fred
    (the weakref guy) won't be around until Tuesday, and the pre-patch
    code can indeed raise spurious RuntimeErrors in the presence of
    threads or mutating comparison functions.

    See the bug report for my confusions:  I can't see any reason for why
    __delitem__ iterated over the keys.  The new one-liner implementation
    is much faster, can't raise RuntimeError, and should be better-behaved
    in all respects wrt threads.

    New tests test_weak_keyed_bad_delitem and
    test_weak_keyed_cascading_deletes fail before this patch.

Backported the tests and the patch.

22 years agoSpec file update from Sean Reifschneider.
Barry Warsaw [Tue, 27 May 2003 14:36:02 +0000 (14:36 +0000)] 
Spec file update from Sean Reifschneider.

22 years agoBackport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
Jack Jansen [Fri, 23 May 2003 22:34:39 +0000 (22:34 +0000)] 
Backport of 1.48: on Mac OS X don't use -R for runtime_library_dirs, use
-L in stead. Fixes #723495.

22 years agoBumping PY_VERSION
Barry Warsaw [Fri, 23 May 2003 03:37:11 +0000 (03:37 +0000)] 
Bumping PY_VERSION

22 years agoThis commit was manufactured by cvs2svn to create tag 'r223c1'. v2.2.3c1
cvs2svn [Thu, 22 May 2003 19:13:35 +0000 (19:13 +0000)] 
This commit was manufactured by cvs2svn to create tag 'r223c1'.

22 years agoGo ahead and label this 2.2.3c1
Barry Warsaw [Thu, 22 May 2003 19:13:35 +0000 (19:13 +0000)] 
Go ahead and label this 2.2.3c1

22 years agoA bunch of NEWS file updates
Barry Warsaw [Thu, 22 May 2003 18:55:13 +0000 (18:55 +0000)] 
A bunch of NEWS file updates

22 years agoSquash new compiler wng (mistmatching formal/actual pointer types).
Tim Peters [Thu, 22 May 2003 18:45:47 +0000 (18:45 +0000)] 
Squash new compiler wng (mistmatching formal/actual pointer types).

22 years agoBackport fix for SF bug 692776.
Jeremy Hylton [Thu, 22 May 2003 18:11:20 +0000 (18:11 +0000)] 
Backport fix for SF bug 692776.

Add a tp_new slot to function objects that handles the case of a
function requiring a closure.  Put the function type in the new
module, rather than having a function new.function().  Add tests.

22 years agoLink the dbm module against gdbm if it exists and if no earlier
Barry Warsaw [Thu, 22 May 2003 17:36:54 +0000 (17:36 +0000)] 
Link the dbm module against gdbm if it exists and if no earlier
library match was found.  This fixes dbm on RedHat 9 and doesn't
appear (so far <wink>) to have any regressions on other *nixes.

22 years agoBackport Jeremy's fix: req.method should be req.get_method.
Raymond Hettinger [Thu, 22 May 2003 17:30:48 +0000 (17:30 +0000)] 
Backport Jeremy's fix: req.method should be req.get_method.

22 years agoBackport fix for SF bug #741171: pdb crashes when enabling a non-existing breakpoint
Andrew M. Kuchling [Thu, 22 May 2003 17:25:21 +0000 (17:25 +0000)] 
Backport fix for SF bug #741171: pdb crashes when enabling a non-existing breakpoint

22 years agoBackport fix for SF bug 734869 and sundry compiler cleanups.
Jeremy Hylton [Thu, 22 May 2003 16:43:04 +0000 (16:43 +0000)] 
Backport fix for SF bug 734869 and sundry compiler cleanups.

22 years agoAssorted 2.2.3c1 and copyright changes specific to Windows.
Tim Peters [Thu, 22 May 2003 15:39:10 +0000 (15:39 +0000)] 
Assorted 2.2.3c1 and copyright changes specific to Windows.

22 years agoupdate copyright dates
Fred Drake [Thu, 22 May 2003 15:30:22 +0000 (15:30 +0000)] 
update copyright dates

22 years agoCorrect dependency information -- the Python docs load the "About this
Fred Drake [Thu, 22 May 2003 15:28:22 +0000 (15:28 +0000)] 
Correct dependency information -- the Python docs load the "About this
document" text from html/stdabout.dat, not html/about.dat.

22 years agoUpdate Python release version and copyright years
Barry Warsaw [Thu, 22 May 2003 15:21:06 +0000 (15:21 +0000)] 
Update Python release version and copyright years

22 years agoTwiddle the banner
Barry Warsaw [Thu, 22 May 2003 15:15:05 +0000 (15:15 +0000)] 
Twiddle the banner

22 years agoMinor elaboration in the information about reporting errors.
Fred Drake [Thu, 22 May 2003 15:09:55 +0000 (15:09 +0000)] 
Minor elaboration in the information about reporting errors.

22 years agoupdate version/release information
Fred Drake [Thu, 22 May 2003 14:56:37 +0000 (14:56 +0000)] 
update version/release information

22 years agoupdate version history
Fred Drake [Thu, 22 May 2003 14:50:27 +0000 (14:50 +0000)] 
update version history

22 years agothe release manager has been fixed; this *will* be a release candidate
Fred Drake [Thu, 22 May 2003 14:48:28 +0000 (14:48 +0000)] 
the release manager has been fixed; this *will* be a release candidate

22 years agoPrepare for 2.2.3c1 (release candidate 1)
Barry Warsaw [Thu, 22 May 2003 14:44:31 +0000 (14:44 +0000)] 
Prepare for 2.2.3c1 (release candidate 1)

22 years agoStart preparing the doc tree for 2.2.3.
Fred Drake [Thu, 22 May 2003 13:59:30 +0000 (13:59 +0000)] 
Start preparing the doc tree for 2.2.3.

22 years agoPyType_Ready(): Complain if the type is a base type, and gc'able, and
Tim Peters [Wed, 21 May 2003 20:43:10 +0000 (20:43 +0000)] 
PyType_Ready():  Complain if the type is a base type, and gc'able, and
tp_free is NULL or PyObject_Del at the end.  Because it's a base type
it must call tp_free in its dealloc function, and because it's gc'able
it must not call PyObject_Del.

inherit_slots():  Don't inherit tp_free unless the type and its base
agree about whether they're gc'able.  If the type is gc'able and the
base is not, and the base uses the default PyObject_Del for its
tp_free, give the type PyObject_GC_Del for its tp_free (the appropriate
default for a gc'able type).

cPickle.c:  The Pickler and Unpickler types claim to be base classes
and gc'able, but their dealloc functions didn't call tp_free.
Repaired that.  Also call PyType_Ready() on these typeobjects, so
that the correct (PyObject_GC_Del) default memory-freeing function
gets plugged into these types' tp_free slots.

22 years agoA few new news items
Barry Warsaw [Tue, 20 May 2003 22:34:18 +0000 (22:34 +0000)] 
A few new news items

22 years agoGNUTranslations._parse(): Backport of fix for SF bug #658233, where
Barry Warsaw [Tue, 20 May 2003 22:33:03 +0000 (22:33 +0000)] 
GNUTranslations._parse(): Backport of fix for SF bug #658233, where
continuation lines in .po metadata caused a crash.

Also, export more symbols from __all__.

22 years agoSlight rephrasing of the OSX stacksize problem with test_re.
Jack Jansen [Tue, 20 May 2003 21:49:31 +0000 (21:49 +0000)] 
Slight rephrasing of the OSX stacksize problem with test_re.

22 years agoThese were added on the main branch, but never on the 2.2 branch.
Jack Jansen [Tue, 20 May 2003 20:25:59 +0000 (20:25 +0000)] 
These were added on the main branch, but never on the 2.2 branch.

22 years agoBackport: Don't mention __slots__ as a technique for error avoidance
Andrew M. Kuchling [Tue, 20 May 2003 18:13:14 +0000 (18:13 +0000)] 
Backport: Don't mention __slots__ as a technique for error avoidance

22 years agoRemove unused line numbers from example code.
Fred Drake [Tue, 20 May 2003 15:20:33 +0000 (15:20 +0000)] 
Remove unused line numbers from example code.
Line numbering of examples is not used elsewhere.

22 years agoPatch #499513: use readline() instead of readlines(). Removed the
Martin v. Löwis [Tue, 20 May 2003 06:19:36 +0000 (06:19 +0000)] 
Patch #499513: use readline() instead of readlines(). Removed the
unnecessary redirection limit code which is already in FancyURLopener.

Backport of 1.12.

22 years agoSF patch #497420 (Eduardo Pérez): ftplib: ftp anonymous password
Martin v. Löwis [Tue, 20 May 2003 06:16:55 +0000 (06:16 +0000)] 
SF patch #497420 (Eduardo Pérez): ftplib: ftp anonymous password

Instead of sending the real user and host, use "anonymous@" (i.e. no
host name at all!) as the default anonymous FTP password.  This avoids
privacy violations.

Backport of 1.62, 1.63.

22 years agoFixing typo from previous patch.
Brett Cannon [Tue, 20 May 2003 02:54:41 +0000 (02:54 +0000)] 
Fixing typo from previous patch.

22 years agoAdd docs for use of key_file and cert_file parameters.
Brett Cannon [Tue, 20 May 2003 02:51:38 +0000 (02:51 +0000)] 
Add docs for use of key_file and cert_file parameters.

22 years agoChange docstrings for __(get|set|del)slice__ to note that negative indices are not...
Brett Cannon [Tue, 20 May 2003 02:42:04 +0000 (02:42 +0000)] 
Change docstrings for __(get|set|del)slice__ to note that negative indices are not supported.

22 years agoOnly look for krb5.h if ssl.h was found. Backport of 1.166.
Martin v. Löwis [Sun, 18 May 2003 13:42:58 +0000 (13:42 +0000)] 
Only look for krb5.h if ssl.h was found. Backport of 1.166.
Fixes bug reported in comment to #728322.

22 years agoCorrect typo in check for _tkinter prerequisites. Backport of 1.162.
Martin v. Löwis [Sun, 18 May 2003 13:40:03 +0000 (13:40 +0000)] 
Correct typo in check for _tkinter prerequisites. Backport of 1.162.

22 years agominor fix, jython-only. Don't asssume stdout to save is the ur-stdout.
Samuele Pedroni [Sat, 17 May 2003 12:50:33 +0000 (12:50 +0000)] 
minor fix, jython-only. Don't asssume stdout to save is the ur-stdout.

22 years agobeefed up version: jython support, covers now fixed differences between CPython/Jython.
Samuele Pedroni [Sat, 17 May 2003 02:35:37 +0000 (02:35 +0000)] 
beefed up version: jython support, covers now fixed differences between CPython/Jython.

22 years agoBackport fix for compile_command("",symbol="eval") raising syntax error about "pass...
Samuele Pedroni [Fri, 16 May 2003 21:57:23 +0000 (21:57 +0000)] 
Backport fix for compile_command("",symbol="eval") raising syntax error about "pass". Now returns None.

22 years agoFix nits found by Tools\scripts\texcheck.py
Raymond Hettinger [Fri, 16 May 2003 03:08:36 +0000 (03:08 +0000)] 
Fix nits found by Tools\scripts\texcheck.py

22 years agoFix broken API descriptions in comments.
Fred Drake [Mon, 12 May 2003 21:38:50 +0000 (21:38 +0000)] 
Fix broken API descriptions in comments.

22 years agoAdd a specific mention of the term "operator overloading" and add an
Fred Drake [Mon, 12 May 2003 13:50:41 +0000 (13:50 +0000)] 
Add a specific mention of the term "operator overloading" and add an
index entry.  Suggested to python-docs.

22 years agoBackport fixes to make more types collectable.
Jeremy Hylton [Fri, 9 May 2003 18:29:21 +0000 (18:29 +0000)] 
Backport fixes to make more types collectable.
classmethod, staticmethod, cPickle.Pickler, cPickle.UNpickler

22 years agoBackporting email 2.5.2 fixes.
Barry Warsaw [Thu, 8 May 2003 04:00:05 +0000 (04:00 +0000)] 
Backporting email 2.5.2 fixes.

22 years agoadd missing parens - verified w/ interpreter - sorry to dismiss your comment
Skip Montanaro [Wed, 7 May 2003 16:02:06 +0000 (16:02 +0000)] 
add missing parens - verified w/ interpreter - sorry to dismiss your comment
Fred

22 years agoreplace most uses of `...` by repr(...), noting that `...` is discouraged,
Skip Montanaro [Wed, 7 May 2003 15:29:53 +0000 (15:29 +0000)] 
replace most uses of `...` by repr(...), noting that `...` is discouraged,
but convenient in interactive sessions.

22 years agoBackport better fix for newurl as suggested by Jim Jewett in SF bug
Jeremy Hylton [Mon, 5 May 2003 04:10:40 +0000 (04:10 +0000)] 
Backport better fix for newurl as suggested by Jim Jewett in SF bug
#730963.

22 years agoBackport fix for SF #723831: urlopen() raises URLError.
Jeremy Hylton [Mon, 5 May 2003 03:18:41 +0000 (03:18 +0000)] 
Backport fix for SF #723831: urlopen() raises URLError.

22 years agoPatch #708604: Check more function results.
Martin v. Löwis [Sat, 3 May 2003 10:53:51 +0000 (10:53 +0000)] 
Patch #708604: Check more function results.

22 years agofile_truncate(): Backported 2.3 code so that file.truncate(n) works on
Tim Peters [Wed, 30 Apr 2003 19:24:59 +0000 (19:24 +0000)] 
file_truncate():  Backported 2.3 code so that file.truncate(n) works on
Windows when n is too big to fit in a 32-bit int.  This was a hole in
2.2's large file support on Windows, and turns out it's a bad hole at
least for ZODB.

22 years agoAt the site of an indexed reference to print, point to the relevant
Fred Drake [Wed, 30 Apr 2003 16:43:51 +0000 (16:43 +0000)] 
At the site of an indexed reference to print, point to the relevant
documentation.  Closes SF bug #723136.

22 years ago- clean up some extra punctuation hidden in indexing markup
Fred Drake [Tue, 29 Apr 2003 13:55:20 +0000 (13:55 +0000)] 
- clean up some extra punctuation hidden in indexing markup
- fix a typo and one markup nit
- normalize whitespace

22 years agoClarify that the timeout argument to read_until() is in seconds.
Fred Drake [Tue, 29 Apr 2003 13:38:42 +0000 (13:38 +0000)] 
Clarify that the timeout argument to read_until() is in seconds.

22 years agoSF bug #729096: getopt online documentation example improvement
Raymond Hettinger [Tue, 29 Apr 2003 04:37:13 +0000 (04:37 +0000)] 
SF bug #729096:  getopt online documentation example improvement

A newbie found it difficult to translate the exampe into a
case that used only short options or long options but not both.
He tried to shorten the tuple search but forgot the trailing comma,
The appropriate pattern is an equality check.

Revised the example to point him in the right direction.

22 years agodetect_modules(): On Redhat 9, building the ssl stuff eventually
Barry Warsaw [Sun, 27 Apr 2003 04:00:01 +0000 (04:00 +0000)] 
detect_modules(): On Redhat 9, building the ssl stuff eventually
includes krb5.h.  Copy the krb5_h stanza from Python 2.3's setup.py
which seems to fix the problem.

22 years agobackport of note arising from bug 711019.
Skip Montanaro [Sat, 26 Apr 2003 02:59:46 +0000 (02:59 +0000)] 
backport of note arising from bug 711019.

22 years agoMarkup change; make the notice a little stronger by using the "boxed"
Fred Drake [Fri, 25 Apr 2003 22:09:23 +0000 (22:09 +0000)] 
Markup change; make the notice a little stronger by using the "boxed"
version.

22 years agoAdd modified versions of the examples from Sean Reifschneider
Fred Drake [Fri, 25 Apr 2003 15:29:22 +0000 (15:29 +0000)] 
Add modified versions of the examples from Sean Reifschneider
(SF patch #545480).

22 years agoBackport the Carlo Verre fix.
Guido van Rossum [Fri, 25 Apr 2003 05:40:32 +0000 (05:40 +0000)] 
Backport the Carlo Verre fix.

22 years agoBackport 1.157
Raymond Hettinger [Fri, 25 Apr 2003 05:36:48 +0000 (05:36 +0000)] 
Backport 1.157

SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)

22 years agoBackport 1.157 and 1.39
Raymond Hettinger [Fri, 25 Apr 2003 05:33:07 +0000 (05:33 +0000)] 
Backport 1.157 and 1.39

SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)

22 years agoBackport 1.47 and 1.7
Raymond Hettinger [Fri, 25 Apr 2003 05:31:43 +0000 (05:31 +0000)] 
Backport 1.47 and 1.7
SF Patch 549151: urllib2 POSTs on redirect
(contributed by John J Lee)

22 years agoBackport 1.18:
Raymond Hettinger [Fri, 25 Apr 2003 04:37:40 +0000 (04:37 +0000)] 
Backport 1.18:

SF bug 557704: netrc module can't handle all passwords

Let netrc handle entries with login fields (mail servers for instance)
by having login default to ''.

22 years agoAdd cross-references between urllib.urlencode() and cgi.parse_qs[l]().
Fred Drake [Thu, 24 Apr 2003 16:25:07 +0000 (16:25 +0000)] 
Add cross-references between urllib.urlencode() and cgi.parse_qs[l]().
Closes SF bug #724751.

22 years agoInclude notice that the rotor module will be deprecated in Python 2.3.
Fred Drake [Thu, 24 Apr 2003 13:47:08 +0000 (13:47 +0000)] 
Include notice that the rotor module will be deprecated in Python 2.3.

22 years agoFix documentation errors in regards to urlretrieve() and local files.
Brett Cannon [Thu, 24 Apr 2003 02:46:35 +0000 (02:46 +0000)] 
Fix documentation errors in regards to urlretrieve() and local files.

Also fix typos in urllib lib doc.

22 years agobackport note about password limitations
Skip Montanaro [Wed, 23 Apr 2003 20:36:18 +0000 (20:36 +0000)] 
backport note about password limitations

22 years agofsync(): Implemented for Windows, via calling MS _commit. This counts
Tim Peters [Wed, 23 Apr 2003 20:14:12 +0000 (20:14 +0000)] 
fsync():  Implemented for Windows, via calling MS _commit.  This counts
as "a bug" because there's no other way in core Python to ensure that
bytes written are actually on disk.  At least ZODB wants this guarantee,
for robustness against crashes.

22 years agoBackport 1.17 adding punctuation as allowable characters
Raymond Hettinger [Wed, 23 Apr 2003 19:37:42 +0000 (19:37 +0000)] 
Backport 1.17 adding punctuation as allowable characters

22 years agoPatch #681152: Support escaped unicode characters in classes. Fixes 612074.
Martin v. Löwis [Sat, 19 Apr 2003 08:39:04 +0000 (08:39 +0000)] 
Patch #681152: Support escaped unicode characters in classes. Fixes 612074.

22 years agoPatch #716969: Detect thread creation failure.
Martin v. Löwis [Sat, 19 Apr 2003 07:46:28 +0000 (07:46 +0000)] 
Patch #716969: Detect thread creation failure.

22 years agoPatch #711835: Remove unnecessary lock operations.
Martin v. Löwis [Fri, 18 Apr 2003 11:21:22 +0000 (11:21 +0000)] 
Patch #711835: Remove unnecessary lock operations.

22 years agoAdded documentation for the handle_pi() method, based on SF patch #662464.
Fred Drake [Thu, 17 Apr 2003 22:37:50 +0000 (22:37 +0000)] 
Added documentation for the handle_pi() method, based on SF patch #662464.
Closes SF bug #659188, patch #662464.

22 years agoAs discussed on python-dev, revised docs to note that
Raymond Hettinger [Wed, 16 Apr 2003 17:30:15 +0000 (17:30 +0000)] 
As discussed on python-dev, revised docs to note that
PyObject_IsTrue() can have an error result.

Also, added missing docs for PyObject_Not().

22 years agoBackport:
Neal Norwitz [Fri, 11 Apr 2003 18:21:22 +0000 (18:21 +0000)] 
Backport:
Fix SF bug #697220, string.strip implementation/doc mismatch

Attempt to make all the various string/unicode *strip methods the same.
 * Doc - add doc for when functions were added
 * UserString
 * string/unicode object methods
 * string module functions
'chars' is used for the last parameter everywhere.

22 years agoBackport:
Guido van Rossum [Thu, 10 Apr 2003 20:30:18 +0000 (20:30 +0000)] 
Backport:
PyErr_NormalizeException(): in the type==NULL test, we should simply
return.  Setting an exception can mess with the exception state, and
continuing is definitely wrong (since type is dereferenced later on).
Some code that calls this seems to be prepared for a NULL exception
type, so let's be safe rather than sorry and simply assume there's
nothing to normalize in this case.

22 years agoBackport reference leak fix from HEAD revision 1.79.
Fred Drake [Wed, 9 Apr 2003 18:19:24 +0000 (18:19 +0000)] 
Backport reference leak fix from HEAD revision 1.79.

22 years agoBackport comments about PyObject_Type() (HEAD revisions 1.24, 1.25).
Fred Drake [Wed, 9 Apr 2003 18:17:18 +0000 (18:17 +0000)] 
Backport comments about PyObject_Type() (HEAD revisions 1.24, 1.25).

22 years agoBackport from trunk:
Guido van Rossum [Wed, 9 Apr 2003 17:06:31 +0000 (17:06 +0000)] 
Backport from trunk:
property_traverse() should also traverse into prop_doc -- there's no
typecheck that guarantees it's a string, and BTW string subclasses
could hide references.

22 years agoFixed the gc-vs-__del__ bugs for new-style classes. That's it for this one.
Tim Peters [Tue, 8 Apr 2003 20:33:05 +0000 (20:33 +0000)] 
Fixed the gc-vs-__del__ bugs for new-style classes.  That's it for this one.

22 years agoBackporting new gc-vs-__del__ tests. These pass, but are restricted
Tim Peters [Tue, 8 Apr 2003 19:32:53 +0000 (19:32 +0000)] 
Backporting new gc-vs-__del__ tests.  These pass, but are restricted
to old-style classes.  New-style classes remain vulnerable in 2.2.

22 years agoMore backporting of gc-vs-__del__ fixes. It should be fixed for instances
Tim Peters [Tue, 8 Apr 2003 19:13:14 +0000 (19:13 +0000)] 
More backporting of gc-vs-__del__ fixes.  It should be fixed for instances
of classic classes now.  Alas, new-style classes are still a problem, and
didn't need to be fixed in 2.3 (they were already immune in 2.3 due to the
new-in-2.3 tp_del slot).

22 years agoAdded private API function _PyInstance_Lookup(). This is part of
Tim Peters [Tue, 8 Apr 2003 19:02:34 +0000 (19:02 +0000)] 
Added private API function _PyInstance_Lookup().  This is part of
backporting fixes so that garbage collection doesn't have to trigger
execution of arbitrary Python code just to figure out whether
an object has a __del__ method.

22 years agoAdded example of using positional and keyword args with atexit.register().
Fred Drake [Tue, 8 Apr 2003 17:46:33 +0000 (17:46 +0000)] 
Added example of using positional and keyword args with atexit.register().
Based on a suggestion from a reader.

22 years agoBackporting:
Barry Warsaw [Fri, 4 Apr 2003 02:48:18 +0000 (02:48 +0000)] 
Backporting:

    typed_subpart_iterator(): Fix these to use non-deprecated APIs,
    i.e. get_content_maintype() and get_content_subtype().

22 years agoBackporting email 2.5.1 patches.
Barry Warsaw [Fri, 4 Apr 2003 02:47:07 +0000 (02:47 +0000)] 
Backporting email 2.5.1 patches.

22 years agoBackporting:
Barry Warsaw [Fri, 4 Apr 2003 02:46:38 +0000 (02:46 +0000)] 
Backporting:

    revision 1.27
    date: 2003/03/30 20:46:47;  author: bwarsaw;  state: Exp;  lines: +3 -3
    __unicode__(): Fix the logic for calculating whether to add a
    separating space or not between encoded chunks.  Closes SF bug
    #710498.