]> granicus.if.org Git - python/log
python
21 years agoCorrect code to advance ptr to be well-formed C.
Martin v. Löwis [Thu, 25 Mar 2004 16:16:28 +0000 (16:16 +0000)]
Correct code to advance ptr to be well-formed C.

21 years agofix typo
Fred Drake [Thu, 25 Mar 2004 16:14:17 +0000 (16:14 +0000)]
fix typo

21 years agonote that distutils API docs are included in "Distributing Python
Fred Drake [Thu, 25 Mar 2004 16:12:08 +0000 (16:12 +0000)]
note that distutils API docs are included in "Distributing Python
Modules"

21 years agoimprove the very-high-level API docs (contributed by Jeff Epler)
Fred Drake [Thu, 25 Mar 2004 15:44:56 +0000 (15:44 +0000)]
improve the very-high-level API docs (contributed by Jeff Epler)
Closes SF patch #798638.

21 years agoDefer compilation of regular expressions until first use.
Martin v. Löwis [Thu, 25 Mar 2004 14:58:19 +0000 (14:58 +0000)]
Defer compilation of regular expressions until first use.

21 years agoRemove note that PyErr_SetInterrupt() is obsolete; add comment about the
Fred Drake [Thu, 25 Mar 2004 14:25:28 +0000 (14:25 +0000)]
Remove note that PyErr_SetInterrupt() is obsolete; add comment about the
fact that it was marked obsolete but is still needed.
Closes SF bug #919299.  Someone else should backport this to Python 2.3.

21 years agoUse True/False instead of 0/1 for character classes.
Martin v. Löwis [Thu, 25 Mar 2004 13:50:59 +0000 (13:50 +0000)]
Use True/False instead of 0/1 for character classes.

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

21 years agoEnsure super() lookup of descriptor from classmethod works (SF #743627)
Phillip J. Eby [Thu, 25 Mar 2004 02:19:34 +0000 (02:19 +0000)]
Ensure super() lookup of descriptor from classmethod works (SF #743627)

21 years agoA few more PyThreadState_Get to PyThreadState_GET conversions
Nicholas Bastin [Thu, 25 Mar 2004 02:16:23 +0000 (02:16 +0000)]
A few more PyThreadState_Get to PyThreadState_GET conversions

21 years agofix name in setacl method doc string
Piers Lauder [Thu, 25 Mar 2004 00:12:21 +0000 (00:12 +0000)]
fix name in setacl method doc string

21 years agoChanged random calls to PyThreadState_Get() to use the macro
Nicholas Bastin [Wed, 24 Mar 2004 22:22:12 +0000 (22:22 +0000)]
Changed random calls to PyThreadState_Get() to use the macro

21 years agoEnable the profiling of C functions (builtins and extensions)
Nicholas Bastin [Wed, 24 Mar 2004 21:57:10 +0000 (21:57 +0000)]
Enable the profiling of C functions (builtins and extensions)

21 years agoAdd test case for unicode(somestring, "idna").
Martin v. Löwis [Wed, 24 Mar 2004 16:48:24 +0000 (16:48 +0000)]
Add test case for unicode(somestring, "idna").

21 years agoReplace sequential split/join calls on strings with a single replace call.
Brett Cannon [Tue, 23 Mar 2004 23:50:17 +0000 (23:50 +0000)]
Replace sequential split/join calls on strings with a single replace call.
Thanks Andrew Gaul.

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

21 years ago...for work done at PyCon 2004 (and beyond...)
Nicholas Bastin [Tue, 23 Mar 2004 23:29:01 +0000 (23:29 +0000)]
...for work done at PyCon 2004 (and beyond...)

21 years agoMake socket.sslerror a subclass of socket.error .
Brett Cannon [Tue, 23 Mar 2004 23:16:54 +0000 (23:16 +0000)]
Make socket.sslerror a subclass of socket.error .
Added socket.error to the socket module's C API.

21 years agomore markup nits
Fred Drake [Tue, 23 Mar 2004 21:40:07 +0000 (21:40 +0000)]
more markup nits

21 years agoReplace code in urllib for basejoin (undocumented) with urlparse.urljoin .
Brett Cannon [Tue, 23 Mar 2004 21:26:39 +0000 (21:26 +0000)]
Replace code in urllib for basejoin (undocumented) with urlparse.urljoin .
Test suites for urllib and urlparse run with each other's function to verify
correctness of replacement and both test suites pass.

Bumped urllib's __version__ attribute up a minor number.

21 years agofix markup nits
Fred Drake [Tue, 23 Mar 2004 20:30:59 +0000 (20:30 +0000)]
fix markup nits

21 years agoadd the distutils modules to the global modules list
Fred Drake [Tue, 23 Mar 2004 19:26:54 +0000 (19:26 +0000)]
add the distutils modules to the global modules list

21 years agoAdd runctx to __all__.
Guido van Rossum [Tue, 23 Mar 2004 19:19:21 +0000 (19:19 +0000)]
Add runctx to __all__.

21 years agogive the document indexes
Fred Drake [Tue, 23 Mar 2004 19:02:38 +0000 (19:02 +0000)]
give the document indexes

21 years ago- use recommended Python style in examples (no spaces around "=" for
Fred Drake [Tue, 23 Mar 2004 18:54:12 +0000 (18:54 +0000)]
- use recommended Python style in examples (no spaces around "=" for
  keyword args)
- format multi-line calls to distutils.core.setup() consistently, and
  in line with general practice (one keyword arg per line,
  comma/newline after the last
- fix a few typos

21 years agoAdded command line options for profile.py - one for stats output file
Nicholas Bastin [Tue, 23 Mar 2004 18:44:39 +0000 (18:44 +0000)]
Added command line options for profile.py - one for stats output file
and one for sort order when using stdout.  Uses optparse.

21 years agomerge Anthony Baxter's distutils API reference into the package
Fred Drake [Tue, 23 Mar 2004 18:43:03 +0000 (18:43 +0000)]
merge Anthony Baxter's distutils API reference into the package
author's documentation

21 years agoIntern __name__.
Martin v. Löwis [Tue, 23 Mar 2004 18:40:15 +0000 (18:40 +0000)]
Intern __name__.

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

21 years agoBasic dependency checking. setup() has two new optional arguments
Anthony Baxter [Mon, 22 Mar 2004 22:22:05 +0000 (22:22 +0000)]
Basic dependency checking. setup() has two new optional arguments
requires and provides. requires is a sequence of strings, of the
form 'packagename-version'. The dependency checking so far merely
does an '__import__(packagename)' and checks for packagename.__version__
You can also leave off the version, and any version of the package
will be installed.
There's a special case for the package 'python' - sys.version_info
is used, so
requires= ( 'python-2.3', )
just works.

Provides is of the same format as requires - but if it's not supplied,
a provides is generated by adding the version to each entry in packages,
or modules if packages isn't there.
Provides is currently only used in the PKG-INFO file. Shortly, PyPI
will grow the ability to accept these lines, and register will be
updated to send them.

There's a new command 'checkdep' command that runs these checks.
For this version, only greater-than-or-equal checking is done. We'll
add the ability to specify an optional operator later.

21 years agoPatch #911176: Move test function into __main__
Martin v. Löwis [Mon, 22 Mar 2004 21:49:47 +0000 (21:49 +0000)]
Patch #911176: Move test function into __main__

21 years agoconvert from a howto to a manual
Fred Drake [Mon, 22 Mar 2004 21:44:43 +0000 (21:44 +0000)]
convert from a howto to a manual

21 years agoLost reference.
Armin Rigo [Mon, 22 Mar 2004 20:16:58 +0000 (20:16 +0000)]
Lost reference.

21 years agoAdded global runctx function to profile to fix SF Bug #716587
Nicholas Bastin [Mon, 22 Mar 2004 20:12:56 +0000 (20:12 +0000)]
Added global runctx function to profile to fix SF Bug #716587

21 years agoThe fix in ceval.c 2.386 allows iteration-by-iteration line tracing even in
Armin Rigo [Mon, 22 Mar 2004 19:30:39 +0000 (19:30 +0000)]
The fix in ceval.c 2.386 allows iteration-by-iteration line tracing even in
single-line loops.

21 years agoFix SF bug #765624.
Armin Rigo [Mon, 22 Mar 2004 19:24:58 +0000 (19:24 +0000)]
Fix SF bug #765624.

21 years agoFix (really) for tight loop line events
Nicholas Bastin [Mon, 22 Mar 2004 19:23:46 +0000 (19:23 +0000)]
Fix (really) for tight loop line events

21 years agoTest for tight loop line event fix, SF bug #765624
Nicholas Bastin [Mon, 22 Mar 2004 19:21:47 +0000 (19:21 +0000)]
Test for tight loop line event fix, SF bug #765624

21 years agoTest for lack of implicit return line event
Nicholas Bastin [Mon, 22 Mar 2004 18:30:42 +0000 (18:30 +0000)]
Test for lack of implicit return line event

21 years agoFix for line events in the case:
Armin Rigo [Mon, 22 Mar 2004 17:52:53 +0000 (17:52 +0000)]
Fix for line events in the case:
  def f(a):
    if a:
      print 5
    else:
      pass

21 years agoPatch #871657: Set EDOM for `nan' return values on FreeBSD and OpenBSD.
Hye-Shik Chang [Mon, 22 Mar 2004 08:43:55 +0000 (08:43 +0000)]
Patch #871657: Set EDOM for `nan' return values on FreeBSD and OpenBSD.
This fixes a problem that math.sqrt(-1) doesn't raise math.error.

21 years agoNew parser. Next up, making the current parser use this parser
Anthony Baxter [Mon, 22 Mar 2004 00:33:28 +0000 (00:33 +0000)]
New parser. Next up, making the current parser use this parser

21 years agoAdded configure check for broken poll() on some unix systems (MacOS X 10.3)
Nicholas Bastin [Sun, 21 Mar 2004 23:45:42 +0000 (23:45 +0000)]
Added configure check for broken poll() on some unix systems (MacOS X 10.3)
Fixes SF Bug #850981

21 years agoSF bug 847019 datetime.datetime initialization needs more strict checking
Tim Peters [Sun, 21 Mar 2004 23:38:41 +0000 (23:38 +0000)]
SF bug 847019 datetime.datetime initialization needs more strict checking
It's possible to create insane datetime objects by using the constructor
"backdoor" inserted for fast unpickling.  Doing extensive range checking
would eliminate the backdoor's purpose (speed), but at least a little
checking can stop honest mistakes.

Bugfix candidate.

21 years agoRestored revision 2.87.
Armin Rigo [Sun, 21 Mar 2004 22:29:05 +0000 (22:29 +0000)]
Restored revision 2.87.

21 years agoChange parse_qsl() to accept control-name's with no equal sign (e.g., "name")
Brett Cannon [Sun, 21 Mar 2004 22:16:15 +0000 (22:16 +0000)]
Change parse_qsl() to accept control-name's with no equal sign (e.g., "name")
when keep_blank_values is true.

21 years agoRemove 'now'
Andrew M. Kuchling [Sun, 21 Mar 2004 22:12:45 +0000 (22:12 +0000)]
Remove 'now'

21 years agoPyTuple_New(): vrbl i no longer referenced, so removed it (which kills
Tim Peters [Sun, 21 Mar 2004 21:35:41 +0000 (21:35 +0000)]
PyTuple_New():  vrbl i no longer referenced, so removed it (which kills
off a new compiler wng under MSVC6).

21 years agoNormalized files in test_unicode_file to eliminate failure on OSX
Nicholas Bastin [Sun, 21 Mar 2004 20:55:47 +0000 (20:55 +0000)]
Normalized files in test_unicode_file to eliminate failure on OSX

21 years agoThis is the fastest I could get on Intel GCC. I kept the memset() in to clear
Armin Rigo [Sun, 21 Mar 2004 20:27:49 +0000 (20:27 +0000)]
This is the fastest I could get on Intel GCC.  I kept the memset() in to clear
the newly created tuples, but tuples added in the freelist are now cleared in
tupledealloc already (which is very cheap, because we are already
Py_XDECREF'ing all elements anyway).

Python should have a standard Py_ZAP macro like ZAP in pystate.c.

21 years agoChanged file.name to be the object passed as the 'name' argument to file()
Nicholas Bastin [Sun, 21 Mar 2004 20:24:07 +0000 (20:24 +0000)]
Changed file.name to be the object passed as the 'name' argument to file()
Fixes SF Bug #773356

21 years ago[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send
Andrew M. Kuchling [Sun, 21 Mar 2004 20:03:18 +0000 (20:03 +0000)]
[Part of patch #909005] Added map parameter for file_dispatcher and dispatcher_with_send

21 years ago[Part of patch #909005] Repeating exception changed from 'raise socket.error, why...
Andrew M. Kuchling [Sun, 21 Mar 2004 19:58:28 +0000 (19:58 +0000)]
[Part of patch #909005] Repeating exception changed from 'raise socket.error, why' to just raise.  Make use of connect_ex() raise socket.error with 2-tuple instead of just error code

21 years ago[Part of patch #909005] Remove Mac code for writable
Andrew M. Kuchling [Sun, 21 Mar 2004 19:52:01 +0000 (19:52 +0000)]
[Part of patch #909005] Remove Mac code for writable

21 years ago[Part of patch #909005] Set initial poll flags
Andrew M. Kuchling [Sun, 21 Mar 2004 19:50:09 +0000 (19:50 +0000)]
[Part of patch #909005] Set initial poll flags

21 years ago[Part of patch #909005] Use True/False
Andrew M. Kuchling [Sun, 21 Mar 2004 19:46:16 +0000 (19:46 +0000)]
[Part of patch #909005] Use True/False

21 years agoBug #920575: Add a workaround for GNU libc nl_langinfo()'s returning NULL.
Hye-Shik Chang [Sun, 21 Mar 2004 19:34:30 +0000 (19:34 +0000)]
Bug #920575: Add a workaround for GNU libc nl_langinfo()'s returning NULL.
(Reported by Matthias Klose)

21 years ago[Patch #900071] Be case-insensitive when removing 'usage:' string
Andrew M. Kuchling [Sun, 21 Mar 2004 19:28:48 +0000 (19:28 +0000)]
[Patch #900071] Be case-insensitive when removing 'usage:' string

21 years ago[Part of patch #909005] Handle POLLPRI flag, and various errors cases. Fixes bug...
Andrew M. Kuchling [Sun, 21 Mar 2004 19:26:00 +0000 (19:26 +0000)]
[Part of patch #909005] Handle POLLPRI flag, and various errors cases.  Fixes bug #887279

21 years ago[Patch #918212] Support XHTML's 'id' attribute, which can be on any element.
Andrew M. Kuchling [Sun, 21 Mar 2004 19:07:23 +0000 (19:07 +0000)]
[Patch #918212] Support XHTML's 'id' attribute, which can be on any element.

21 years ago[Patch #905863] Support the CVS version of Tcl/Tk, which has the version number 8.5
Andrew M. Kuchling [Sun, 21 Mar 2004 18:59:46 +0000 (18:59 +0000)]
[Patch #905863] Support the CVS version of Tcl/Tk, which has the version number 8.5

21 years ago[Patch #850977] Detect Tcl/Tk libraries on FreeBSD/OpenBSD. Bugfix candidate
Andrew M. Kuchling [Sun, 21 Mar 2004 18:57:35 +0000 (18:57 +0000)]
[Patch #850977] Detect Tcl/Tk libraries on FreeBSD/OpenBSD.  Bugfix candidate

21 years agoUpdate URLs
Andrew M. Kuchling [Sun, 21 Mar 2004 18:48:22 +0000 (18:48 +0000)]
Update URLs

21 years agoMoved tracebackobject to traceback.h, Closes SF Bug #497067
Nicholas Bastin [Sun, 21 Mar 2004 18:37:23 +0000 (18:37 +0000)]
Moved tracebackobject to traceback.h, Closes SF Bug #497067

21 years agoFix typo in comment.
Raymond Hettinger [Sun, 21 Mar 2004 17:35:06 +0000 (17:35 +0000)]
Fix typo in comment.

21 years agoSF bug 917108: warnings.py does not define _test().
Tim Peters [Sun, 21 Mar 2004 17:06:20 +0000 (17:06 +0000)]
SF bug 917108:  warnings.py does not define _test().
Removed the entire __name__ == '__main__' block.

21 years agoAdd identity shortcut to PyObject_RichCompareBool.
Raymond Hettinger [Sun, 21 Mar 2004 17:01:44 +0000 (17:01 +0000)]
Add identity shortcut to PyObject_RichCompareBool.

21 years agoModified string.split documentation to reflect behaviour of splitting emtpy string...
Nicholas Bastin [Sun, 21 Mar 2004 16:59:59 +0000 (16:59 +0000)]
Modified string.split documentation to reflect behaviour of splitting emtpy string.  Closes SF bug #811604

21 years agorecursive_isinstance(), recursive_issubclass(): New code here returned
Tim Peters [Sun, 21 Mar 2004 16:59:09 +0000 (16:59 +0000)]
recursive_isinstance(), recursive_issubclass():  New code here returned
NULL in case of error, but the functions are declared to return int.
MSVC 6 properly complains about that.  Return -1 on error instead.

21 years ago[693255] also back out corresponding NEWS item...
Just van Rossum [Sun, 21 Mar 2004 16:26:32 +0000 (16:26 +0000)]
[693255] also back out corresponding NEWS item...

21 years agoconcrete example of why retaining old objects is good
Skip Montanaro [Sun, 21 Mar 2004 16:05:30 +0000 (16:05 +0000)]
concrete example of why retaining old objects is good

21 years agoPatch #853488: Tix hlist missing entryconfigure and entrycget methods.
Martin v. Löwis [Sun, 21 Mar 2004 15:29:41 +0000 (15:29 +0000)]
Patch #853488: Tix hlist missing entryconfigure and entrycget methods.

21 years agoPatch #853488: Add hlist entry_configure and entry_cget methods.
Martin v. Löwis [Sun, 21 Mar 2004 15:26:44 +0000 (15:26 +0000)]
Patch #853488: Add hlist entry_configure and entry_cget methods.

21 years agoRemove unused instance attributes.
Neil Schemenauer [Sun, 21 Mar 2004 15:18:50 +0000 (15:18 +0000)]
Remove unused instance attributes.

21 years agoImprove byte coding for multiple assignments.
Raymond Hettinger [Sun, 21 Mar 2004 15:12:00 +0000 (15:12 +0000)]
Improve byte coding for multiple assignments.
Gives 30% speedup on "a,b=1,2" and 25% on "a,b,c=1,2,3".

21 years agoRemoved extra period from \versionchanged entry; macro adds period
Brett Cannon [Sun, 21 Mar 2004 14:10:18 +0000 (14:10 +0000)]
Removed extra period from \versionchanged entry; macro adds period
automatically.

21 years agoBack out last patch that removed an entry from sys.path if it was not an
Brett Cannon [Sun, 21 Mar 2004 14:06:49 +0000 (14:06 +0000)]
Back out last patch that removed an entry from sys.path if it was not an
existent path.  Pointed out by jvr that entries could be non-file items for
custom importers.

21 years agoDeal with case of when locale time values has characters that can be mistaken
Brett Cannon [Sat, 20 Mar 2004 23:09:40 +0000 (23:09 +0000)]
Deal with case of when locale time values has characters that can be mistaken
for regex syntax.
Fixes bug #883604 .

21 years agoLimit the nesting depth of a tuple passed as the second argument to
Brett Cannon [Sat, 20 Mar 2004 22:52:14 +0000 (22:52 +0000)]
Limit the nesting depth of a tuple passed as the second argument to
isinstance() or issubclass() to the recursion limit of the interpreter.

21 years agoFix for SF 780407.
Guido van Rossum [Sat, 20 Mar 2004 22:34:14 +0000 (22:34 +0000)]
Fix for SF 780407.
Change %08l to %p to print a pointer.
Will backport to 2.3.

21 years agoGet rid of listextend_internal() and explain why the special case
Armin Rigo [Sat, 20 Mar 2004 22:19:23 +0000 (22:19 +0000)]
Get rid of listextend_internal() and explain why the special case
'a.extend(a)' isn't so special anyway.

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

21 years agoSF patch 508730 CGIHTTPServer execfile should save cwd
Tim Peters [Sat, 20 Mar 2004 21:51:12 +0000 (21:51 +0000)]
SF patch 508730  CGIHTTPServer execfile should save cwd

UNTESTED!!!

This simple two-line patch has been sitting on SF for more than 2 years.
I'm guessing it's because nobody knows how to test it -- I sure don't.
It doesn't look like you can get to this part of the code on Unixish
or Windows systems, so the "how to test it?" puzzle has more than one
part.  OTOH, if this is dead code, it doesn't matter either if I just
broke it <wink>.

21 years agoCancelled checkin, sorry.
Armin Rigo [Sat, 20 Mar 2004 21:50:13 +0000 (21:50 +0000)]
Cancelled checkin, sorry.

21 years agoClarify docs on where .pth files can exist.
Brett Cannon [Sat, 20 Mar 2004 21:41:28 +0000 (21:41 +0000)]
Clarify docs on where .pth files can exist.

21 years agomemset() hunt continuing. This is a net win.
Armin Rigo [Sat, 20 Mar 2004 21:35:09 +0000 (21:35 +0000)]
memset() hunt continuing.  This is a net win.

21 years agoRemove non-existent paths.
Brett Cannon [Sat, 20 Mar 2004 21:31:33 +0000 (21:31 +0000)]
Remove non-existent paths.

21 years agomemset() with small memory sizes just kill us.
Armin Rigo [Sat, 20 Mar 2004 21:10:27 +0000 (21:10 +0000)]
memset() with small memory sizes just kill us.

21 years agoFix how line endings were handled when iterating over a .pth file by stripping
Brett Cannon [Sat, 20 Mar 2004 21:08:17 +0000 (21:08 +0000)]
Fix how line endings were handled when iterating over a .pth file by stripping
all whitespace at the end of the path line.

21 years agoTweaked after following all these instructions.
Guido van Rossum [Sat, 20 Mar 2004 21:00:26 +0000 (21:00 +0000)]
Tweaked after following all these instructions.

Removed Win9x notes (since the .NET compiler requires Win2K or XP anyway).

21 years agotest_email: comment out two fail-test cases that no longer fail with the new
Thomas Wouters [Sat, 20 Mar 2004 20:29:50 +0000 (20:29 +0000)]
test_email: comment out two fail-test cases that no longer fail with the new
parser -- for now. Failure behaviour of the new parser(s) will change in any
case, so this will be revisited later anyway.

21 years agoSpeed HMAC.copy() by installing a secret backdoor argument to
Tim Peters [Sat, 20 Mar 2004 20:11:29 +0000 (20:11 +0000)]
Speed HMAC.copy() by installing a secret backdoor argument to
HMAC.__init__().  Adapted from SF patch 895445 "hmac.HMAC.copy() speedup"
by Trevor Perrin, who reported that this approach increased throughput
of his hmac-intensive app by 30%.

21 years agoA 2% speed improvement with gcc on low-endian machines. My guess is that this
Armin Rigo [Sat, 20 Mar 2004 20:03:17 +0000 (20:03 +0000)]
A 2% speed improvement with gcc on low-endian machines.  My guess is that this
new pattern for NEXTARG() is detected and optimized as a single (*short)
loading.

21 years agoGCC was complaining that 'value' in dictiter_iternextvalue() wasn't
Guido van Rossum [Sat, 20 Mar 2004 19:11:58 +0000 (19:11 +0000)]
GCC was complaining that 'value' in dictiter_iternextvalue() wasn't
necessarily always set before used.  Between Tim, Armin & me we
couldn't prove GCC wrong, so we decided to fix the algorithm.  This
version is Armin's.

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

Replace 1 and 0 with True and False.

21 years agoMerge in Anthony's new parser code, from the anthony-parser-branch:
Thomas Wouters [Sat, 20 Mar 2004 17:31:29 +0000 (17:31 +0000)]
Merge in Anthony's new parser code, from the anthony-parser-branch:

> ----------------------------
> revision 1.20.4.4
> date: 2003/06/12 09:14:17;  author: anthonybaxter;  state: Exp;  lines: +13 -6
> preamble is None when missing, not ''.
> Handle a couple of bogus formatted messages - now parses my main testsuite.
> Handle message/external-body.
> ----------------------------
> revision 1.20.4.3
> date: 2003/06/12 07:16:40;  author: anthonybaxter;  state: Exp;  lines: +6 -4
> epilogue-processing is now the same as the old parser - the newline at the
> end of the line with the --endboundary-- is included as part of the epilogue.
> Note that any whitespace after the boundary is _not_ part of the epilogue.
> ----------------------------
> revision 1.20.4.2
> date: 2003/06/12 06:39:09;  author: anthonybaxter;  state: Exp;  lines: +6 -4
> message/delivery-status fixed.
> HeaderParser fixed.
> ----------------------------
> revision 1.20.4.1
> date: 2003/06/12 06:08:56;  author: anthonybaxter;  state: Exp;  lines: +163 -129
> A work-in-progress snapshot of the new parser. A couple of known problems:
>
> - first (blank) line of MIME epilogues is being consumed
> - message/delivery-status isn't quite right
>
> It still needs a lot of cleanup, but right now it parses a whole lot of
> badness that the old parser failed on. I also need to think about adding
> back the old 'strict' flag in some way.
> =============================================================================

21 years agoUpdate copyright years, and change copyright.tex to use the same spelling
Tim Peters [Sat, 20 Mar 2004 17:24:51 +0000 (17:24 +0000)]
Update copyright years, and change copyright.tex to use the same spelling
as license.tex (SF patch 795531 complained about the spelling discrepancy,
although this "repairs" that flaw in a different way than the patch).

21 years agocommit the portion of PyXML patch #919008 that is relevant to the
Fred Drake [Sat, 20 Mar 2004 08:15:30 +0000 (08:15 +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 agofix two typos that turned text into markup
Fred Drake [Sat, 20 Mar 2004 08:13:32 +0000 (08:13 +0000)]
fix two typos that turned text into markup

21 years agoIgnore oodles of MSVC-generated files.
Tim Peters [Sat, 20 Mar 2004 05:00:56 +0000 (05:00 +0000)]
Ignore oodles of MSVC-generated files.