Fred Drake [Wed, 22 May 2002 20:44:03 +0000 (20:44 +0000)]
Remove spurious "()" from the __str__() description.
Barry Warsaw [Wed, 22 May 2002 20:39:43 +0000 (20:39 +0000)]
Jack's documentation for the U mode character on the file()
constructor, vetted by Barry.
Barry Warsaw [Wed, 22 May 2002 20:37:53 +0000 (20:37 +0000)]
file_doc: Add some description of the U mode character, but only when
WITH_UNIVERSAL_NEWLINES is enabled.
Jason Tishler [Wed, 22 May 2002 16:46:15 +0000 (16:46 +0000)]
Patch #491107: Cygwin setup.py import workaround patch
mwh wrote:
> Jason, feel free to complain if you think this isn't
> the right thing to do.
I guess that I would like to complain and reopen this
issue. :,) I cannot build a Python 2.2.1 with threads
under Cygwin without this patch even though I'm using
Michael's static _socket workaround. This is due to the
Cygwin fork() problem with DLL base address conflicts
that are triggered by importing many modules during the
setup.py run. Similar problems can also be caused by
regrtest.py.
Even after my rebase patch is accepted into Cygwin's
setup.exe, I feel this patch will still be necessary.
This is because during the build process, the shared
extensions (i.e., DLLs) will not be rebased yet. Hence,
the potential for DLL base address conflicts will exist.
One way to obviate this patch is to push the rebase
functionality into Cygwin's ld. Unfortunately, I don't
think this is likely to happen. Another possible way,
is to use the yet to be defined and implemented unload
module functionality:
http://mail.python.org/pipermail/python-dev/2001-December/019028.html
Jack Jansen [Wed, 22 May 2002 15:08:58 +0000 (15:08 +0000)]
Regenerated from new Universal Headers.
Jack Jansen [Wed, 22 May 2002 15:02:08 +0000 (15:02 +0000)]
Allow the script to have not only a TEXT filetype but also a null filetype (to enable files to be created from the Unix side of OSX to be droppable on the MacPython interpreter).
Jack Jansen [Wed, 22 May 2002 14:31:48 +0000 (14:31 +0000)]
Replaced lots of PyMem_DEL() calls with PyObject_DEL().
Jack Jansen [Wed, 22 May 2002 14:31:10 +0000 (14:31 +0000)]
Enable WITH_PYMALLOC.
Jack Jansen [Wed, 22 May 2002 14:30:37 +0000 (14:30 +0000)]
Added 2 more addresses to send release notifications to.
Fred Drake [Wed, 22 May 2002 02:44:24 +0000 (02:44 +0000)]
Added a version annotation for StringTypes.
Added documentation for BooleanType.
Barry Warsaw [Wed, 22 May 2002 01:52:33 +0000 (01:52 +0000)]
Bump to version 2.0.4
Barry Warsaw [Wed, 22 May 2002 01:52:10 +0000 (01:52 +0000)]
getaddresses(): Like the change in rfc822.py, this one needs to access
the AddressList.addresslist attribute directly.
Also, add a test case for the email.Utils.getaddresses() interface.
Barry Warsaw [Wed, 22 May 2002 01:22:46 +0000 (01:22 +0000)]
Minor typo: Message.getall() -> Message.get_all()
Skip Montanaro [Tue, 21 May 2002 23:17:12 +0000 (23:17 +0000)]
add BooleanType
Guido van Rossum [Tue, 21 May 2002 20:56:15 +0000 (20:56 +0000)]
In both spilldata() functions, pretend that the docstring for
non-callable objects is always None. This makes for less confusing
output and fixes the problem reported in SF patch #550290.
Barry Warsaw [Tue, 21 May 2002 19:46:13 +0000 (19:46 +0000)]
Message.getaddrlist(): Use the AddressList.addresslist attribute
instead of calling the getaddrlist() method, since the latter doesn't
work with multiple calls (it will return the empty list for the second
and subsequent calls).
Closes SF bug #555035. Include a unittest.
Raymond Hettinger [Tue, 21 May 2002 18:19:49 +0000 (18:19 +0000)]
Patch 543387. Document deprecation of complex %, //,and divmod().
Raymond Hettinger [Tue, 21 May 2002 17:22:02 +0000 (17:22 +0000)]
Patch 533291. Deprecate None return form of __reduce__.
Raymond Hettinger [Tue, 21 May 2002 17:00:20 +0000 (17:00 +0000)]
Patch 543222. Disable script bindings in shell window.
Fred Drake [Tue, 21 May 2002 16:27:20 +0000 (16:27 +0000)]
Add additional comments on the use of \deprecated.
Neil Schemenauer [Tue, 21 May 2002 15:53:24 +0000 (15:53 +0000)]
Add IS_TRACKED and IS_MOVED macros. This makes the logic a little more clear.
Raymond Hettinger [Tue, 21 May 2002 15:14:57 +0000 (15:14 +0000)]
Patch 549187. Improve string formatting error message.
Fred Drake [Tue, 21 May 2002 14:28:22 +0000 (14:28 +0000)]
Add availability information for a couple of the types, and notes on writing
string-type tests for versions of Python built without Unicode support.
Guido van Rossum [Tue, 21 May 2002 12:38:46 +0000 (12:38 +0000)]
Another one.
Raymond Hettinger [Tue, 21 May 2002 12:26:59 +0000 (12:26 +0000)]
Patches 558535. The standard Windows binding for Edit Select All
is Control-A rather than Alt-A.
Fred Drake [Tue, 21 May 2002 03:49:00 +0000 (03:49 +0000)]
Munge the RCS keywords to avoid updates, so the version number matches that
of the PyUNIT version of the same file. This helps people understand that
this version is the same as the version from the independent PyUNIT
release (confusion was indicated on the PyUNIT mailing list).
Michael W. Hudson [Mon, 20 May 2002 17:29:46 +0000 (17:29 +0000)]
Use types.StringTypes instead of explicit (str, unicode) list
Michael W. Hudson [Mon, 20 May 2002 14:54:17 +0000 (14:54 +0000)]
Guess what? --disable-unicode proofing.
This is a strange test.
Michael W. Hudson [Mon, 20 May 2002 14:48:16 +0000 (14:48 +0000)]
More --disable-unicode stuff.
I'm getting better at vi!
Michael W. Hudson [Mon, 20 May 2002 14:30:06 +0000 (14:30 +0000)]
Use types.StringTypes instead of (types.StringType, types.UnicodeType) --
works better (at all!) in --disable-unicode builds.
Bugfix candidate, probably.
Michael W. Hudson [Mon, 20 May 2002 14:24:53 +0000 (14:24 +0000)]
tolerate --disable-unicode...
Michael W. Hudson [Mon, 20 May 2002 14:22:28 +0000 (14:22 +0000)]
More mindless --disable-unicode proofing.
Michael W. Hudson [Mon, 20 May 2002 14:15:42 +0000 (14:15 +0000)]
easy --disable-unicode proofing.
Michael W. Hudson [Mon, 20 May 2002 13:56:11 +0000 (13:56 +0000)]
Fix for
[ 558249 ] softspace vs --disable-unicode
And #endif was in the wrong place.
Bugfix candidate, almost surely.
I think I will embark on squashing test failures in --disable-unicode builds --
a Real Bug was hiding under them.
Barry Warsaw [Mon, 20 May 2002 00:14:24 +0000 (00:14 +0000)]
Add a bit of news about the email package fixes.
Barry Warsaw [Sun, 19 May 2002 23:53:38 +0000 (23:53 +0000)]
A test message w/ CRLF line endings
Barry Warsaw [Sun, 19 May 2002 23:52:54 +0000 (23:52 +0000)]
Add two new tests of recent email package fixes: CRLF line endings,
and explicit maxlinelen arguments to the Header constructor.
Barry Warsaw [Sun, 19 May 2002 23:51:50 +0000 (23:51 +0000)]
I've thought about it some more, and I believe it is proper for the
email package's Parser to handle the three common line endings.
Certain protocols such as IMAP define CRLF line endings and it doesn't
make sense for the client app to have to normalize the line endings
before handing it message off to the Parser.
_parsebody(): Be more flexible in the matching of line endings for
finding the MIME separators. Accept any of \r, \n and \r\n. Note
that we do /not/ change the line endings in the payloads, we just
accept any of those three around MIME boundaries.
Barry Warsaw [Sun, 19 May 2002 23:47:53 +0000 (23:47 +0000)]
Fixed a bug in the splitting of lines, and improved the splitting for
single byte character sets. Also fixed a semantic problem with the
constructor's default arguments. Specifically,
__init__(): Change the maxlinelen argument default to None instead of
MAXLINELEN. The semantics should have been (and now are) that if
maxlinelen is given it is always honored. If it isn't given, but
header_name is given, then the maximum line length is calculated. If
neither are given then the default 76 characters is used.
_split(): If the character set is a single byte character set then we
can split the line at the maxlinelen because we know that encoding the
header won't increase its length. If the charset isn't a single byte
charset then we use the quicker divide-and-conquer line splitting
algorithm as before.
Barry Warsaw [Sun, 19 May 2002 23:44:19 +0000 (23:44 +0000)]
Complete a merge of the mimelib project and the Python cvs codebases
for the email package. The former is now just a shell project that
has some extra files for packaging for independent use (e.g. setup.py
and README).
Added a compatibility layer so that the same API can be used in Python
2.1 and 2.2/2.3 with the major differences shuffled off into helper
modules (_compat21.py and _compat22.py).
Also bumped the package version number to 2.0.3 for some fixes to be
checked in momentarily.
Raymond Hettinger [Sat, 18 May 2002 00:25:10 +0000 (00:25 +0000)]
Added Mitchell Surface's regression tests for base64. Closes patch #550002.
Guido van Rossum [Thu, 16 May 2002 14:45:37 +0000 (14:45 +0000)]
Typo.
Fred Drake [Thu, 16 May 2002 13:48:14 +0000 (13:48 +0000)]
Fix broken reference, minor clarification.
Fred Drake [Thu, 16 May 2002 13:48:01 +0000 (13:48 +0000)]
Typo: build -> built
Raymond Hettinger [Thu, 16 May 2002 13:42:48 +0000 (13:42 +0000)]
Added (with GvR's endorsement) Matthew Dixon Cowles
for his service on the Python-Help maillist.
Raymond Hettinger [Thu, 16 May 2002 04:28:44 +0000 (04:28 +0000)]
Patch 547037. Corrected documentation to match
actual module behavior for adding newlines.
Martin v. Löwis [Wed, 15 May 2002 18:24:06 +0000 (18:24 +0000)]
Back out #555929
Raymond Hettinger [Wed, 15 May 2002 15:45:25 +0000 (15:45 +0000)]
Added missing index entries for mapping methods. Closes patch #548693.
Michael W. Hudson [Wed, 15 May 2002 13:04:53 +0000 (13:04 +0000)]
This is patch
[ 555382 ] test_array v.s. --disable-unicode
+ MvL's suggestions. Just the 32 failing tests in --disable-unicode builds
now...
Jason Tishler [Wed, 15 May 2002 11:51:33 +0000 (11:51 +0000)]
Patch #555929: Cygwin AH_BOTTOM cleanup patch
This patch complies with the following request found
near the top of configure.in:
# This is for stuff that absolutely must end up in pyconfig.h.
# Please use pyport.h instead, if possible.
I tested this patch under Cygwin, Win32, and Red
Hat Linux. Python built and ran successfully on
each of these platforms.
Jason Tishler [Wed, 15 May 2002 11:32:35 +0000 (11:32 +0000)]
Patch #553678: Cygwin Makefile.pre.in vestige patch
This patch removes a vestige part of the Cygwin make rules
that didn't quite make it over during the flattening of the
Makefiles. In its current form, it creates a def file but
incorrectly calls it libpython$(VERSION).dll.a which
immediately gets overwritten by the next command.
Obviously, this is useless. It appears, it was useless
in the old nested Makefile structure too. :,)
Raymond Hettinger [Wed, 15 May 2002 02:56:03 +0000 (02:56 +0000)]
Added docstrings excerpted from Python Library Reference.
Closes patch 556161.
Chui Tey [Tue, 14 May 2002 23:45:14 +0000 (23:45 +0000)]
Fixed bug: Split RPC message into two parts instead of three
Fred Drake [Tue, 14 May 2002 22:02:07 +0000 (22:02 +0000)]
Minor wording changes, plus correct a typo.
Fred Drake [Tue, 14 May 2002 15:50:11 +0000 (15:50 +0000)]
Simplify code to remove an unnecessary test.
Guido van Rossum [Tue, 14 May 2002 14:08:12 +0000 (14:08 +0000)]
Use spaces, not tabs for indents.
Raymond Hettinger, beware! This caused the Unix install to fail!
Raymond Hettinger [Tue, 14 May 2002 08:51:33 +0000 (08:51 +0000)]
Added tests for new degree/radian conversions.
Raymond Hettinger [Tue, 14 May 2002 06:40:34 +0000 (06:40 +0000)]
Closes patch 529408 deprecating random.stdgamma().
Barry Warsaw [Tue, 14 May 2002 02:13:30 +0000 (02:13 +0000)]
smtp_RCPT(): Removed a somewhat embarrassing debugging line, found by
Scot Stevenson. Could be a bug fix candidate, but probably doesn't
matter much unless a certain blue-nosed cat suddenly becomes corporeal
and starts emailing some stmp.py (sic) fronted mailer.
Raymond Hettinger [Mon, 13 May 2002 23:49:13 +0000 (23:49 +0000)]
Closes SF bug 527139. Brings docs inline with random.py 1.29
which fixes the unnecessarily restricted method domain.
Raymond Hettinger [Mon, 13 May 2002 23:40:14 +0000 (23:40 +0000)]
Closes SF bug 527139. Moved temp variables inside guard.
Raymond Hettinger [Mon, 13 May 2002 22:40:38 +0000 (22:40 +0000)]
Correct gammavariate's method name and domain.
Partial solution to SF bug 527139.
Jack Jansen [Mon, 13 May 2002 21:23:10 +0000 (21:23 +0000)]
Added typechecking to the individual python->CF converters, so we can use them in the CF object initializers safely.
Jack Jansen [Mon, 13 May 2002 21:21:49 +0000 (21:21 +0000)]
Added CFPreferences support. Added these as functions, not methods, which seemed counter-intuitive.
Guido van Rossum [Mon, 13 May 2002 18:29:46 +0000 (18:29 +0000)]
Jim Fulton reported a segfault in dir(). A heavily proxied object
returned a proxy for __class__ whose __bases__ was also a proxy. The
merge_class_dict() helper for dir() assumed incorrectly that __bases__
would always be a tuple and used the in-line tuple API on the proxy.
I will backport this to 2.2 as well.
Guido van Rossum [Mon, 13 May 2002 14:58:02 +0000 (14:58 +0000)]
SF 554663. Add OpenBSD3. Bugfix candidate if anyone cares.
Guido van Rossum [Mon, 13 May 2002 14:55:33 +0000 (14:55 +0000)]
SF 554073. Fix typo in error reporting of unrecognized character
following IAC. Bugfix candidate if anyone cares.
Michael W. Hudson [Mon, 13 May 2002 10:14:59 +0000 (10:14 +0000)]
array_tounicode isn't defined in --disable-unicode builds...
I have a patch to make the test work too, but it's not pretty so
I'll submit it to sf.
Michael W. Hudson [Mon, 13 May 2002 09:42:16 +0000 (09:42 +0000)]
Make StringIO work in --disable-unicode builds...
Walter Dörwald [Mon, 13 May 2002 09:00:41 +0000 (09:00 +0000)]
Add #ifdef PY_USING_UNICODE sections, so that
stringobject.c compiles again with --disable-unicode.
Fixes SF bug http://www.python.org/sf/554912
Raymond Hettinger [Mon, 13 May 2002 04:17:32 +0000 (04:17 +0000)]
Noted SF patch 552452 adding degree/radian conversions to mathmodule.c.
Raymond Hettinger [Mon, 13 May 2002 03:56:10 +0000 (03:56 +0000)]
Added degrees() and radians() to mathmodule. Closes patch 552452 and
feature request 426539.
Raymond Hettinger [Mon, 13 May 2002 03:55:01 +0000 (03:55 +0000)]
Adds tests for degrees() and radians() functions added to mathmodule.
Closes patch 552452 and feature request 426539.
Raymond Hettinger [Mon, 13 May 2002 03:52:47 +0000 (03:52 +0000)]
Added degrees() and radians() to mathmodule. Closing patch 552452 and
feature request 426539.
Jack Jansen [Sun, 12 May 2002 22:04:14 +0000 (22:04 +0000)]
- Better exception when a NULL CF object is encountered.
- Manually generate a routine with funny error semantics.
Barry Warsaw [Sun, 12 May 2002 17:37:46 +0000 (17:37 +0000)]
(py-execute-region): Do the blank line skipping inside the
save-excursion so that when the function is complete, point is
preserved.
Tim Peters [Sun, 12 May 2002 07:19:38 +0000 (07:19 +0000)]
SF bug 555042: zip() may trigger MemoryError.
NOT a bugfix candidate: this is a fix to an optimization introduced
in 2.3.
Raymond Hettinger [Sun, 12 May 2002 06:07:21 +0000 (06:07 +0000)]
Noted change in ftplib 1.68 closing SF patch 553277.
Raymond Hettinger [Sun, 12 May 2002 05:53:51 +0000 (05:53 +0000)]
Closes SF patch 553277. Per GvR, reverting to original patch -- the way to
test if 'callable' has not been supplied is to test for None instead of
False. The previous correction to 'if callable()' was wrong because an unusable
callback would be ignored rather than raising an exception.
Raymond Hettinger [Sun, 12 May 2002 03:09:25 +0000 (03:09 +0000)]
Closes SF patch: 552468.
Type class unification invalidated the statement: x.__getitem__[i] is not equivalent to x[i].
Fred Drake [Sat, 11 May 2002 03:36:26 +0000 (03:36 +0000)]
Fix typo: ptread --> pthread
Closes SF bug #554644.
Jack Jansen [Fri, 10 May 2002 22:51:58 +0000 (22:51 +0000)]
- Get data from CFData objects as Python strings and vv.
- Started on supporting CFPropertyLists.
Jeremy Hylton [Fri, 10 May 2002 21:00:35 +0000 (21:00 +0000)]
Use isinstance() in preference to comparison of type by is.
Andrew M. Kuchling [Fri, 10 May 2002 21:00:05 +0000 (21:00 +0000)]
Give the enumerate() PEP a section of its own
Add some credits
Fill in a link
Greg Ward [Fri, 10 May 2002 14:45:59 +0000 (14:45 +0000)]
[from Oct 2000]
Start fleshing out the "Examples" section.
Greg Ward [Fri, 10 May 2002 14:42:10 +0000 (14:42 +0000)]
[from Oct 2000]
The zipfile module has been in the standard library for some time now.
Greg Ward [Fri, 10 May 2002 14:40:22 +0000 (14:40 +0000)]
[from Oct 2000]
Clarify explanations of header file search directories.
Fred Drake [Fri, 10 May 2002 12:37:56 +0000 (12:37 +0000)]
Fix markup error that suppressed space.
Closes SF bug #554257. Not relevant to older releases.
Andrew M. Kuchling [Thu, 9 May 2002 14:33:18 +0000 (14:33 +0000)]
Fix typo
Jack Jansen [Wed, 8 May 2002 22:13:51 +0000 (22:13 +0000)]
Fixed string and dict conversion, and implemented booleans and numbers (int and float). I think we now have enough CFType support to start on plists and CFpreferences!
Transparent handling of unknown CFType objects still TBD.
Jack Jansen [Wed, 8 May 2002 15:29:33 +0000 (15:29 +0000)]
Partial fix for string handling. Null byte TBD.
Neil Schemenauer [Wed, 8 May 2002 14:14:41 +0000 (14:14 +0000)]
Remove news about PyMalloc_*. Do we need to say anything about
pymalloc?
Andrew M. Kuchling [Wed, 8 May 2002 13:39:03 +0000 (13:39 +0000)]
Updates and rewriting
Martin v. Löwis [Wed, 8 May 2002 08:59:59 +0000 (08:59 +0000)]
Patch #553230: Create LIBDIR if necessary. Bugfix candidate.
Martin v. Löwis [Wed, 8 May 2002 08:56:33 +0000 (08:56 +0000)]
Patch #553277: Accept callbacks that are callable, not callbacks that are true.
Martin v. Löwis [Wed, 8 May 2002 08:51:29 +0000 (08:51 +0000)]
Patch #553403: Fix typo.
Martin v. Löwis [Wed, 8 May 2002 08:49:27 +0000 (08:49 +0000)]
Patch #551410: Implement tp_getiter.
Martin v. Löwis [Wed, 8 May 2002 08:44:21 +0000 (08:44 +0000)]
Patch #552433: Special-case tuples. Avoid sub-type checking for lists.
Avoid checks for negative indices and duplicate checks for support of
the sequence protocol.
Martin v. Löwis [Wed, 8 May 2002 07:16:37 +0000 (07:16 +0000)]
Patch #551011: Fix compilation problems with Cygwin.
Jack Jansen [Tue, 7 May 2002 23:00:03 +0000 (23:00 +0000)]
More support for bridging between Python and CoreFoundation objects. Still untested.