Neal Norwitz [Sat, 29 Dec 2001 01:02:21 +0000 (01:02 +0000)]
SF Patch #494873 add tests for complex numbers including calls to int()/long()
Neal Norwitz [Sat, 29 Dec 2001 00:35:20 +0000 (00:35 +0000)]
SF Patch #494874 add tests for int()/long() invalid parameters
Neal Norwitz [Sat, 29 Dec 2001 00:25:42 +0000 (00:25 +0000)]
SF Patch #494872 test repr() of a built-in module
Neal Norwitz [Sat, 29 Dec 2001 00:16:09 +0000 (00:16 +0000)]
SF Patch #494876, test invalid parameters to pow()
Guido van Rossum [Fri, 28 Dec 2001 22:07:09 +0000 (22:07 +0000)]
Thread.__bootstrap(): ignore exceptions in the self.__delete() call in
the finally clause. An exception here could happen when a daemon
thread exits after the threading module has already been trashed by
the import finalization, and there's not much of a point in trying to
insist doing the cleanup in that stage.
This should fix SF bug ##497111: active_limbo_lock error at program
exit.
2.1.2 and 2.2.1 Bugfix candidate!
Guido van Rossum [Fri, 28 Dec 2001 21:39:03 +0000 (21:39 +0000)]
Fix for SF bug ##497426: can't deepcopy recursive new objects
deepcopy(), _reconstruct(): pass the memo to the other function, so
that recursive data structures built out of new-style objects may be
deeply copied correctly.
2.2.1 bugfix!
Guido van Rossum [Fri, 28 Dec 2001 21:33:22 +0000 (21:33 +0000)]
Fix for SF bug ##497426: can't deepcopy recursive new objects
deepcopy(), _reconstruct(): pass the memo to the other function, so
that recursive data structures built out of new-style objects may be
deeply copied correctly.
2.2.1 bugfix!
Martin v. Löwis [Fri, 28 Dec 2001 21:08:12 +0000 (21:08 +0000)]
Add fcntl.h constants from glibc 2.2.4. Fixes #496171.
Guido van Rossum [Fri, 28 Dec 2001 20:57:14 +0000 (20:57 +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.
Guido van Rossum [Fri, 28 Dec 2001 20:54:55 +0000 (20:54 +0000)]
Update the docstring too. :-)
Guido van Rossum [Fri, 28 Dec 2001 20:54:28 +0000 (20:54 +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.
Jack Jansen [Thu, 27 Dec 2001 23:37:49 +0000 (23:37 +0000)]
Added someone.
Jack Jansen [Thu, 27 Dec 2001 23:35:43 +0000 (23:35 +0000)]
Patches by Jens B. Jorgensen with small mods by me:
- Converted the templates to use ANSI C prototypes (finally!)
- Use re in stead of deprecated regex
Jack Jansen [Thu, 27 Dec 2001 23:01:18 +0000 (23:01 +0000)]
Merging changes from release22-branch.
Fred Drake [Thu, 27 Dec 2001 18:40:18 +0000 (18:40 +0000)]
Another name; should be added to Python 2.2.1.
Fred Drake [Thu, 27 Dec 2001 18:38:10 +0000 (18:38 +0000)]
Added some missing index entries, noted by L. Peter Deutsch.
This should be included in Python 2.2.1.
Guido van Rossum [Thu, 27 Dec 2001 16:57:49 +0000 (16:57 +0000)]
Updated -- all Demo subdirectories are once again listed here, in
alphabetical order (!), and the obsolete 'extend' directory is no
longer mentioned.
This and the erasure of the extend directory are 2.2.1 bugfix
candidates (but only of you want to be thorough -- it's not like
anybody cares :-).
Guido van Rossum [Thu, 27 Dec 2001 16:48:27 +0000 (16:48 +0000)]
Removing this directory; it's no longer needed now that Misc/Makefile.pre.in
no longer exists. Docs for distutils are plenty elsewhere.
Guido van Rossum [Thu, 27 Dec 2001 16:27:28 +0000 (16:27 +0000)]
_reduce(): Avoid infinite recursion in the pickler when self.__class__
doesn't have the _HEAPTYPE flag set, e.g. for time.struct_time and
posix.stat_result.
This fixes the immediate symptoms of SF bug #496873 (cPickle /
time.struct_time loop), replacing the infinite loop with an exception.
Guido van Rossum [Thu, 27 Dec 2001 16:23:28 +0000 (16:23 +0000)]
Due to a cut-and-paste error, the type object exported under the name
statvfs_result was in fact the stat_result type object. :-(
2.2.1 bugfix!
Just van Rossum [Thu, 27 Dec 2001 10:29:07 +0000 (10:29 +0000)]
Modified version of patch #496882: echo SimpleStdin readline()
input to stdout.
Fred Drake [Thu, 27 Dec 2001 05:10:18 +0000 (05:10 +0000)]
Elaborate the descriptions for onecmd(), precmd(), and postcmd() so they are
useful.
Fred Drake [Wed, 26 Dec 2001 22:08:44 +0000 (22:08 +0000)]
Fix wrongly-named formal parameters in three places: begin_y was used twice
instead of begin_y and begin_x for derwin(), subpad(), and subwin().
Reported for derwin() by Eric Huss.
Added class annotations for the window methods so they would be properly
described in the index.
Fred Drake [Wed, 26 Dec 2001 22:08:35 +0000 (22:08 +0000)]
Added another name.
Fred Drake [Wed, 26 Dec 2001 20:06:40 +0000 (20:06 +0000)]
Added index entries similar to some recommended by Skip, and used the word
"interpolation" in the text, to make the string formatting material easier to
find.
This closes SF bug #487165.
Bugfix: this should be applied for Python 2.2.1.
Fred Drake [Wed, 26 Dec 2001 19:55:14 +0000 (19:55 +0000)]
Make this do the right thing with entries which start with the percent sign,
in response to Skip's comments in SF bug #487165.
Make use of string methods instead of string module functions in most places.
Add (and make the default) a way to collapse symbol entries into a single
"Symbols" section in the generated index. This is similar to what makeindex
does, but does not include entries beginning with an underscore.
Fred Drake [Wed, 26 Dec 2001 19:48:43 +0000 (19:48 +0000)]
More index entries.
Fred Drake [Wed, 26 Dec 2001 16:53:48 +0000 (16:53 +0000)]
Close an improperly-closed verbatim environment.
This closes SF patch #496215.
Add a little more detail to the example that had not been closed.
Bugfix: this should be made part of 2.2.1.
Tim Peters [Tue, 25 Dec 2001 19:07:38 +0000 (19:07 +0000)]
SF bug #495548: troublesome #define in pyport.h
Removed the ancient "#define ANY void".
Bugfix candidate? Hard call. The bug report claims the existence of
this #define creates conflicts with other packages, which is easy to
believe. OTOH, some extension authors may still be relying on its
presence. I'm afraid you can't win on this one.
Tim Peters [Tue, 25 Dec 2001 18:49:11 +0000 (18:49 +0000)]
SF bug #496549 -Qnew and in-place division "/=".
eval_frame(): Under -Qnew, INPLACE_DIVIDE wasn't getting handed off to
INPLACE_TRUE_DIVIDE (like BINARY_DIVIDE was getting handed off to
BINARY_TRUE_DIVIDE).
Bugfix candidate.
Guido van Rossum [Sun, 23 Dec 2001 13:54:19 +0000 (13:54 +0000)]
Don't set passiveserver to 0 in connect(). See SF bug #495693.
This should definitely be backported to 2.2.1. I'll leave it to Jack
to decide whether he wants to fix this in MacPython 2.2.
Fred Drake [Sat, 22 Dec 2001 19:07:58 +0000 (19:07 +0000)]
Fix the erroneous availability annotation for s.makefile() from the last
checkin (my fault!).
Wrap some long lines and fix some markup inconsistencies.
Martin v. Löwis [Sat, 22 Dec 2001 15:23:50 +0000 (15:23 +0000)]
Regenerated for Linux 2.2.4.
Martin v. Löwis [Sat, 22 Dec 2001 15:05:32 +0000 (15:05 +0000)]
Add TCP socket options from glibc 2.2.4. Fixes #495680.
2.2.1 bugfix candidate.
Tim Peters [Fri, 21 Dec 2001 22:06:12 +0000 (22:06 +0000)]
Windows build: close out 2.2, prep for 2.3.
Tim Peters [Fri, 21 Dec 2001 21:36:50 +0000 (21:36 +0000)]
Added 2.3a1 section.
Barry Warsaw [Fri, 21 Dec 2001 20:05:33 +0000 (20:05 +0000)]
And we start all over again!
Barry Warsaw [Fri, 21 Dec 2001 20:04:22 +0000 (20:04 +0000)]
Merge of the release22 branch changes back into the trunk.
Fred Drake [Fri, 21 Dec 2001 17:45:03 +0000 (17:45 +0000)]
Add notes that fromfd() and s.makefile() are Unix-specific.
This fixes SF bug #495896.
Fix up various markup consistency & style guide conformance nits.
Fred Drake [Fri, 21 Dec 2001 16:46:28 +0000 (16:46 +0000)]
Doc changes on the trunk will not be in Python 2.2, so let's call it 2.2+.
Barry Warsaw [Fri, 21 Dec 2001 16:32:15 +0000 (16:32 +0000)]
PyOS_vsnprintf(): Change PyMem_Malloc() call to PyMem_MALLOC() macro,
(ditto for PyMem_Free() -> PyMem_FREE()) to fix and close SF bug
#495875 on systems that HAVE_SNPRINTF=0.
Check in on both release-22 branch and trunk.
Andrew M. Kuchling [Fri, 21 Dec 2001 15:34:17 +0000 (15:34 +0000)]
Suggested by Pete Shinners: treat .m and .mm files as source code.
Question for Jack Jansen: is this reasonable?
Candidate for 2.2 release branch (if Jack thinks it's OK).
Anthony Baxter [Fri, 21 Dec 2001 05:13:37 +0000 (05:13 +0000)]
forward-patch from release21-maint branch:
Make dumbdbm merely "dumb", rather than "terminally broken". Without this
patch, it's almost impossible to use dumbdbm _without_ causing horrible
datalossage. With this patch, dumbdbm passes my own horrible torture test,
as well as the roundup test suite.
dumbdbm really could do with a smidgin of a rewrite or two, but that's not
suitable for the release21-maint branch.
Andrew M. Kuchling [Fri, 21 Dec 2001 04:39:11 +0000 (04:39 +0000)]
1.00 at last!
Describe super() very briefly
A few minor reformattings and wording changes
Set the release date (presumably tomorrow...)
Fred Drake [Fri, 21 Dec 2001 03:58:47 +0000 (03:58 +0000)]
Add a reference to the signal module to the os.kill() description.
This closes SF bug #495609.
Fred Drake [Fri, 21 Dec 2001 03:52:04 +0000 (03:52 +0000)]
Fix typo in httplib example.
This fixes SF bug #495221.
Fred Drake [Thu, 20 Dec 2001 23:54:56 +0000 (23:54 +0000)]
Fix up some examples in the tutorial so we don't contradict our own
advice on docstrings.
This fixes SF bug #495601.
Jack Jansen [Thu, 20 Dec 2001 20:41:45 +0000 (20:41 +0000)]
Applying r22c1 branch mods back to the trunk.
Fred Drake [Thu, 20 Dec 2001 17:24:11 +0000 (17:24 +0000)]
Fix the availability statement for the spawn*() functions to reflect the
actual availability on Windows.
This fixes SF bug #495191.
Fred Drake [Thu, 20 Dec 2001 17:13:09 +0000 (17:13 +0000)]
Re-commit Ping's patch to the cgi and cgitb documentation, using the
right version this time. Thanks, Ping!
(This was from SF patch #494582, "\index -> \indexii" version.)
Barry Warsaw [Thu, 20 Dec 2001 16:37:27 +0000 (16:37 +0000)]
test_parseaddr_empty(): New test for assuring that
Utils.parseaddr('<>') -- i.e. on an empty address, returns the empty
string. Built on rfc822, this used to return None.
Andrew M. Kuchling [Thu, 20 Dec 2001 16:33:45 +0000 (16:33 +0000)]
Update the documentation links
Remove reference to this being a draft
Andrew M. Kuchling [Thu, 20 Dec 2001 16:04:24 +0000 (16:04 +0000)]
Use the final patch/bug numbers
Guido van Rossum [Thu, 20 Dec 2001 15:56:23 +0000 (15:56 +0000)]
ZZZ.
Guido van Rossum [Thu, 20 Dec 2001 15:54:48 +0000 (15:54 +0000)]
SF patch #495358 (Artur Zaprzala): rfc822.AddressList and "<>" address
rfc822.AddressList incorrectly handles empty address.
"<>" is converted to None and should be "".
AddressList.__str__() fails on None.
I got an email with such an address and my program
failed processing it.
Example:
>>> import rfc822
>>> rfc822.AddressList("<>").addresslist
[('', None)]
>>> str(rfc822.AddressList("<>"))
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.1/rfc822.py", line 753, in __str__
return ", ".join(map(dump_address_pair,
self.addresslist))
TypeError: sequence item 0: expected string, None found
[His solution: in the internal routine AddrlistClass.getrouteaddr(),
initialize adlist to "".]
Guido van Rossum [Thu, 20 Dec 2001 13:19:36 +0000 (13:19 +0000)]
Another contributor.
Tim Peters [Thu, 20 Dec 2001 06:18:15 +0000 (06:18 +0000)]
Whitespace normalization.
Michael W. Hudson [Wed, 19 Dec 2001 22:09:09 +0000 (22:09 +0000)]
Apparently it's Cygwin with a capital C.
Fredrik Lundh [Wed, 19 Dec 2001 21:40:04 +0000 (21:40 +0000)]
partial merge with current pythonware codebase:
- use repr instead of implied str for doubles
- updated version number to 1.0.0 (for 2.2 final)
Neal Norwitz [Wed, 19 Dec 2001 20:44:13 +0000 (20:44 +0000)]
Fix a typo
Michael W. Hudson [Wed, 19 Dec 2001 19:49:58 +0000 (19:49 +0000)]
More cygwin news. This section is getting a bit long. Oh well.
Tim Peters [Wed, 19 Dec 2001 19:05:01 +0000 (19:05 +0000)]
SF bug #495021: Crash calling os.stat with a trailing backslash
Patch from Mark Hammond, plus code rearrangement and comments from me.
posix_do_stat(): Windows-specific code could try to free() stack
memory in some cases when a path ending with a forward or backward slash
was passed to os.stat().
Guido van Rossum [Wed, 19 Dec 2001 16:58:54 +0000 (16:58 +0000)]
Add test for pickling new-style class with custom metaclass.
Guido van Rossum [Wed, 19 Dec 2001 16:57:36 +0000 (16:57 +0000)]
Fix for SF bug #494904: Cannot pickle a class with a metaclass,
reported by Dan Parisien.
Guido van Rossum [Wed, 19 Dec 2001 16:56:54 +0000 (16:56 +0000)]
save(): Fix for SF bug #494904: Cannot pickle a class with a
metaclass, reported by Dan Parisien.
Objects that are instances of custom metaclasses, i.e. whose ob_type
is a subclass of PyType_Type, should be pickled the same as new-style
classes (objects whose ob_type is PyType_Type). This can't be done
through the existing dispatch switches, and the __reduce__ trick
doesn't work for these, since it finds the unbound __reduce__ for
instances of the class (inherited from PyBaseObject_Type). So check
explicitly using PyType_IsSubtype().
Guido van Rossum [Wed, 19 Dec 2001 16:55:02 +0000 (16:55 +0000)]
Pickler.save(): Fix for SF bug #494904: Cannot pickle a class with a
metaclass, reported by Dan Parisien.
Objects that are instances of custom metaclasses, i.e. whose class is
a subclass of 'type', should be pickled the same as new-style classes
(objects whose class is 'type'). This can't be done through a
dispatch table entry, and the __reduce__ trick doesn't work for these,
since it finds the unbound __reduce__ for instances of the class
(inherited from 'object'). So check explicitly using issubclass().
Fred Drake [Wed, 19 Dec 2001 16:54:23 +0000 (16:54 +0000)]
Add some additional tests that check more proxy behaviors.
Fred Drake [Wed, 19 Dec 2001 16:44:30 +0000 (16:44 +0000)]
proxy_compare(): Make sure that we unwrap both objects being compared if
both are proxy objects.
Fred Drake [Wed, 19 Dec 2001 16:42:15 +0000 (16:42 +0000)]
Fix the test control support for the pickle & cPickle tests so the tests run
under regrtest.
Guido van Rossum [Wed, 19 Dec 2001 16:38:29 +0000 (16:38 +0000)]
The test using class initarg failed, because it was lacking a
__safe_for_unpickling__ attribute.
Fred Drake [Wed, 19 Dec 2001 14:27:41 +0000 (14:27 +0000)]
Make the module docstring agree with reality: the module prvides the
"handler()" function, not the "handle()" function.
Jack Jansen [Wed, 19 Dec 2001 09:24:40 +0000 (09:24 +0000)]
When running regen for the plat directories we should use the BUILDEXT
extension, not the EXT one, as regen uses the python binary in the build
directory. Fixes #493959.
Tim Peters [Wed, 19 Dec 2001 04:41:35 +0000 (04:41 +0000)]
SF bug #494738: binascii_b2a_base64 overwrites memory.
binascii_b2a_base64(): We didn't allocate enough buffer space for very
short inputs (e.g., a 1-byte input can produce a 5-byte output, but we
only allocated 2 bytes). I expect that malloc overheads absorbed the
overrun in practice, but computing a correct upper bound is a very simple
change.
Tim Peters [Wed, 19 Dec 2001 04:11:07 +0000 (04:11 +0000)]
SF bug #494668: PUSH() should assert-fail on overflow.
eval_frame(): Added asserts to the top of the eval loop, to verify
that the eval stack pointer is in bounds, plus some comments.
Tim Peters [Tue, 18 Dec 2001 23:22:01 +0000 (23:22 +0000)]
TemporaryFileWrapper: fixed typo in new comment.
Martin v. Löwis [Tue, 18 Dec 2001 22:36:40 +0000 (22:36 +0000)]
Patch #494384: Disable more Unicode API if Unicode is not used.
Tim Peters [Tue, 18 Dec 2001 22:32:40 +0000 (22:32 +0000)]
TemporaryFileWrapper: cache the value of os.unlink for use by __del__,
to prevent mysterious errors at shutdown due to "os.unlink" turning into
"None.unlink".
Guido van Rossum [Tue, 18 Dec 2001 22:22:25 +0000 (22:22 +0000)]
Move the helper class _closedsocket *into* the _socketobject class.
This way, when a socket object is deleted after the socket module has
already been zapped by module shutdown, we don't get annoying warnings
about exceptions in __del__ methods.
Thomas Heller [Tue, 18 Dec 2001 21:08:15 +0000 (21:08 +0000)]
Recreated after source changes.
Just van Rossum [Tue, 18 Dec 2001 20:15:27 +0000 (20:15 +0000)]
Moved a bunch of routines from "blacklisted" to "graylisted", as they _are_
available in OSX (mach-o) but not in CarbonLib (neither on OSX or OS9).
Thomas Heller [Tue, 18 Dec 2001 20:13:40 +0000 (20:13 +0000)]
Second part of fix for bug [#483982] Python 2.2b2 bdist_wininst
crashes.
If no external zip-utility is found, the archive is created by the
zipfile module, which behaves different now than in 2.1: if the
zip-file is created in the root directory if the distribution, it will
contain an (empty) version of itself.
This triggered the above bug - so it's better to create the zip-file
far away in the TMP directory.
Fred Drake [Tue, 18 Dec 2001 16:32:30 +0000 (16:32 +0000)]
Add entry for the pydoc documentation.
Fred Drake [Tue, 18 Dec 2001 16:31:44 +0000 (16:31 +0000)]
Add documentation for the pydoc module; contributed by Ka-Ping Yee.
This closes SF patch #494622.
Fred Drake [Tue, 18 Dec 2001 16:31:08 +0000 (16:31 +0000)]
Add documentation for the help() built-in; contributed by Ka-Ping Yee.
This is part of SF patch #494622.
Fred Drake [Tue, 18 Dec 2001 15:51:55 +0000 (15:51 +0000)]
Merge in Ping's changes to the cgitb documentation, and add a version
annotation as well.
This closes SF patch #494582.
Jack Jansen [Tue, 18 Dec 2001 15:48:28 +0000 (15:48 +0000)]
Small change to allow for generation of QuickTime module for Windows.
Jack Jansen [Tue, 18 Dec 2001 15:39:38 +0000 (15:39 +0000)]
Updated to Universal Headers 3.4
Just van Rossum [Tue, 18 Dec 2001 12:53:47 +0000 (12:53 +0000)]
Added missing docstring
Just van Rossum [Tue, 18 Dec 2001 12:47:47 +0000 (12:47 +0000)]
Added support for tab controls and initial (incomplete) support
for DataBrowser controls.
Just van Rossum [Tue, 18 Dec 2001 12:35:57 +0000 (12:35 +0000)]
Patch #494553 by Donovan Preston: initial implementation
for GetEventParameter().
Tim Peters [Mon, 17 Dec 2001 18:26:19 +0000 (18:26 +0000)]
initxxsubtype(): Add a comment to make the magic clearer; I doubt it's
obvious to anyone except PyType_Ready's author <0.9 wink>.
Guido van Rossum [Mon, 17 Dec 2001 17:25:53 +0000 (17:25 +0000)]
Use PyType_Ready() for initialization of the ob_type field of our
types (the tp_base field must be initialized prior to that call).
Guido van Rossum [Mon, 17 Dec 2001 17:24:43 +0000 (17:24 +0000)]
Update comments about mpz, pointing to gmpy and mxNumber rather than
to the non-existing pympz (did that ever exist?).
Guido van Rossum [Mon, 17 Dec 2001 17:14:22 +0000 (17:14 +0000)]
- PyType_Ready(): Initialize the ob_type field to &PyType_Type if it's
NULL, so that you can call PyType_Ready() to initialize a type that
is to be separately compiled with C on Windows.
inherit_special(): Add a long comment explaining that you have to set
tp_new if your base class is PyBaseObject_Type.
Guido van Rossum [Mon, 17 Dec 2001 16:07:06 +0000 (16:07 +0000)]
Don't use Latex \code{...} in docstrings.
Barry Warsaw [Mon, 17 Dec 2001 15:40:24 +0000 (15:40 +0000)]
Get rid of the stupid backslash in front of the column zero open
paren. This was there to worm around a stupid XEmacs bug, but since I
can't tickle the bug in newer XEmacsen (just tried w/21.4.5) it's
possible the problem has been fixed. We shouldn't have to be working
around editor bugs anyway.
If it crops up again, I'll report it (again) to the XEmacs crowd.
Jack Jansen [Mon, 17 Dec 2001 11:47:27 +0000 (11:47 +0000)]
There's a new include file AEInteraction.h which contains AESend and friends.
Jack Jansen [Mon, 17 Dec 2001 11:46:50 +0000 (11:46 +0000)]
TickCount moved to a different header file. We manually added it back in here, for conveninece.
Sjoerd Mullender [Mon, 17 Dec 2001 11:39:56 +0000 (11:39 +0000)]
Portability fix: Not every compiler implements the extension of
unescaped newlines in strings.
Steve Purcell [Mon, 17 Dec 2001 10:13:17 +0000 (10:13 +0000)]
Synch with pyunit CVS:
- Adds Fred's patch 487662: "Better error message for assertEqual"
- Removed small portion of code unused after Guido's patch
490119: "Don't treat ^C as error"