]> granicus.if.org Git - python/log
python
22 years agoWrap a couple of long lines.
Fred Drake [Fri, 15 Mar 2002 14:37:23 +0000 (14:37 +0000)]
Wrap a couple of long lines.

22 years agoCorrected _localized_name.__getitem__ based on code in patch 503202 (which I
Skip Montanaro [Fri, 15 Mar 2002 13:52:43 +0000 (13:52 +0000)]
Corrected _localized_name.__getitem__ based on code in patch 503202 (which I
thought was just a bug report, so didn't notice - doh!).  This handles
slicing, which v 1.23 didn't.

22 years agoPatch #527427: minidom fails to use NodeList sometimes.
Martin v. Löwis [Fri, 15 Mar 2002 13:51:59 +0000 (13:51 +0000)]
Patch #527427: minidom fails to use NodeList sometimes.

22 years agoSkip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowd...
Jack Jansen [Fri, 15 Mar 2002 13:50:54 +0000 (13:50 +0000)]
Skip test_longexp for MacPython on Mac OS X. It triggers a pathological realloc slowdown. Some tests with shorter expressions lead me to the conclusion that it will eventually finish, but it may take a few weeks:-)

2.2.1 candidate.

22 years agoPatch 527434: Avoid double inclusion of thread.o on Sol2.8.
Martin v. Löwis [Fri, 15 Mar 2002 13:48:21 +0000 (13:48 +0000)]
Patch  527434: Avoid double inclusion of thread.o on Sol2.8.

22 years agoIf no webbrowsers were found _tryorder would be empty, cmd would never be set and...
Jack Jansen [Fri, 15 Mar 2002 13:47:32 +0000 (13:47 +0000)]
If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed.

2.2.1 candidate.

22 years agoPatch #517521: Consider byte strings before Unicode strings
Martin v. Löwis [Fri, 15 Mar 2002 13:40:30 +0000 (13:40 +0000)]
Patch #517521: Consider byte strings before Unicode strings
in PyObject_Get/SetAttr.

22 years ago....
Michael W. Hudson [Fri, 15 Mar 2002 10:21:59 +0000 (10:21 +0000)]
....

22 years agoFix
Michael W. Hudson [Fri, 15 Mar 2002 10:18:58 +0000 (10:18 +0000)]
Fix

[ 530236 ] os.py assumes existence of statvfs_resul

This was pretty dense of me.  Sorry.

2.2.1 candidate.

22 years agoInclude Python.h first. Fixes #530159.
Martin v. Löwis [Fri, 15 Mar 2002 09:16:40 +0000 (09:16 +0000)]
Include Python.h first. Fixes #530159.

22 years agomake _localized_name instances work more like the tuples they replaced. In
Skip Montanaro [Fri, 15 Mar 2002 04:08:38 +0000 (04:08 +0000)]
make _localized_name instances work more like the tuples they replaced.  In
particular, negative indexes work and they are limited by the actual length
of the names they represent (weekday and month names).  This closes bug
#503202.

22 years agoadded test case to catch index errors with _localized_name class
Skip Montanaro [Fri, 15 Mar 2002 03:57:04 +0000 (03:57 +0000)]
added test case to catch index errors with _localized_name class

22 years agofirst cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.
Skip Montanaro [Fri, 15 Mar 2002 02:54:03 +0000 (02:54 +0000)]
first cut at skip-list for hp-ux 11 based upon input from Bill Lawler at HP.

22 years agoRemove duplicate "import os"
Neal Norwitz [Thu, 14 Mar 2002 23:48:18 +0000 (23:48 +0000)]
Remove duplicate "import os"

22 years agoModifed for new included expat.
Jack Jansen [Thu, 14 Mar 2002 23:14:43 +0000 (23:14 +0000)]
Modifed for new included expat.

22 years agoUpdated for new included expat and new waste.
Jack Jansen [Thu, 14 Mar 2002 23:13:33 +0000 (23:13 +0000)]
Updated for new included expat and new waste.

22 years ago"Fix" for SF bug #520644: __slots__ are not pickled.
Guido van Rossum [Thu, 14 Mar 2002 23:05:54 +0000 (23:05 +0000)]
"Fix" for SF bug #520644: __slots__ are not pickled.

As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__.  This is done by adding a bozo __getstate__
that always raises TypeError.

Bugfix candidate (also the checkin to typeobject.c, of course).

22 years ago"Fix" for SF bug #520644: __slots__ are not pickled.
Guido van Rossum [Thu, 14 Mar 2002 23:03:14 +0000 (23:03 +0000)]
"Fix" for SF bug #520644: __slots__ are not pickled.

As promised in my response to the bug report, I'm not really fixing
it; in fact, one could argule over what the proper fix should do.
Instead, I'm adding a little magic that raises TypeError if you try to
pickle an instance of a class that has __slots__ but doesn't define or
override __getstate__.  This is done by adding a bozo __getstate__
that always raises TypeError.

22 years agoUpdate master Windows buildno list to reflect impending 2.2.1c1.
Tim Peters [Thu, 14 Mar 2002 22:48:50 +0000 (22:48 +0000)]
Update master Windows buildno list to reflect impending 2.2.1c1.

22 years agoNews about zlib-1.1.4.
Tim Peters [Thu, 14 Mar 2002 19:06:01 +0000 (19:06 +0000)]
News about zlib-1.1.4.

22 years agoupdate text to refer to ServerProxy class in preference to Server, which is
Skip Montanaro [Thu, 14 Mar 2002 17:35:25 +0000 (17:35 +0000)]
update text to refer to ServerProxy class in preference to Server, which is
only retained for backward compatibility with older versions of the library.

22 years agoMove to zlib 1.1.4 on Windows (the new version that squashes the "double
Tim Peters [Wed, 13 Mar 2002 21:51:55 +0000 (21:51 +0000)]
Move to zlib 1.1.4 on Windows (the new version that squashes the "double
free" glitch).
Bugfix candidate -- I'll backpatch this into 2.2.1 later this week.

22 years agoDescribe how to support the iterator protocol in extension types.
Fred Drake [Wed, 13 Mar 2002 03:55:11 +0000 (03:55 +0000)]
Describe how to support the iterator protocol in extension types.
This closes SF bug #420851.

22 years agoSF #515015, raise exception if code not found in findsource()
Neal Norwitz [Wed, 13 Mar 2002 03:14:26 +0000 (03:14 +0000)]
SF #515015, raise exception if code not found in findsource()

22 years agoExtend the list of special characters and magic markup used to produce them
Fred Drake [Wed, 13 Mar 2002 02:48:24 +0000 (02:48 +0000)]
Extend the list of special characters and magic markup used to produce them
to include various characters used in code samples, URLs, and other special
contexts.
This closes SF bug #525684.

22 years agoChange the way \textasciitilde is implemented so it works more consistently
Fred Drake [Wed, 13 Mar 2002 02:44:50 +0000 (02:44 +0000)]
Change the way \textasciitilde is implemented so it works more consistently
(dropping tildes into data that still goes through LaTeX-like processing is
a bad idea).

22 years agoVerify arguments for nl_langinfo. Fixes #528879.
Martin v. Löwis [Tue, 12 Mar 2002 22:05:02 +0000 (22:05 +0000)]
Verify arguments for nl_langinfo. Fixes #528879.

22 years agoChange the example code to prefer PyModule_Add*() instead of using the
Fred Drake [Tue, 12 Mar 2002 21:49:44 +0000 (21:49 +0000)]
Change the example code to prefer PyModule_Add*() instead of using the
module dictionary directly.  Also, be more careful about not re-initializing
globals in the event of re-initialization of a C extension.

22 years agoUpdate docstrings to use te attribute names of the new structures returned
Fred Drake [Tue, 12 Mar 2002 21:38:49 +0000 (21:38 +0000)]
Update docstrings to use te attribute names of the new structures returned
by stat and time functions.
This closes SF patch #523271.

22 years agoTest for the fix I just checked in to moduleobject.c.
Guido van Rossum [Tue, 12 Mar 2002 20:43:31 +0000 (20:43 +0000)]
Test for the fix I just checked in to moduleobject.c.

Bugfix candidate.

22 years agoFix for SF bug #529050 - ModuleType.__new__ crash.
Guido van Rossum [Tue, 12 Mar 2002 20:37:02 +0000 (20:37 +0000)]
Fix for SF bug #529050 - ModuleType.__new__ crash.

There were several places that assumed the md_dict field was always
set, but it needn't be.  Fixed these to be more careful.

I changed PyModule_GetDict() to initialize md_dict to a new dictionary
if it's NULL.

Bugfix candidate.

22 years agoAdd a note that Py_None needs the same reference count treatment as any
Fred Drake [Tue, 12 Mar 2002 20:12:54 +0000 (20:12 +0000)]
Add a note that Py_None needs the same reference count treatment as any
other PyObject *.
This closes SF bug #494007.

22 years ago"level" keyword argument in example should be "stacklevel".
Fred Drake [Tue, 12 Mar 2002 19:49:31 +0000 (19:49 +0000)]
"level" keyword argument in example should be "stacklevel".
This closes SF bug #517684.

22 years agoback out spurious change from 1.22
Skip Montanaro [Tue, 12 Mar 2002 19:48:03 +0000 (19:48 +0000)]
back out spurious change from 1.22

22 years agoPopen3 and Popen4 should be in __all__
Skip Montanaro [Tue, 12 Mar 2002 19:16:19 +0000 (19:16 +0000)]
Popen3 and Popen4 should be in __all__

22 years agoAdd a -Wno-long-double flag to the compile flags on Mac OS X. Fixes bug
Jack Jansen [Tue, 12 Mar 2002 15:25:52 +0000 (15:25 +0000)]
Add a -Wno-long-double flag to the compile flags on Mac OS X. Fixes bug
525481. (Probably not a 2.2.1 candidate, unless the fix that introduced a
long double into objimpl.h (rev. 2.44) is backported to 2.2.1).

22 years agoSet/update self.cwd properly.
Fred Drake [Tue, 12 Mar 2002 14:26:37 +0000 (14:26 +0000)]
Set/update self.cwd properly.

22 years agoChange Windows file.truncate() to (a) restore the original file position,
Tim Peters [Tue, 12 Mar 2002 03:04:44 +0000 (03:04 +0000)]
Change Windows file.truncate() to (a) restore the original file position,
and (b) stop trying to prevent file growth.

Beef up the file.truncate() docs.

Change test_largefile.py to stop assuming that f.truncate() moves the
file pointer to the truncation point, and to verify instead that it leaves
the file position alone.  Remove the test for what happens when a
specified size exceeds the original file size (it's ill-defined, according
to the Single Unix Spec).

22 years agofixes to tabwidth code removal
Steven M. Gava [Tue, 12 Mar 2002 02:33:52 +0000 (02:33 +0000)]
fixes to tabwidth code removal

22 years agoremove tabwidth (for tabs) config stuff,
Steven M. Gava [Tue, 12 Mar 2002 00:52:42 +0000 (00:52 +0000)]
remove tabwidth (for tabs) config stuff,
because of the way the tk text widget handles
tabs they must remain a fixed size in idle

22 years agofurther work on dynamic config changes;
Steven M. Gava [Tue, 12 Mar 2002 00:21:56 +0000 (00:21 +0000)]
further work on dynamic config changes;
editor font

22 years agoDocumentation for PyObject_GetIter(), contributed by Greg Chapman
Fred Drake [Mon, 11 Mar 2002 18:46:29 +0000 (18:46 +0000)]
Documentation for PyObject_GetIter(), contributed by Greg Chapman
(with only minor changes by Fred).
This closes SF bug #498607.

22 years agoMake the extension manual format using the Makefile; recent changes broke
Fred Drake [Mon, 11 Mar 2002 18:42:08 +0000 (18:42 +0000)]
Make the extension manual format using the Makefile; recent changes broke
the dependency information.

22 years agoFix typo
Neal Norwitz [Mon, 11 Mar 2002 14:44:12 +0000 (14:44 +0000)]
Fix typo

22 years agoAdd a check that SF bug 516727 is really fixed.
Guido van Rossum [Mon, 11 Mar 2002 13:21:25 +0000 (13:21 +0000)]
Add a check that SF bug 516727 is really fixed.

22 years agoChanged C++ comment into standard comment.
Sjoerd Mullender [Mon, 11 Mar 2002 09:20:47 +0000 (09:20 +0000)]
Changed C++ comment into standard comment.

22 years agoPatch #443899: Check modes on files before performing operations.
Martin v. Löwis [Mon, 11 Mar 2002 06:46:52 +0000 (06:46 +0000)]
Patch #443899: Check modes on files before performing operations.
Use IOErrors where file objects use them.

22 years agoUpdate version number in README.
Guido van Rossum [Mon, 11 Mar 2002 01:05:32 +0000 (01:05 +0000)]
Update version number in README.

22 years agofile_truncate(): provide full "large file" support on Windows, by
Tim Peters [Mon, 11 Mar 2002 00:24:00 +0000 (00:24 +0000)]
file_truncate():  provide full "large file" support on Windows, by
dropping MS's inadequate _chsize() function.  This was inspired by
SF patch 498109 ("fileobject truncate support for win32"), which I
rejected.

libstdtypes.tex:  Someone who knows should update the availability
blurb.  For example, if it's available on Linux, it would be good to
say so.

test_largefile:  Uncommented the file.truncate() tests, and reworked to
do more.  The old comment about "permission errors" in the truncation
tests under Windows was almost certainly due to that the file wasn't open
for *write* access at this point, so of course MS wouldn't let you
truncate it.  I'd be appalled if a Unixish system did.

CAUTION:  Someone should run this test on Linux (etc) too.  The
truncation part was commented out before.  Note that test_largefile isn't
run by default.

22 years agoBugfix candidate.
Guido van Rossum [Mon, 11 Mar 2002 00:07:13 +0000 (00:07 +0000)]
Bugfix candidate.
Adapter from SF patch 528038; fixes SF bug 527816.

The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.

22 years agomkalias() now also works for folders. Fixes bug #515830.
Just van Rossum [Sun, 10 Mar 2002 19:28:02 +0000 (19:28 +0000)]
mkalias() now also works for folders. Fixes bug #515830.

22 years agoAccess the exception argument to see whether it starts with '500'.
Martin v. Löwis [Sun, 10 Mar 2002 15:59:58 +0000 (15:59 +0000)]
Access the exception argument to see whether it starts with '500'.
Fixes #527855.

22 years agoBugfix candidate.
Guido van Rossum [Sun, 10 Mar 2002 14:11:16 +0000 (14:11 +0000)]
Bugfix candidate.
Adapter from SF patch 528038; fixes SF bug 527816.

The wrapper for __nonzero__ should be wrap_inquiry rather than
wrap_unaryfunc, since the slot returns an int, not a PyObject *.

22 years agoSF patch 499062: Minor typo in test_generators.py.
Tim Peters [Sun, 10 Mar 2002 07:59:13 +0000 (07:59 +0000)]
SF patch 499062: Minor typo in test_generators.py.
There's no actual patch there.  It's an objection that Guido's example
doesn't actually generator "leaves", so change the comment that says
it does.

22 years agoPatch #504224: add plan9 threads include to thread.c.
Martin v. Löwis [Sat, 9 Mar 2002 12:10:54 +0000 (12:10 +0000)]
Patch #504224: add plan9 threads include to thread.c.

22 years agoPatch #494045: patches errno and stat to cope on plan9.
Martin v. Löwis [Sat, 9 Mar 2002 12:07:51 +0000 (12:07 +0000)]
Patch #494045: patches errno and stat to cope on plan9.

22 years agoPatch #494047: removes 64-bit ?: to cope on plan9.
Martin v. Löwis [Sat, 9 Mar 2002 12:02:59 +0000 (12:02 +0000)]
Patch #494047: removes 64-bit ?: to cope on plan9.

22 years agoPatch #500136: Update Update ext build documentation. 2.2.1 candidate.
Martin v. Löwis [Sat, 9 Mar 2002 10:06:14 +0000 (10:06 +0000)]
Patch #500136: Update Update ext build documentation. 2.2.1 candidate.

22 years agoFix SF bug 525520.
Jeremy Hylton [Sat, 9 Mar 2002 06:07:23 +0000 (06:07 +0000)]
Fix SF bug 525520.

Don't automatically add a Host: header if the headers passed to
request() already has a Host key.

22 years agoSF bug 525705: [2.2] underflow raise OverflowException.
Tim Peters [Sat, 9 Mar 2002 04:58:24 +0000 (04:58 +0000)]
SF bug 525705:  [2.2] underflow raise OverflowException.
Another year in the quest to out-guess random C behavior.

Added macros Py_ADJUST_ERANGE1(X) and Py_ADJUST_ERANGE2(X, Y).  The latter
is useful for functions with complex results.  Two corrections to errno-
after-libm-call are attempted:

1. If the platform set errno to ERANGE due to underflow, clear errno.
   Some unknown subset of libm versions and link options do this.  It's
   allowed by C89, but I never figured anyone would do it.

2. If the platform did not set errno but overflow occurred, force
   errno to ERANGE.  C89 required setting errno to ERANGE, but C99
   doesn't.  Some unknown subset of libm versions and link options do
   it the C99 way now.

Bugfix candidate, but hold off until some Linux people actually try it,
with and without -lieee.  I'll send a help plea to Python-Dev.

22 years agoDocstring for filter(): Someone on the Tutor list reasonably complained
Tim Peters [Sat, 9 Mar 2002 00:06:26 +0000 (00:06 +0000)]
Docstring for filter():  Someone on the Tutor list reasonably complained
that it didn't tell enough of the truth.
Bugfix candidate (I guess -- it helps and it's harmless).

22 years agoAdd more explanation of how data_files is used (esp. where the files end up
Fred Drake [Fri, 8 Mar 2002 22:02:06 +0000 (22:02 +0000)]
Add more explanation of how data_files is used (esp. where the files end up
in the installation and how that location is determined).

22 years agoAdd fix for AIX as reported by srubben in SF bug #477487.
Jeremy Hylton [Fri, 8 Mar 2002 21:43:51 +0000 (21:43 +0000)]
Add fix for AIX as reported by srubben in SF bug #477487.

Untested, of course.

22 years agoFix pyclbr test of httplib without really understanding pyclbr.
Jeremy Hylton [Fri, 8 Mar 2002 21:31:59 +0000 (21:31 +0000)]
Fix pyclbr test of httplib without really understanding pyclbr.

It seems that the new class HTTP11 in httplib.test() isn't
discoverable by pyclbr, which causes this test to fail.

22 years agoFix leak of NotImplemented in previous checkin to PyNumber_Add().
Jeremy Hylton [Fri, 8 Mar 2002 21:28:54 +0000 (21:28 +0000)]
Fix leak of NotImplemented in previous checkin to PyNumber_Add().

If result == Py_NotImplemented, always DECREF it before assigning a
new value to result.

22 years agoFix for SF bug 516727: MyInt(2) + "3" -> NotImplemented
Jeremy Hylton [Fri, 8 Mar 2002 21:11:37 +0000 (21:11 +0000)]
Fix for SF bug 516727: MyInt(2) + "3" -> NotImplemented

PyNumber_Add() tries the nb_add slot first, then falls back to
sq_concat.  However, tt didn't check the return value of sq_concat.
If sq_concat returns NotImplemented, raise the standard TypeError.

22 years agoSF bug report #405939: wrong Host header with proxy
Jeremy Hylton [Fri, 8 Mar 2002 19:35:51 +0000 (19:35 +0000)]
SF bug report #405939: wrong Host header with proxy

In August, Greg said this looked good, so I'm going ahead with it.

The fix is different from the one in the bug report.  Instead of using
a regular expression to extract the host from the url, I use
urlparse.urlsplit.

Martin commented that the patch doesn't address URLs that have basic
authentication username and password in the header.  I don't see any
code anywhere in httplib that supports this feature, so I'm not going
to address it for this fix.

Bug fix candidate.

22 years ago[Bug #491820] Define two abstract methods to shut up Pychecker, and for
Andrew M. Kuchling [Fri, 8 Mar 2002 18:27:11 +0000 (18:27 +0000)]
[Bug #491820] Define two abstract methods to shut up Pychecker, and for
    documentation purposes.  These implementations are the same as the
    ones suggested by Skip in the bug report.

22 years ago[Bug #517554] When a signal happens during the select call in
Andrew M. Kuchling [Fri, 8 Mar 2002 18:19:59 +0000 (18:19 +0000)]
[Bug #517554] When a signal happens during the select call in
asyncore.poll, the select fails with EINTR, which the
code catches. However, the code fails to clear the
r/w/e arrays (like poll3 does), which means it acts as
if every descriptor had received all possible events.

Bug report and patch by Cesar Eduardo Barros

22 years agoAs part of fixing bug #523301, add a simple test of ConfigParser.write()
Andrew M. Kuchling [Fri, 8 Mar 2002 18:10:12 +0000 (18:10 +0000)]
As part of fixing bug #523301, add a simple test of ConfigParser.write()

22 years ago[Bug #523301] ConfigParser.write() produces broken output for values that
Andrew M. Kuchling [Fri, 8 Mar 2002 18:08:47 +0000 (18:08 +0000)]
[Bug #523301] ConfigParser.write() produces broken output for values that
   were originally rfc822-like line continuations.
   Modified version of a patch from Matthias Ralfs.

22 years ago[Bug #486527] Note that the caller has to ensure there are no control
Andrew M. Kuchling [Fri, 8 Mar 2002 17:46:02 +0000 (17:46 +0000)]
[Bug #486527] Note that the caller has to ensure there are no control
    characters in strings being passed via XML-RPC.
Fix some typos.

2.2.1 bugfix candidate.

22 years ago[Bug #512799] urllib.splittype() returns a 2-tuple. (Reported by seb bacon)
Andrew M. Kuchling [Fri, 8 Mar 2002 17:19:10 +0000 (17:19 +0000)]
[Bug #512799] urllib.splittype() returns a 2-tuple.  (Reported by seb bacon)

22 years agoFix SF bug #526518
Jeremy Hylton [Fri, 8 Mar 2002 17:17:33 +0000 (17:17 +0000)]
Fix SF bug #526518

The doc string for cStringIO suggested that str() of a StringIO object
was equivalent to getvalue().  This was never true, so repair the doc
string.  (doctest would have helped here.)

Bug fix candidate for any past versions.

22 years agoWhen testing for availability of pthreads without special compiler options
Jack Jansen [Fri, 8 Mar 2002 13:43:01 +0000 (13:43 +0000)]
When testing for availability of pthreads without special compiler options
or libraries also look for thread_detach. SGI has thread_create in libc
but complete pthread support only in -lpthread. Fixes #522393.

2.2.1 candidate.Killed by signal 2.

22 years agofixed missing IMAP4_SSL_PORT
Piers Lauder [Fri, 8 Mar 2002 09:05:12 +0000 (09:05 +0000)]
fixed missing IMAP4_SSL_PORT

22 years agoSF bug 515943: searching for data with \0 in mmap.
Tim Peters [Fri, 8 Mar 2002 05:43:32 +0000 (05:43 +0000)]
SF bug 515943:  searching for data with \0 in mmap.
mmap_find_method():  this obtained the string to find via s#, but it
ignored its length, acting as if it were \0-terminated instead.

Someone please run on Linux too (the extended test_mmap works on Windows).

Bugfix candidate.

22 years agoAdd entry for mac/libscrap.tex.
Fred Drake [Fri, 8 Mar 2002 03:18:19 +0000 (03:18 +0000)]
Add entry for mac/libscrap.tex.

22 years agoI started writing more documentation on the Scrap module at one point, but
Fred Drake [Fri, 8 Mar 2002 03:15:49 +0000 (03:15 +0000)]
I started writing more documentation on the Scrap module at one point, but
it is difficult to do without a Mac box to try things out on.  This expands
on what was there only a little bit; hopefully someone with a Mac can work
on this as well!

22 years agoadd Content-Type header to error responses
Skip Montanaro [Fri, 8 Mar 2002 02:36:18 +0000 (02:36 +0000)]
add Content-Type header to error responses
this closes patch 502080

22 years agoadd SSL class submitted by Tino Lange
Piers Lauder [Fri, 8 Mar 2002 01:53:24 +0000 (01:53 +0000)]
add SSL class submitted by Tino Lange

22 years ago"Shortcut" should be "short-circuit".
Fred Drake [Fri, 8 Mar 2002 00:54:43 +0000 (00:54 +0000)]
"Shortcut" should be "short-circuit".
This closes SF bug #526277.

22 years agoadd repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
Skip Montanaro [Thu, 7 Mar 2002 22:58:02 +0000 (22:58 +0000)]
add repr_str as alias for repr_string in both HTMLRepr and TextRepr classes
- reflects the change in type("").__name__ between 2.1 and 2.2.  The
__name__ field is used to find a method to call for particular types.

22 years agoGuido pointed out that I was missing a couple decrefs.
Michael W. Hudson [Thu, 7 Mar 2002 15:13:40 +0000 (15:13 +0000)]
Guido pointed out that I was missing a couple decrefs.

22 years agoRegenerate.
Michael W. Hudson [Thu, 7 Mar 2002 09:59:15 +0000 (09:59 +0000)]
Regenerate.

22 years agoApply Jack's patch attached to
Michael W. Hudson [Thu, 7 Mar 2002 09:58:56 +0000 (09:58 +0000)]
Apply Jack's patch attached to

[ 508779 ] Disable flat namespace on MacOS X

I presume you wanted this on the trunk too, Jack?

2.2.1 candidate.

22 years agoTest for
Michael W. Hudson [Wed, 6 Mar 2002 17:18:15 +0000 (17:18 +0000)]
Test for

[ 526039 ] devious code can crash structseqs

Bugfix candidate.

22 years agoSpecial support for pickling os.stat and os.stat_vfs results portably
Michael W. Hudson [Wed, 6 Mar 2002 17:11:18 +0000 (17:11 +0000)]
Special support for pickling os.stat and os.stat_vfs results portably
(the types come from different modules on different platforms).

Added tests for pickling these types.

May be a bugfix candidate.

22 years agoApply (my) patch:
Michael W. Hudson [Wed, 6 Mar 2002 17:07:49 +0000 (17:07 +0000)]
Apply (my) patch:

[ 526072 ] pickling os.stat results round II

structseq's constructors can now take "invisible" fields in a dict.
Gave the constructors better error messages.
their __reduce__ method puts these fields in a dict.

(this is all in aid of getting os.stat_result's to pickle portably)

Also fixes

[ 526039 ] devious code can crash structseqs

Thought needed about how much of this counts as a bugfix.  Certainly
#526039 needs to be fixed.

22 years agoAdded missing version annotation for dict().
Fred Drake [Wed, 6 Mar 2002 02:29:30 +0000 (02:29 +0000)]
Added missing version annotation for dict().

22 years agoCGStubLib wasn't weak-linked, fixed. 221 candidate.
Jack Jansen [Tue, 5 Mar 2002 22:43:50 +0000 (22:43 +0000)]
CGStubLib wasn't weak-linked, fixed. 221 candidate.

22 years agoSet default value for readlines.sizehint to None. Change needed for 2.2.1
Martin v. Löwis [Tue, 5 Mar 2002 15:46:38 +0000 (15:46 +0000)]
Set default value for readlines.sizehint to None. Change needed for 2.2.1
as well.

22 years agoA fix & test for
Michael W. Hudson [Tue, 5 Mar 2002 13:27:58 +0000 (13:27 +0000)]
A fix & test for

[ 496873 ] structseqs unpicklable

by adding a __reduce__ method to structseqs.

Will also commit this to the 2.2.1 branch momentarily.

22 years agoAdd implementations for \textgreater and \textless, defined in (relatively)
Fred Drake [Tue, 5 Mar 2002 04:04:06 +0000 (04:04 +0000)]
Add implementations for \textgreater and \textless, defined in (relatively)
recent versions of LaTeX2e but not support in LaTeX2HTML.

22 years agoRemove extra indenatation from sample interpreter session.
Fred Drake [Tue, 5 Mar 2002 04:02:39 +0000 (04:02 +0000)]
Remove extra indenatation from sample interpreter session.
Remove whitespace from the middle of an inline RE example; it was OK for
the typeset formats, but LaTeX2HTML is more touchy about this.

22 years agoremove debug cruft
Steven M. Gava [Tue, 5 Mar 2002 00:31:43 +0000 (00:31 +0000)]
remove debug cruft

22 years agofurther work on new config system
Steven M. Gava [Tue, 5 Mar 2002 00:25:58 +0000 (00:25 +0000)]
further work on new config system

22 years agoadd simple example of avoiding backtracking
Skip Montanaro [Mon, 4 Mar 2002 23:08:28 +0000 (23:08 +0000)]
add simple example of avoiding backtracking

22 years agoAdded ClipCGContextToRegion() from Quickdraw.h.
Just van Rossum [Mon, 4 Mar 2002 10:31:32 +0000 (10:31 +0000)]
Added ClipCGContextToRegion() from Quickdraw.h.

22 years agoRemove tp_print.
Martin v. Löwis [Mon, 4 Mar 2002 09:38:52 +0000 (09:38 +0000)]
Remove tp_print.