Guido van Rossum [Mon, 27 May 2002 13:35:05 +0000 (13:35 +0000)]
Use self.__class__ to instantiate a TreeNode item recursively, to
allow subclassing.
Chui Tey [Sun, 26 May 2002 13:36:41 +0000 (13:36 +0000)]
GvR's rpc patch
Fred Drake [Sat, 25 May 2002 20:28:46 +0000 (20:28 +0000)]
Define the "all" target more reasonably, but retain "html" as the default
target.
Guido van Rossum [Fri, 24 May 2002 21:40:08 +0000 (21:40 +0000)]
Fix for SF bug 551412. When _PyType_Lookup() is called on a type
whose tp_mro hasn't been initialized, it would dump core. Fix this by
checking for NULL and calling PyType_Ready(). Will fix this in 2.2.1
too.
Andrew M. Kuchling [Fri, 24 May 2002 21:08:58 +0000 (21:08 +0000)]
Mention math.degrees() and math.radians()
Other minor rewrites
Guido van Rossum [Fri, 24 May 2002 19:01:59 +0000 (19:01 +0000)]
- A new type object, 'string', is added. This is a common base type
for 'str' and 'unicode', and can be used instead of
types.StringTypes, e.g. to test whether something is "a string":
isinstance(x, string) is True for Unicode and 8-bit strings. This
is an abstract base class and cannot be instantiated directly.
Guido van Rossum [Fri, 24 May 2002 18:47:47 +0000 (18:47 +0000)]
Add a safeguard against setting the class to something with a
different free or alloc slot.
Guido van Rossum [Fri, 24 May 2002 17:58:05 +0000 (17:58 +0000)]
Don't require Unicode support.
Andrew M. Kuchling [Fri, 24 May 2002 17:06:17 +0000 (17:06 +0000)]
Move really open-ended XXX items into comments
Remove 1.5.2 reference: who cares?
Guido van Rossum [Fri, 24 May 2002 15:47:06 +0000 (15:47 +0000)]
Disambiguate the grammar for backtick.
The old syntax suggested that a trailing comma was OK inside backticks,
but in fact (due to ideosyncrasies of pgen) it was not. Fix the grammar
to avoid the ambiguity. Fred: you may want to update the refman.
Guido van Rossum [Fri, 24 May 2002 15:24:38 +0000 (15:24 +0000)]
Add missing \ to macro definition only used when universal newlines
are disabled.
Raymond Hettinger [Thu, 23 May 2002 23:58:17 +0000 (23:58 +0000)]
Whitespace normalized.
Jack Jansen [Thu, 23 May 2002 22:34:18 +0000 (22:34 +0000)]
Allow the shared library initialization routine to be overridden with an initialize=xxx argument.
Should fix #492465.
Jack Jansen [Thu, 23 May 2002 22:18:13 +0000 (22:18 +0000)]
Added missing dirs to LIBSUBDIRS, and reformatted it so it's easier to read
and maintain. Fixes #557482.
Fred Drake [Thu, 23 May 2002 21:07:19 +0000 (21:07 +0000)]
Markup adjustments; fix the names of modules referenced in an expression.
Tim Peters [Thu, 23 May 2002 20:05:40 +0000 (20:05 +0000)]
John Aycock correctly pointed out that the grammar for
"power" was formally ambiguous. Here's his fix.
Raymond Hettinger [Thu, 23 May 2002 19:44:49 +0000 (19:44 +0000)]
Deprecated Random.cunifvariate clearing bug 506647. Also, added docstrings.
Barry Warsaw [Thu, 23 May 2002 19:42:16 +0000 (19:42 +0000)]
(py-goto-statement-below): Watch out for landing in a triple quoted
string with text in column zero. Skip that stuff when looking for the
"first statement following the statement containing point".
Fred Drake [Thu, 23 May 2002 19:41:25 +0000 (19:41 +0000)]
Added missing dependency on the refcount data file.
Tim Peters [Thu, 23 May 2002 19:25:59 +0000 (19:25 +0000)]
Link with the right C library! This has always been wrong (& my fault).
Fred Drake [Thu, 23 May 2002 17:59:16 +0000 (17:59 +0000)]
Use Perl function prototypes to help avoid definition/usage mismatches
while modifying these files.
Minor style changes to make the use of "my" with arrays more consistent.
Fred Drake [Thu, 23 May 2002 16:03:16 +0000 (16:03 +0000)]
Add refcount information for PySequence_ITEM().
Fred Drake [Thu, 23 May 2002 16:02:28 +0000 (16:02 +0000)]
Add version annotation for PySequence_ITEM().
Tim Peters [Thu, 23 May 2002 15:51:20 +0000 (15:51 +0000)]
Use function instead of macro spellings for PyObject_memorystuff.
Tim Peters [Thu, 23 May 2002 15:49:38 +0000 (15:49 +0000)]
Whitespace normalization.
Tim Peters [Thu, 23 May 2002 15:15:30 +0000 (15:15 +0000)]
Whitespace normalization.
Barry Warsaw [Thu, 23 May 2002 03:21:01 +0000 (03:21 +0000)]
parseaddr(): Fixed in the same way that Message.getaddrlist() was
fixed (re: SF bug #555035). Include a unittest.
Skip Montanaro [Thu, 23 May 2002 01:43:05 +0000 (01:43 +0000)]
force gzip module to open files using 'b'inary mode.
closes patch #536278.
Neal Norwitz [Wed, 22 May 2002 23:19:17 +0000 (23:19 +0000)]
Closes: #556025 seg fault when doing list(xrange(1e9))
A MemoryError is now raised when the list cannot be created.
There is a test, but as the comment says, it really only
works for 32 bit systems. I don't know how to improve
the test for other systems (ie, 64 bit or systems
where the data size != addressable size,
e.g. 64 bit data, but 48 bit addressable memory)
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.