]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
21 years agoAs discussed on python-dev, a script for the free Inno Setup tool
Thomas Heller [Thu, 22 Apr 2004 18:24:30 +0000 (18:24 +0000)] 
As discussed on python-dev, a script for the free Inno Setup tool
which will create a windows installer containing only the Python
debugging binaries.

They will be installed alongside an existing Python installation, the
location is read from the registry.

This allows easy building and debugging of own compiled extensions.

21 years agoSF #926075: Fixed the bug that returns a wrong pattern object for
Hye-Shik Chang [Tue, 20 Apr 2004 21:32:33 +0000 (21:32 +0000)] 
SF #926075: Fixed the bug that returns a wrong pattern object for
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.

21 years agoSF #926075: Fixed the bug that returns a wrong pattern object for
Hye-Shik Chang [Tue, 20 Apr 2004 21:16:06 +0000 (21:16 +0000)] 
SF #926075: Fixed the bug that returns a wrong pattern object for
a string or unicode object in sre.compile() when a different type
pattern with the same value exists.

21 years agoSpecial case normalization of empty strings. Fixes #924361.
Martin v. Löwis [Sat, 17 Apr 2004 19:36:13 +0000 (19:36 +0000)] 
Special case normalization of empty strings. Fixes #924361.

21 years agoSF bug #936827: PyNumber_And() 's description
Raymond Hettinger [Sat, 17 Apr 2004 11:59:55 +0000 (11:59 +0000)] 
SF bug #936827:  PyNumber_And() 's description

Fix typo.

21 years agoWhitespace cleanup.
Thomas Heller [Fri, 16 Apr 2004 20:15:33 +0000 (20:15 +0000)] 
Whitespace cleanup.

21 years agoThe Windows installer for Python 2.3.4 will include tix.
Thomas Heller [Fri, 16 Apr 2004 20:13:57 +0000 (20:13 +0000)] 
The Windows installer for Python 2.3.4 will include tix.

21 years agoAdd tcl test results on Windows XP.
Thomas Heller [Fri, 16 Apr 2004 20:09:57 +0000 (20:09 +0000)] 
Add tcl test results on Windows XP.

Add instructions how to build tix - will probably be included in Python 2.3.4.

21 years agobackport of patch #934971.
Skip Montanaro [Fri, 16 Apr 2004 03:30:33 +0000 (03:30 +0000)] 
backport of patch #934971.

21 years agoRecompiled the binary wininst.exe after this change:
Thomas Heller [Thu, 15 Apr 2004 17:51:59 +0000 (17:51 +0000)] 
Recompiled the binary wininst.exe after this change:

When loading the Python dll to run the postinstall script, try to load
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.

Fixes SF 935091: bdist_winist post-install script fails on non-admin Python

Will port to the trunk later.

21 years agoWhen loading the Python dll to run the postinstall script, try to load
Thomas Heller [Thu, 15 Apr 2004 17:50:42 +0000 (17:50 +0000)] 
When loading the Python dll to run the postinstall script, try to load
it from the install directory (as reported by the registry) in case it
is not found on the default Loadlibrary search path.

Fixes SF 935091: bdist_winist post-install script fails on non-admin Python

Will port to the trunk later.

21 years agoremove bogus markup that caused the docs to be wrong
Fred Drake [Thu, 15 Apr 2004 06:18:28 +0000 (06:18 +0000)] 
remove bogus markup that caused the docs to be wrong

21 years agoBackport checkin>
Hye-Shik Chang [Wed, 14 Apr 2004 08:11:31 +0000 (08:11 +0000)] 
Backport checkin>
Bug #934635: Fixed a bug where the configure script couldn't detect
getaddrinfo() properly if the KAME stack had SCTP support.
(Submitted by SUZUKI Shinsuke)

21 years agoadd AF_UNIX notes
Andrew MacIntyre [Sun, 11 Apr 2004 12:13:53 +0000 (12:13 +0000)] 
add AF_UNIX notes

21 years agoBackport to 2.3:
Andrew MacIntyre [Sun, 11 Apr 2004 12:12:31 +0000 (12:12 +0000)] 
Backport to 2.3:

Fixes for AF_UNIX support on OS/2:
- return the full size of the sockaddr_un structure, without which
  bind() fails with EINVAL;
- set test_socketserver to use a socket name that meets the form
  required by the underlying implementation;
- don't bother exercising the forking AF_UNIX tests on EMX - its
  fork() can't handle the stress.

21 years agogive rational filenames to some of the generated HTML
Fred Drake [Thu, 8 Apr 2004 19:45:36 +0000 (19:45 +0000)] 
give rational filenames to some of the generated HTML

21 years agoinclude both the GIF and PNG icons in the HTML package
Fred Drake [Thu, 8 Apr 2004 16:38:10 +0000 (16:38 +0000)] 
include both the GIF and PNG icons in the HTML package

21 years agoavoid stripping space after indexing macros
Fred Drake [Thu, 8 Apr 2004 15:46:56 +0000 (15:46 +0000)] 
avoid stripping space after indexing macros

21 years agoBackport to 2.3 to support Zope 2.7 on OS/2:
Andrew MacIntyre [Sun, 4 Apr 2004 07:19:27 +0000 (07:19 +0000)] 
Backport to 2.3 to support Zope 2.7 on OS/2:

OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that
the socket name must start with /socket32/.  Unlike Unix systems, this
file never exists in the file system.

21 years agoBackport to 2.3 to support Zope 2.7 on OS/2:
Andrew MacIntyre [Sun, 4 Apr 2004 07:17:05 +0000 (07:17 +0000)] 
Backport to 2.3 to support Zope 2.7 on OS/2:

OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied
with major C compilers (VACPP, EMX+gcc and [Open]Watcom).

Also tidy up the export of spawn*() symbols in the os module to match what
is found/implemented.

21 years agoBackport to 2.3:
Andrew MacIntyre [Sun, 4 Apr 2004 07:08:20 +0000 (07:08 +0000)] 
Backport to 2.3:

If a file is opened with an explicit buffer size >= 1, repeated
close() calls would attempt to free() the buffer already free()ed on
the first close().     [bug introduced with patch #788249]

Making sure that the buffer is free()ed in file object deallocation is
a belt-n-braces bit of insurance against a memory leak.

21 years ago#928751, fix typos in socket doc
Neal Norwitz [Sat, 3 Apr 2004 18:03:51 +0000 (18:03 +0000)] 
#928751, fix typos in socket doc

21 years agoremove workarounds to prevent "--" in code from being improperly munged to
Fred Drake [Thu, 1 Apr 2004 16:38:44 +0000 (16:38 +0000)] 
remove workarounds to prevent "--" in code from being improperly munged to
single hyphens in the HTML output; this is no longer needed now that
../perl/python.perl makes things just work

21 years agoFix support for the "prog" keyword to the OptionParser constructor, as well
Fred Drake [Thu, 1 Apr 2004 07:38:49 +0000 (07:38 +0000)] 
Fix support for the "prog" keyword to the OptionParser constructor, as well
as directly setting the .prog attribute (which should be supported based on
the class docstring).
Closes SF bug #850964.

21 years agobackport trunk revision 1.144, closing SF bug #793702:
Fred Drake [Thu, 1 Apr 2004 04:33:39 +0000 (04:33 +0000)] 
backport trunk revision 1.144, closing SF bug #793702:
- make "--" in code text not get converted to "-"
- fix minor typo in comment
(but this time the typo is fixed correctly!)

21 years agoNote that reading from a socket may not always return all of the
Fred Drake [Thu, 1 Apr 2004 04:11:05 +0000 (04:11 +0000)] 
Note that reading from a socket may not always return all of the
remaining content of a stream when expected to do so.
Closes SF bug #725265.  Backported from trunk revision 1.52.

21 years ago- make sure the methods minidom adds to the basic DOM are attributed
Fred Drake [Thu, 1 Apr 2004 04:06:52 +0000 (04:06 +0000)] 
- make sure the methods minidom adds to the basic DOM are attributed
  to Node objects in the index (closes SF bug #832251)
- fix a variety of markup nits

Backported from trunk revision 1.9.

21 years agobackport fix for SF bug #796042: sdist ignores scripts argument in setup
Fred Drake [Thu, 1 Apr 2004 03:56:46 +0000 (03:56 +0000)] 
backport fix for SF bug #796042:  sdist ignores scripts argument in setup

The fix adds a get_source_files() method to the build_scripts command
and adds the result to the default manifest list.

21 years agoPatch #924497: find(1) all files with /usr/local/bin/python in them.
Martin v. Löwis [Wed, 31 Mar 2004 18:58:42 +0000 (18:58 +0000)] 
Patch #924497: find(1) all files with /usr/local/bin/python in them.

21 years agoBackport 1.17:
Guido van Rossum [Wed, 31 Mar 2004 18:55:17 +0000 (18:55 +0000)] 
Backport 1.17:
When /tmp has certain sticky bits set, newly created subdirectories
inherit those bits, causing the test_mkdtemp.test_mode() test to fail.
Remove those before comparing the actual mode to the expected mode.

21 years agoadd missing and forthcoming releases
Fred Drake [Wed, 31 Mar 2004 08:02:55 +0000 (08:02 +0000)] 
add missing and forthcoming releases

21 years agoEmphasize the requirement that Python.h be included first more strongly.
Fred Drake [Wed, 31 Mar 2004 07:48:14 +0000 (07:48 +0000)] 
Emphasize the requirement that Python.h be included first more strongly.
Closes SF bug #837228; backported from the head.

21 years agoKeybindings with the Shift modifier now work correctly. So do bindings
Kurt B. Kaiser [Tue, 30 Mar 2004 04:07:00 +0000 (04:07 +0000)] 
Keybindings with the Shift modifier now work correctly.  So do bindings
which use the Space key.  Limit unmodified user keybindings to the
function keys.
Python Bug 775353, IDLEfork Bugs 755647, 761557

Improve error handling during startup if there's no Tkinter.

M NEWS.txt
M PyShell.py
M config-keys.def
M configHandler.py
M keybindingDialog.py

21 years agoOS/2 VACPP build updates/fixes
Andrew MacIntyre [Mon, 29 Mar 2004 11:58:55 +0000 (11:58 +0000)] 
OS/2 VACPP build updates/fixes

21 years agoremove out-of-date warning
Fred Drake [Fri, 26 Mar 2004 17:10:33 +0000 (17:10 +0000)] 
remove out-of-date warning

21 years agoFix last patch to make backwards-compatible with Python 1.5.2 .
Brett Cannon [Thu, 25 Mar 2004 18:35:38 +0000 (18:35 +0000)] 
Fix last patch to make backwards-compatible with Python 1.5.2 .
Bumped up micro version number.

21 years agoFixed a caching bug in platform.platform() where the argument of 'terse' was
Brett Cannon [Thu, 25 Mar 2004 16:56:14 +0000 (16:56 +0000)] 
Fixed a caching bug in platform.platform() where the argument of 'terse' was
not taken into consideration when caching value.

21 years agoSF bug #921927: Fixed a typo/thinko spelling "parameter" as "paramter"
Raymond Hettinger [Thu, 25 Mar 2004 08:55:58 +0000 (08:55 +0000)] 
SF bug #921927:  Fixed a typo/thinko spelling "parameter" as "paramter"

21 years agoEnsure super() lookup of descriptor from classmethod works (SF ID# 743627)
Phillip J. Eby [Thu, 25 Mar 2004 02:36:29 +0000 (02:36 +0000)] 
Ensure super() lookup of descriptor from classmethod works (SF ID# 743627)
(Backport to 2.3 maintenance branch)

21 years agoConvert input to a string object. Fixes #909230.
Martin v. Löwis [Tue, 23 Mar 2004 23:42:54 +0000 (23:42 +0000)] 
Convert input to a string object. Fixes #909230.

21 years agoDecref all if ensure_fromlist fails. Fixes #876533.
Martin v. Löwis [Tue, 23 Mar 2004 16:28:45 +0000 (16:28 +0000)] 
Decref all if ensure_fromlist fails. Fixes #876533.

21 years agoBackport for bug fix of 2.204.
Armin Rigo [Mon, 22 Mar 2004 20:41:47 +0000 (20:41 +0000)] 
Backport for bug fix of 2.204.

21 years agoBackported fix of revision 2.217.
Armin Rigo [Mon, 22 Mar 2004 20:39:42 +0000 (20:39 +0000)] 
Backported fix of revision 2.217.

21 years agoAdded check for broken poll on OSes where it exists but sets errno for
Nicholas Bastin [Mon, 22 Mar 2004 20:20:33 +0000 (20:20 +0000)] 
Added check for broken poll on OSes where it exists but sets errno for
bad file descriptor.  Fixes SF Bug #850981

21 years agoBackport checkin:
Hye-Shik Chang [Sun, 21 Mar 2004 19:53:59 +0000 (19:53 +0000)] 
Backport checkin:
[Bug #920575] Add a workaround for GNU libc nl_langinfo()'s returning NULL.

21 years agoFix test_strftime.py to escape locale time values that have characters that
Brett Cannon [Sat, 20 Mar 2004 23:13:49 +0000 (23:13 +0000)] 
Fix test_strftime.py to escape locale time values that have characters that
might be mistaken for regex syntax.
Fixes bug #883604 .

21 years agoPut entry in proper section.
Brett Cannon [Sat, 20 Mar 2004 22:48:19 +0000 (22:48 +0000)] 
Put entry in proper section.

21 years agoBackport to 2.3:
Guido van Rossum [Sat, 20 Mar 2004 22:35:07 +0000 (22:35 +0000)] 
Backport to 2.3:
Fix for SF 780407.
Change %08l to %p to print a pointer.

21 years agoBackporting to 2.3:
Guido van Rossum [Sat, 20 Mar 2004 22:22:31 +0000 (22:22 +0000)] 
Backporting to 2.3:
Fix for SF 777848.
I've been bitten by this myself in the past half year.
I hope this fix is right.

21 years agoRaise RuntimeError if the second argument to isinstance() or issubclass()
Brett Cannon [Sat, 20 Mar 2004 21:54:35 +0000 (21:54 +0000)] 
Raise RuntimeError if the second argument to isinstance() or issubclass()
is a tuple nested to a depth beyond the interpreter's recursion limit to
prevent a segfault from blowing the C stack.
Fixes bug #858016 .

21 years agoAdd mention of fix of bug #700055.
Brett Cannon [Sat, 20 Mar 2004 21:18:46 +0000 (21:18 +0000)] 
Add mention of fix of bug #700055.

21 years agoStrip all whitespace at the end of a line when validating paths specified in
Brett Cannon [Sat, 20 Mar 2004 21:14:25 +0000 (21:14 +0000)] 
Strip all whitespace at the end of a line when validating paths specified in
a .pth file.
Fixes bug #700055 .

21 years agoSF bug #918371: hasattr()'s return type
Raymond Hettinger [Sat, 20 Mar 2004 18:26:42 +0000 (18:26 +0000)] 
SF bug #918371: hasattr()'s return type

Replace 1 and 0 with True and False.

21 years agocommit the portion of PyXML patch #919008 that is relevant to the
Fred Drake [Sat, 20 Mar 2004 08:20:03 +0000 (08:20 +0000)] 
commit the portion of PyXML patch #919008 that is relevant to the
standard library:
str() of xml.sax.SAXParseException should not fail if the line and/or
column number returned by the locator are None
(tests added)

21 years agoPyFile_WriteObject(): some of the local variables are only used when
Fred Drake [Fri, 19 Mar 2004 15:23:14 +0000 (15:23 +0000)] 
PyFile_WriteObject():  some of the local variables are only used when
                       Py_USING_UNICODE is defined

21 years agofix bug related to SF bug id 788421 where DBC.set_range() could call
Gregory P. Smith [Tue, 16 Mar 2004 07:47:45 +0000 (07:47 +0000)] 
fix bug related to SF bug id 788421 where DBC.set_range() could call
free() on something it did not allocate for non B-Tree based databases.

21 years agoBackport checkin:
Walter Dörwald [Mon, 15 Mar 2004 14:22:55 +0000 (14:22 +0000)] 
Backport checkin:
Port test_binascii.py to PyUnit and enhance tests.
Code coverage for binascii.c is at 92%.
From SF patch #736962.

21 years agoSF patch #911431: robot.txt must be robots.txt
Raymond Hettinger [Sat, 13 Mar 2004 20:31:33 +0000 (20:31 +0000)] 
SF patch #911431: robot.txt must be robots.txt
(Contributed by George Yoshida.)

21 years agoBackport platform module's docs since module was added in 2.3 .
Brett Cannon [Tue, 2 Mar 2004 04:45:08 +0000 (04:45 +0000)] 
Backport platform module's docs since module was added in 2.3 .

21 years agoBackport of 1.18:
Jack Jansen [Sat, 28 Feb 2004 23:23:57 +0000 (23:23 +0000)] 
Backport of 1.18:
- Allow easy opening of experimental database, if pimp >= 0.4
- Allow easy access to the PackMan homepage, for even more databases.

21 years agoBackport of 1.29 and 1.30 (1.28 is obsolete):
Jack Jansen [Sat, 28 Feb 2004 23:21:50 +0000 (23:21 +0000)] 
Backport of 1.29 and 1.30 (1.28 is obsolete):
Started on version 0.4: better scheme for finding correct database:
- Try not only "darwin-7.X.Y" but also "darwin-7.X" and "darwin-7",
  so far we've never had to create anew database for a minor release.
- Distinguish between the various different installs (user-installed
  MacPython, apple-installed MacPython, other).

21 years agoFixes SF bsddb module bug 788421:
Gregory P. Smith [Thu, 26 Feb 2004 10:21:13 +0000 (10:21 +0000)] 
Fixes SF bsddb module bug 788421:
 * Fixed a bug in the compatibility interface set_location() method
   where it would not properly search to the next nearest key when
   used on BTree databases.  [SF bug id 788421]
 * Fixed a bug in the compatibility interface set_location() method
   where it could crash when looking up keys in a hash or recno
   format database due to an incorrect free().

21 years agofix typo in reference to RFC 3464 DSN MIME type
Fred Drake [Tue, 24 Feb 2004 20:57:30 +0000 (20:57 +0000)] 
fix typo in reference to RFC 3464 DSN MIME type

21 years agofix English usage error reported by Ken Fuchs
Fred Drake [Tue, 24 Feb 2004 16:13:04 +0000 (16:13 +0000)] 
fix English usage error reported by Ken Fuchs

21 years agoadding passing test. testing for g(*Nothing()) where Nothing is a user-defined iterator.
Samuele Pedroni [Sat, 21 Feb 2004 21:00:36 +0000 (21:00 +0000)] 
adding passing test. testing for g(*Nothing()) where Nothing is a user-defined iterator.

21 years agoadd definitions required for expat 1.95.7
Andrew MacIntyre [Fri, 20 Feb 2004 12:00:06 +0000 (12:00 +0000)] 
add definitions required for expat 1.95.7

21 years agobackport of concrete.tex v1.35:
Andrew MacIntyre [Fri, 20 Feb 2004 11:58:27 +0000 (11:58 +0000)] 
backport of concrete.tex v1.35:

The semantics of PyList_Check() and PyDict_Check() changed at 2.2, along
with most other concrete object checks, but the docs weren't brought into
line.

PyList_CheckExact() was added at 2.2 but never documented.

21 years agoFix a typo found by Mark Hammond.
Thomas Heller [Fri, 20 Feb 2004 11:23:17 +0000 (11:23 +0000)] 
Fix a typo found by Mark Hammond.

21 years agoFix two small bugs: (1) on Windows, pathname munging didn't work
Guido van Rossum [Thu, 19 Feb 2004 19:17:08 +0000 (19:17 +0000)] 
Fix two small bugs: (1) on Windows, pathname munging didn't work
right; (2) write_results_file() didn't return a tuple of two ints when
it couldn't create the file.  Backport of 1.18.

21 years agoFix docstrings to mention the correct function
Neal Norwitz [Mon, 16 Feb 2004 01:30:49 +0000 (01:30 +0000)] 
Fix docstrings to mention the correct function

21 years agoPatch #892673: Replace /usr/local/bin/python with
Martin v. Löwis [Sun, 15 Feb 2004 21:26:44 +0000 (21:26 +0000)] 
Patch #892673: Replace /usr/local/bin/python with
/usr/bin/env python'%{binsuffix}

21 years agoPatch #711838: Allow non-anonymous ftp urls in urllib2.
Martin v. Löwis [Sun, 15 Feb 2004 21:18:47 +0000 (21:18 +0000)] 
Patch #711838: Allow non-anonymous ftp urls in urllib2.

21 years agoPatch #817379: Allow absolute paths in urllib2.
Martin v. Löwis [Sun, 15 Feb 2004 20:54:13 +0000 (20:54 +0000)] 
Patch #817379: Allow absolute paths in urllib2.

21 years agoPatch #817379: Allow for absolute ftp paths.
Martin v. Löwis [Sun, 15 Feb 2004 20:52:00 +0000 (20:52 +0000)] 
Patch #817379: Allow for absolute ftp paths.

21 years agofix minor markup error: \code{for} --> \keyword{for}
Fred Drake [Thu, 12 Feb 2004 14:34:42 +0000 (14:34 +0000)] 
fix minor markup error: \code{for} --> \keyword{for}

21 years agoSF 895560: minor typo
Raymond Hettinger [Thu, 12 Feb 2004 09:52:43 +0000 (09:52 +0000)] 
SF 895560:  minor typo

21 years agoIf there is no .pyc file, just compile the code directly.
Jeremy Hylton [Wed, 11 Feb 2004 19:10:40 +0000 (19:10 +0000)] 
If there is no .pyc file, just compile the code directly.

21 years agoSF #894428, fix typo
Neal Norwitz [Tue, 10 Feb 2004 18:08:23 +0000 (18:08 +0000)] 
SF #894428, fix typo

21 years agoUpdate "more info" link to http://www.poynton.com/ColorFAQ.html .
Brett Cannon [Tue, 10 Feb 2004 01:18:30 +0000 (01:18 +0000)] 
Update "more info" link to http://www.poynton.com/ColorFAQ.html .

21 years agoDocumentation for PyDescr_NewClassMethod was missing - here's at least
Thomas Heller [Mon, 9 Feb 2004 10:44:00 +0000 (10:44 +0000)] 
Documentation for PyDescr_NewClassMethod was missing - here's at least
the function prototype.

21 years agoFixed a bug in object.__reduce_ex__ (reduce_2) when using protocol
Jim Fulton [Mon, 9 Feb 2004 02:57:18 +0000 (02:57 +0000)] 
Fixed a bug in object.__reduce_ex__ (reduce_2) when using protocol
  2.  Failure to clear the error when attempts to get the __getstate__
  attribute fail caused intermittent errors and odd behavior.

21 years agoSF patch #892821: example for urllib2 has SyntaxError
Raymond Hettinger [Sun, 8 Feb 2004 20:26:17 +0000 (20:26 +0000)] 
SF patch #892821: example for urllib2 has SyntaxError
(Contributed by George Yoshida.)

21 years agoFix misspelled name.
Raymond Hettinger [Sun, 8 Feb 2004 20:19:42 +0000 (20:19 +0000)] 
Fix misspelled name.

21 years agoFix typo
Raymond Hettinger [Sun, 8 Feb 2004 20:06:42 +0000 (20:06 +0000)] 
Fix typo

21 years agoSF patch #880552: Fix typo in usage message(prechm.py)
Raymond Hettinger [Sun, 8 Feb 2004 19:26:13 +0000 (19:26 +0000)] 
SF patch #880552:  Fix typo in usage message(prechm.py)
(Contributed by George Yoshida.)

21 years agoSF patch #875689: >100k alloc wasted on startup
Raymond Hettinger [Sun, 8 Feb 2004 18:56:07 +0000 (18:56 +0000)] 
SF patch #875689: >100k alloc wasted on startup
(Contributed by Mike Pall.)

Make sure fill_free_list() is called only once rather than 106 times
when pre-allocating small ints.

21 years agoSF bug #892854: typo in textwrap doc page
Raymond Hettinger [Sun, 8 Feb 2004 18:12:20 +0000 (18:12 +0000)] 
SF bug #892854:  typo in textwrap doc page
(Reported by Drew Perttula.)

21 years agoBackport checkin:
Walter Dörwald [Fri, 6 Feb 2004 18:33:11 +0000 (18:33 +0000)] 
Backport checkin:
Fix test failure message (from SF patch #885008)

21 years agoadded notes about weakref changes
Fred Drake [Fri, 6 Feb 2004 04:14:41 +0000 (04:14 +0000)] 
added notes about weakref changes

21 years agoBackport checkin:
Walter Dörwald [Thu, 5 Feb 2004 17:44:26 +0000 (17:44 +0000)] 
Backport checkin:
Fix reallocation bug in unicode.translate(): The code was comparing
characters instead of character pointers to determine space requirements.

21 years agoAllocating a new weakref object can cause existing weakref objects for
Fred Drake [Wed, 4 Feb 2004 23:13:43 +0000 (23:13 +0000)] 
Allocating a new weakref object can cause existing weakref objects for
the same object to be collected by the cyclic GC support if they are
only referenced by a cycle.  If the weakref being collected was one of
the weakrefs without callbacks, some local variables for the
constructor became invalid and have to be re-computed.

The test caused a segfault under a debug build without the fix applied.

21 years agoClarify minor point about the ref() and proxy() constructors.
Fred Drake [Tue, 3 Feb 2004 20:50:45 +0000 (20:50 +0000)] 
Clarify minor point about the ref() and proxy() constructors.
This matches what is already documented for corresponding feature of the C API.

21 years ago- add tests that exercise fixes for the PyWeakref_NewRef() and
Fred Drake [Tue, 3 Feb 2004 20:18:20 +0000 (20:18 +0000)] 
- add tests that exercise fixes for the PyWeakref_NewRef() and
  PyWeakref_NewProxy() constructors from the C API
- elaborate the getweakrefcount() and getweakrefs() tests slightly,
  including additional checks pulled from the trunk

21 years agoFix bug in interpretation of the "callback" argument in the constructors for
Fred Drake [Tue, 3 Feb 2004 20:15:31 +0000 (20:15 +0000)] 
Fix bug in interpretation of the "callback" argument in the constructors for
weakref ref and proxy objects; None was not being treated as identical to
NULL, though it was documented as equivalent.

21 years agoBackporting revision 1.6:
Barry Warsaw [Mon, 26 Jan 2004 18:40:49 +0000 (18:40 +0000)] 
Backporting revision 1.6:

    don't wrap lines too late by default
    closes SF bug #842213

But I think Fred meant "too long" :)

21 years agofix method name in example code
Fred Drake [Fri, 23 Jan 2004 04:08:14 +0000 (04:08 +0000)] 
fix method name in example code

21 years agoadd direct link to the article in DDJ
Fred Drake [Wed, 21 Jan 2004 18:31:16 +0000 (18:31 +0000)] 
add direct link to the article in DDJ
closes SF bug #871402

21 years agobackport some doc fixes
Skip Montanaro [Wed, 21 Jan 2004 13:49:43 +0000 (13:49 +0000)] 
backport some doc fixes

21 years agopwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
Barry Warsaw [Tue, 20 Jan 2004 21:23:46 +0000 (21:23 +0000)] 
pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the error
messages.

21 years agogrp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error
Barry Warsaw [Tue, 20 Jan 2004 21:22:59 +0000 (21:22 +0000)] 
grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the error
messages.