]> granicus.if.org Git - python/log
python
20 years agoGave _ellipsis_match() an attractive new leading underscore.
Tim Peters [Fri, 20 Aug 2004 02:08:04 +0000 (02:08 +0000)]
Gave _ellipsis_match() an attractive new leading underscore.

20 years agoFix markup. versionchanged automatically adds a period, so remove the extra one.
Neal Norwitz [Fri, 20 Aug 2004 01:52:42 +0000 (01:52 +0000)]
Fix markup.  versionchanged automatically adds a period, so remove the extra one.

20 years agoEstablish policies with respect to 2.3 compatibilty and treated spec
Raymond Hettinger [Thu, 19 Aug 2004 22:39:55 +0000 (22:39 +0000)]
Establish policies with respect to 2.3 compatibilty and treated spec
updates as bugfixes.

20 years agoSF bug #1012315: weakref.WeakValueDictionary should override .has_key()
Raymond Hettinger [Thu, 19 Aug 2004 21:32:06 +0000 (21:32 +0000)]
SF bug #1012315:  weakref.WeakValueDictionary should override .has_key()

* Check the found object for a None value during a contains/has_key
  lookup.  Perhaps it will help the OP who is likely suffering from an
  occassional GC or threading object deletion after self.data is checked.

* Complete the previous patch by removing the unnecessary indirection
  for weak dict iterators.  Makes the code cleaner and more readable.

20 years agoGot rid of nooutput() (was used by DocTestCase.debug())
Edward Loper [Thu, 19 Aug 2004 19:26:06 +0000 (19:26 +0000)]
Got rid of nooutput() (was used by DocTestCase.debug())

It's redundant, since no output is written anyway: DebugRunner doesn't
generate any output for failures and unexpected exceptions, and since
verbose=False, it won't generate any output for non-failures either.

20 years agoUpdated __all__ to include every non-underscored class, function, and
Edward Loper [Thu, 19 Aug 2004 19:19:03 +0000 (19:19 +0000)]
Updated __all__ to include every non-underscored class, function, and
constant defined by the module (except the test*() functions, which
should be integrated into test/test_doctest.py, anyway).

20 years agoBug #1005737, #1007249: Fix several build problems and warnings
Hye-Shik Chang [Thu, 19 Aug 2004 17:52:37 +0000 (17:52 +0000)]
Bug #1005737, #1007249: Fix several build problems and warnings
found on old/legacy C compilers of HP-UX, IRIX and Tru64.  (Reported
by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)

20 years agoBug #1005737, #1007249: Fix several build problems and warnings
Hye-Shik Chang [Thu, 19 Aug 2004 17:49:56 +0000 (17:49 +0000)]
Bug #1005737, #1007249: Fix several build problems and warnings
found on legacy C compilers of HP-UX, IRIX and Tru64.  (Reported
by roadkill, Richard Townsend, Maik Hertha and Minsik Kim)

20 years agoNow that they've settled down, document doctest directives.
Tim Peters [Thu, 19 Aug 2004 16:38:58 +0000 (16:38 +0000)]
Now that they've settled down, document doctest directives.

20 years agoPort test_zipfile to unittest (patch #736962).
Johannes Gijsbers [Thu, 19 Aug 2004 15:11:50 +0000 (15:11 +0000)]
Port test_zipfile to unittest (patch #736962).

20 years agoellipsis_match(): Changed treatment of start- and end-of-string exact
Tim Peters [Thu, 19 Aug 2004 14:06:20 +0000 (14:06 +0000)]
ellipsis_match():  Changed treatment of start- and end-of-string exact
matches to be symmetric.  This makes the algorithm easier to understand.

20 years agoPatch #900727: Add Py_InitializeEx to allow embedding without signals.
Martin v. Löwis [Thu, 19 Aug 2004 11:31:58 +0000 (11:31 +0000)]
Patch #900727: Add Py_InitializeEx to allow embedding without signals.

20 years agoPatch #1011822: Display errno/strerror for inaccessible files.
Martin v. Löwis [Thu, 19 Aug 2004 11:07:49 +0000 (11:07 +0000)]
Patch #1011822: Display errno/strerror for inaccessible files.

20 years agoReplaced the ELLIPSIS implementation with a worst-case linear-time one.
Tim Peters [Thu, 19 Aug 2004 08:10:08 +0000 (08:10 +0000)]
Replaced the ELLIPSIS implementation with a worst-case linear-time one.

20 years agoELLIPSIS implementation: an ellipsis couldn't match nothing if it
Tim Peters [Thu, 19 Aug 2004 06:49:33 +0000 (06:49 +0000)]
ELLIPSIS implementation:  an ellipsis couldn't match nothing if it
appeared at the end of a line.  Repaired that.  Also noted that it's
too easy to provoke this implementation into requiring exponential
time, and especially when a test fails.  I'll replace the implementation
with an always-efficient one later.

20 years agoRewrite test_order so as to be more "proper". Originally relied on an
Brett Cannon [Thu, 19 Aug 2004 03:48:24 +0000 (03:48 +0000)]
Rewrite test_order so as to be more "proper".  Originally relied on an
error based on decorating with staticmethod too soon for the code to execute.
This meant that if the test didn't pass it just errored out.  Now if the test
doesn't pass it leads to a failure instead.

20 years agofix SF bug #1008690: Incorrect <link rel="index"> href in Tutorial
Fred Drake [Thu, 19 Aug 2004 01:37:48 +0000 (01:37 +0000)]
fix SF bug #1008690: Incorrect <link rel="index"> href in Tutorial

The make_head_and_body() function used a hardcoded value for the
<link> element for the index; this patch causes the proper output
filename to be captured during the transformation phase so it can be
used during the page assembly phase.

20 years agoRemove commented definition of the MKHOWTO macro.
Matthias Klose [Wed, 18 Aug 2004 22:27:04 +0000 (22:27 +0000)]
Remove commented definition of the MKHOWTO macro.

20 years agoRemove zero-byte gif files from generated html docs
Matthias Klose [Wed, 18 Aug 2004 22:17:44 +0000 (22:17 +0000)]
Remove zero-byte gif files from generated html docs

20 years agoExpand tabs.
Martin v. Löwis [Wed, 18 Aug 2004 17:47:40 +0000 (17:47 +0000)]
Expand tabs.

20 years agoAdd support for FreeBSD 6.
Hye-Shik Chang [Wed, 18 Aug 2004 15:13:41 +0000 (15:13 +0000)]
Add support for FreeBSD 6.

20 years agoPatch #995126: Correct directory size, and generate GNU tarfiles by default.
Martin v. Löwis [Wed, 18 Aug 2004 13:57:44 +0000 (13:57 +0000)]
Patch #995126: Correct directory size, and generate GNU tarfiles by default.

20 years agoPatch #914291: Restore locale while readline is running.
Martin v. Löwis [Wed, 18 Aug 2004 13:34:00 +0000 (13:34 +0000)]
Patch #914291: Restore locale while readline is running.

20 years agoPatch #1011144: Correct regex for coding decls.
Martin v. Löwis [Wed, 18 Aug 2004 13:25:05 +0000 (13:25 +0000)]
Patch #1011144: Correct regex for coding decls.

20 years agoPatch #980082: Missing INCREF in PyType_Ready.
Martin v. Löwis [Wed, 18 Aug 2004 13:16:54 +0000 (13:16 +0000)]
Patch #980082: Missing INCREF in PyType_Ready.

20 years agoPatch #800236: add HTTPResponse.getheaders().
Martin v. Löwis [Wed, 18 Aug 2004 12:46:26 +0000 (12:46 +0000)]
Patch #800236: add HTTPResponse.getheaders().

20 years agoPatch #1006219: let inspect.getsource show '@' decorators and add tests for
Johannes Gijsbers [Wed, 18 Aug 2004 12:40:31 +0000 (12:40 +0000)]
Patch #1006219: let inspect.getsource show '@' decorators and add tests for
this (which are rather ugly, but it'll have to do until test_inspect gets a
major overhaul and a conversion to unittest). Thanks Simon Percivall!

20 years agoPatch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.
Martin v. Löwis [Wed, 18 Aug 2004 12:27:40 +0000 (12:27 +0000)]
Patch #791776: Replace SMTPHandler.date_time with email.Utils.formatdate.

20 years agoPatch #764217: Add nametofont function, exists parameter.
Martin v. Löwis [Wed, 18 Aug 2004 11:06:45 +0000 (11:06 +0000)]
Patch #764217: Add nametofont function, exists parameter.

20 years agoMove the bytecode optimizer upstream so that its results are saved in pyc
Raymond Hettinger [Wed, 18 Aug 2004 05:22:06 +0000 (05:22 +0000)]
Move the bytecode optimizer upstream so that its results are saved in pyc
files and not re-optimized upon import.  Saves a bit of startup time while
still remaining decoupled from the rest of the compiler.

As a side benefit, handcoded bytecode is not run through the optimizer
when new code objects are created.  Hopefully, a handcoder has already
created exactly what they want to have run.

(Idea suggested by Armin Rigo and Michael Hudson.  Initially avoided
 because of worries about compiler coupling; however, only the nexus
 point needed to be moved so there won't be a conflict when the AST
 branch is loaded.)

20 years agoVarious alpha 3 updates.
Raymond Hettinger [Wed, 18 Aug 2004 02:51:32 +0000 (02:51 +0000)]
Various alpha 3 updates.

20 years agoDeprecate sys.exitfunc in favor of the atexit module.
Raymond Hettinger [Wed, 18 Aug 2004 02:50:00 +0000 (02:50 +0000)]
Deprecate sys.exitfunc in favor of the atexit module.
Per Guido, sys.exitfunc will be kept around for backwards compatability
but atexit will become the one preferred way to do it.

20 years agoThis is Mark Russell's patch:
Michael W. Hudson [Tue, 17 Aug 2004 17:29:16 +0000 (17:29 +0000)]
This is Mark Russell's patch:

1009560 ] Fix @decorator evaluation order

From the description:

Changes in this patch:

- Change Grammar/Grammar to require
newlines between adjacent decorators.

- Fix order of evaluation of decorators
in the C (compile.c) and python
(Lib/compiler/pycodegen.py) compilers

- Add better order of evaluation check
to test_decorators.py (test_eval_order)

- Update the decorator documentation in
the reference manual (improve description
of evaluation order and update syntax
description)

and the comment:

Used Brett's evaluation order (see
http://mail.python.org/pipermail/python-dev/2004-August/047835.html)

(I'm checking this in for Anthony who was having problems getting SF to
talk to him)

20 years agoFixed bug in line-number finding for examples (DocTestParser wasn't
Edward Loper [Tue, 17 Aug 2004 16:37:12 +0000 (16:37 +0000)]
Fixed bug in line-number finding for examples (DocTestParser wasn't
updating line numbers correctly for bare prompts & examples containing
only comments).

20 years agoThere are no longer any special case test skips.
Raymond Hettinger [Tue, 17 Aug 2004 16:34:51 +0000 (16:34 +0000)]
There are no longer any special case test skips.

20 years agoRemove test of obsolete trim() operation which was supplanted by
Raymond Hettinger [Tue, 17 Aug 2004 16:27:04 +0000 (16:27 +0000)]
Remove test of obsolete trim() operation which was supplanted by
normalize() in Draft 1.06 (9 October 2002):

  The normalize operation has been added; it reduces a number to a
  canonical form.  (This replaces the trim operator, which only
  removed trailing fractional zeros.)

20 years agoUse readline/raw_input() in pydoc.Helper.interact if available and self.input
Johannes Gijsbers [Tue, 17 Aug 2004 13:21:53 +0000 (13:21 +0000)]
Use readline/raw_input() in pydoc.Helper.interact if available and self.input
is sys.stdin. Based on a patch (#726204) by Dmitry Vasiliev and a comment from
Guido in an older patch (#549901).

20 years agoThe get_installer_filename() method forgot to return the name it
Thomas Heller [Tue, 17 Aug 2004 10:15:07 +0000 (10:15 +0000)]
The get_installer_filename() method forgot to return the name it
calculates.  Spotted by Cort Danger Stratton.

20 years agoSF bug #833957: Ctrl+key combos stop working in IDLE
Raymond Hettinger [Tue, 17 Aug 2004 08:01:19 +0000 (08:01 +0000)]
SF bug #833957:  Ctrl+key combos stop working in IDLE

Make key combinations work with upper and lowercase as is the MS standard.

20 years agoThis file is no longer used in version 2.39.
Raymond Hettinger [Tue, 17 Aug 2004 06:56:25 +0000 (06:56 +0000)]
This file is no longer used in version 2.39.
Was supplanted by tointegral.decTest.

20 years agoAdd two new files and update remaining tests from the latest update of the
Raymond Hettinger [Tue, 17 Aug 2004 06:42:13 +0000 (06:42 +0000)]
Add two new files and update remaining tests from the latest update of the
test suite in version 2.39 of dectest.zip.

20 years agoRevise max() and min() to comply with the 8/2/2004 update to the specification
Raymond Hettinger [Tue, 17 Aug 2004 06:39:37 +0000 (06:39 +0000)]
Revise max() and min() to comply with the 8/2/2004 update to the specification
(version 1.45):

The max and min operations follow the rules in the current IEEE 754 revision draft:
if one operand is a quiet NaN and the other is number, then the number is always returned
if both operands are finite and equal in numerical value then an ordering is applied:
    if the signs differ then max returns the operand with the positive sign and
    min returns the operand with the negative sign; if the signs are the same then
    the exponent is used to select the result.

20 years ago* Dynamically build a list of files to be tested (necessary because
Raymond Hettinger [Tue, 17 Aug 2004 05:42:09 +0000 (05:42 +0000)]
* Dynamically build a list of files to be tested (necessary because
  version 2.39 of dectest.zip adds some new test files and because
  some existing test files were getting skipped).
* Remove two docstrings which cluttered unittest's output.
* Simplify a for-loop with a list comprehension.

20 years agoSF bug #951482: New module: doc versus action
Raymond Hettinger [Tue, 17 Aug 2004 02:31:55 +0000 (02:31 +0000)]
SF bug #951482:  New module: doc versus action

Strengthen the warnings about creating bogus objects using the new module.

20 years agoSF bug #805304: super instances don't support item assignment
Raymond Hettinger [Tue, 17 Aug 2004 02:21:45 +0000 (02:21 +0000)]
SF bug #805304:  super instances don't support item assignment

Document a nuance of super().  It is designed to work well with dotted
attribute lookup but not with equivalent implicit lookups using operators
or statements.

20 years agofix a couple problems with the last patch picked up by Michael Hudson
Skip Montanaro [Mon, 16 Aug 2004 16:15:13 +0000 (16:15 +0000)]
fix a couple problems with the last patch picked up by Michael Hudson

20 years agoTypo fix
Andrew M. Kuchling [Mon, 16 Aug 2004 16:12:23 +0000 (16:12 +0000)]
Typo fix

20 years agoTest cases and fixes for bugs described in patch #873418: email/Message.py:
Barry Warsaw [Mon, 16 Aug 2004 15:47:34 +0000 (15:47 +0000)]
Test cases and fixes for bugs described in patch #873418: email/Message.py:
del_param fails when specifying a header.

20 years agoBeing bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"
Skip Montanaro [Mon, 16 Aug 2004 15:35:54 +0000 (15:35 +0000)]
Being bsd-based, darwin/macosx has the same limitation w.r.t. the "echo"
service.

20 years ago- pygettext.py: Generate POT-Creation-Date header in ISO format.
Matthias Klose [Mon, 16 Aug 2004 12:10:12 +0000 (12:10 +0000)]
- pygettext.py: Generate POT-Creation-Date header in ISO format.

20 years agoThe attached patch fixes FTBFS on GNU/k*BSD. The problem happens on GNU/k*BSD
Matthias Klose [Mon, 16 Aug 2004 11:35:51 +0000 (11:35 +0000)]
The attached patch fixes FTBFS on GNU/k*BSD.  The problem happens on GNU/k*BSD
because GNU/k*BSD uses gnu pth to provide pthreads, but will also happen on any
system that does the same.

python fails to build because it doesn't detect gnu pth in pthread
emulation. See C comments in patch for details.

patch taken from http://bugs.debian.org/264315

20 years agoMinor improvements to the threading introduction:
Raymond Hettinger [Mon, 16 Aug 2004 05:11:04 +0000 (05:11 +0000)]
Minor improvements to the threading introduction:

* Expand the example to show a join.

* Mention the use case of I/O running concurrent with a computational
  thread.

* Be a tad more forceful about recommending Queue over other approaches
  to synchonization.

* Eliminate discussion around having a single interpreter.  This is a
  more advanced discussion that belongs in the library reference and
  in a section on extending and embedding.

20 years agoMinor formatting cleanup.
Raymond Hettinger [Mon, 16 Aug 2004 01:45:34 +0000 (01:45 +0000)]
Minor formatting cleanup.

20 years ago* Uncomment the SyntaxError doctest after Tim demonstrated how.
Raymond Hettinger [Mon, 16 Aug 2004 01:35:28 +0000 (01:35 +0000)]
* Uncomment the SyntaxError doctest after Tim demonstrated how.
* Remove unnecessary sys.PS2 prompt lines.

20 years agoFix punctuation typo.
Raymond Hettinger [Sun, 15 Aug 2004 23:51:38 +0000 (23:51 +0000)]
Fix punctuation typo.

20 years agoAdd a notes section to the docs:
Raymond Hettinger [Sun, 15 Aug 2004 23:47:48 +0000 (23:47 +0000)]
Add a notes section to the docs:

* Discuss representation error versus loss of significance.
* Document special values including qNaN, sNaN, +0, -0.
* Show the suprising display of non-normalized zero values.

20 years agoSF patch #872326: generator expression implementation
Raymond Hettinger [Sun, 15 Aug 2004 23:28:10 +0000 (23:28 +0000)]
SF patch #872326:  generator expression implementation
(Contributed by Jiwon Seo.)

Add genexps to the reference manual.

20 years ago- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).
Matthias Klose [Sun, 15 Aug 2004 17:04:33 +0000 (17:04 +0000)]
- Bug #891637, patch #1005466: fix inspect.getargs() crash on def foo((bar)).

20 years agoAdd get_history_item and replace_history_item functions to the readline
Skip Montanaro [Sun, 15 Aug 2004 14:32:06 +0000 (14:32 +0000)]
Add get_history_item and replace_history_item functions to the readline
module.  Closes patch #675551.  My apologies to Michal Vitecek for taking so
long to process this.

20 years agoMatch the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
Skip Montanaro [Sun, 15 Aug 2004 14:08:23 +0000 (14:08 +0000)]
Match the def'n of _XOPEN_SOURCE on Solaris 8/9 to suppress redefinition
warning from GCC.  Closes patch #1006629.

20 years agoQuote \r\n correctly, remove random indentation (patch #1009384). Thanks
Johannes Gijsbers [Sun, 15 Aug 2004 12:23:10 +0000 (12:23 +0000)]
Quote \r\n correctly, remove random indentation (patch #1009384). Thanks
Cherniavsky Beni!

20 years agoCorrect the order of application for decorators. Meant to be bottom-up and not
Brett Cannon [Sun, 15 Aug 2004 07:21:25 +0000 (07:21 +0000)]
Correct the order of application for decorators.  Meant to be bottom-up and not
top-down.  Now matches the PEP.

20 years agoFix incorrect comment for (struct compiling)->c_cellvars
Brett Cannon [Sun, 15 Aug 2004 01:15:01 +0000 (01:15 +0000)]
Fix incorrect comment for (struct compiling)->c_cellvars

20 years agoLet cgi.parse_header() properly unquote headers (patch #1008597).
Johannes Gijsbers [Sat, 14 Aug 2004 15:39:34 +0000 (15:39 +0000)]
Let cgi.parse_header() properly unquote headers (patch #1008597).

20 years agobug #989672: pdb.doc and the help messages for the help_d and help_u methods
Johannes Gijsbers [Sat, 14 Aug 2004 15:19:28 +0000 (15:19 +0000)]
bug #989672: pdb.doc and the help messages for the help_d and help_u methods
of the pdb.Pdb class gives have been corrected. d(own) goes to a newer frame,
u(p) to an older frame, not the other way around.

20 years agobug #990669: os.path.realpath() will resolve symlinks before normalizing the
Johannes Gijsbers [Sat, 14 Aug 2004 15:01:53 +0000 (15:01 +0000)]
bug #990669: os.path.realpath() will resolve symlinks before normalizing the
path, as normalizing the path may alter the meaning of the path if it contains
symlinks.

Also add tests for infinite symlink loops and parent symlinks that need to be
resolved.

20 years agoCatch OSError raised when src or dst argument to os.path.samefile doesn't
Johannes Gijsbers [Sat, 14 Aug 2004 14:51:01 +0000 (14:51 +0000)]
Catch OSError raised when src or dst argument to os.path.samefile doesn't
exist.

20 years agobug 990669: os.path.normpath may alter the meaning of a path if it contains
Johannes Gijsbers [Sat, 14 Aug 2004 14:41:32 +0000 (14:41 +0000)]
bug 990669: os.path.normpath may alter the meaning of a path if it contains
symbolic links. This has been documented in a comment since 1992, but is now in
the library reference as well.

20 years agobug #851123: shutil.copyfile will raise an exception when trying to copy a file
Johannes Gijsbers [Sat, 14 Aug 2004 14:03:03 +0000 (14:03 +0000)]
bug #851123: shutil.copyfile will raise an exception when trying to copy a file
onto a link to itself. Thanks Gregory Ball.

20 years agoUnwrap too-smart loop: we can't use `src` for both hard and symbolic links.
Johannes Gijsbers [Sat, 14 Aug 2004 13:57:08 +0000 (13:57 +0000)]
Unwrap too-smart loop: we can't use `src` for both hard and symbolic links.

20 years agoRaise an exception when src and dst refer to the same file via a hard link or a
Johannes Gijsbers [Sat, 14 Aug 2004 13:30:02 +0000 (13:30 +0000)]
Raise an exception when src and dst refer to the same file via a hard link or a
symbolic link (bug #851123 / patch #854853, thanks Gregory Ball).

20 years agoReset old locale after running tests. Not doing so broke
Johannes Gijsbers [Sat, 14 Aug 2004 10:56:54 +0000 (10:56 +0000)]
Reset old locale after running tests. Not doing so broke
test_format/test_unicode in some circumstances (patch #1007539/bug #992078).

20 years agoRemoved item about an asyncore patch that got backed out.
Tim Peters [Fri, 13 Aug 2004 22:34:14 +0000 (22:34 +0000)]
Removed item about an asyncore patch that got backed out.

20 years agoAnother microburst of snail-like progress.
Tim Peters [Fri, 13 Aug 2004 21:55:21 +0000 (21:55 +0000)]
Another microburst of snail-like progress.

20 years agoBack out patch #982681
Andrew M. Kuchling [Fri, 13 Aug 2004 20:06:57 +0000 (20:06 +0000)]
Back out patch #982681

20 years ago'inspect' was not listing the functions in a module properly if the module was
Brett Cannon [Fri, 13 Aug 2004 18:46:24 +0000 (18:46 +0000)]
'inspect' was not listing the functions in a module properly if the module was
reached through a symlink (was comparing path of module to path to function and
were not matching because of the symlink).  os.path.realpath() is now used to
solve this discrepency.

Closes bug #570300.  Thanks Johannes Gijsbers for the fix.

20 years agoHelp compiling icons into an exe, for use with MSI advertisement.
Martin v. Löwis [Fri, 13 Aug 2004 15:26:40 +0000 (15:26 +0000)]
Help compiling icons into an exe, for use with MSI advertisement.

20 years agoConvert weak iterators to generator form.
Raymond Hettinger [Fri, 13 Aug 2004 07:12:45 +0000 (07:12 +0000)]
Convert weak iterators to generator form.

20 years agoWhitespace normalization.
Tim Peters [Fri, 13 Aug 2004 03:57:22 +0000 (03:57 +0000)]
Whitespace normalization.

20 years agoDoctest has new traceback gimmicks in 2.4. While trying to document
Tim Peters [Fri, 13 Aug 2004 03:55:05 +0000 (03:55 +0000)]
Doctest has new traceback gimmicks in 2.4.  While trying to document
them (which they are now), I had to rewrite the code to understand
it.  This has got to be the most DWIM part of doctest -- but in context
is really necessary.

20 years agoSF patch #1005778, Fix seg fault if list object is modified during list.index()
Neal Norwitz [Fri, 13 Aug 2004 03:18:29 +0000 (03:18 +0000)]
SF patch #1005778, Fix seg fault if list object is modified during list.index()

Backport candidate

20 years agomake exception propogation more efficient; this avoids having Expat parse
Fred Drake [Fri, 13 Aug 2004 03:12:57 +0000 (03:12 +0000)]
make exception propogation more efficient; this avoids having Expat parse
the remaining data in the buffer (which it had done happily without reporting
any results)

this depends on a new feature in Expat added in 1.95.8

20 years agoinclude at least one example of an exception passing through pyexpat
Fred Drake [Fri, 13 Aug 2004 03:09:07 +0000 (03:09 +0000)]
include at least one example of an exception passing through pyexpat

20 years agoSF #1005913, Patch to allow building of paper-*/dist.pdf by Jeff Epler
Neal Norwitz [Fri, 13 Aug 2004 02:56:16 +0000 (02:56 +0000)]
SF #1005913, Patch to allow building of paper-*/dist.pdf by Jeff Epler

There were subsections without sections, so drop a sub.

20 years agoFix the version number in which changes were made
Neal Norwitz [Fri, 13 Aug 2004 02:34:06 +0000 (02:34 +0000)]
Fix the version number in which changes were made

20 years agoNit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
Tim Peters [Fri, 13 Aug 2004 01:52:59 +0000 (01:52 +0000)]
Nit in _IS_BLANK_OR_COMMENT comment -- it doesn't matter how this is
implemented, just what it does.

20 years agoMarkup fiddling.
Tim Peters [Fri, 13 Aug 2004 01:49:12 +0000 (01:49 +0000)]
Markup fiddling.

20 years agoExcruciatingly slow progress on the docs. Option flags / directive names
Tim Peters [Thu, 12 Aug 2004 22:31:25 +0000 (22:31 +0000)]
Excruciatingly slow progress on the docs.  Option flags / directive names
are documented now, and ripped out a bunch of "private name" convolutions.

20 years agoBoosted the stack reservation for python.exe and python_w.exe from the
Tim Peters [Thu, 12 Aug 2004 18:37:10 +0000 (18:37 +0000)]
Boosted the stack reservation for python.exe and python_w.exe from the
default 1MB to 2 million bytes.  The test suite passes with -uall again
(test_compiler no longer drives WinXP into an insane state).

20 years agoReport refleaks to stderr as the tests run as well as logging them
Michael W. Hudson [Thu, 12 Aug 2004 18:27:48 +0000 (18:27 +0000)]
Report refleaks to stderr as the tests run as well as logging them
to a file.

20 years agoThis is my patch:
Michael W. Hudson [Thu, 12 Aug 2004 18:19:17 +0000 (18:19 +0000)]
This is my patch:

1005891 ] support --with-tsc on PPC

plus a trivial change to settscdump's docstring and a Misc/NEWS entry.

20 years agocode_new(): Wouldn't compile on Windows, because of gcc'ism.
Tim Peters [Thu, 12 Aug 2004 18:16:43 +0000 (18:16 +0000)]
code_new():  Wouldn't compile on Windows, because of gcc'ism.

20 years agoThis is my patch
Michael W. Hudson [Thu, 12 Aug 2004 18:12:44 +0000 (18:12 +0000)]
This is my patch

1004703 ] Make func_name writable

plus fixing a couple of nits in the documentation changes spotted by MvL
and a Misc/NEWS entry.

20 years agoA NEWS entry for my last checked in change (I've gotten out of the
Michael W. Hudson [Thu, 12 Aug 2004 18:09:00 +0000 (18:09 +0000)]
A NEWS entry for my last checked in change (I've gotten out of the
habit of these, sorry).

20 years agoFix bug
Michael W. Hudson [Thu, 12 Aug 2004 17:56:29 +0000 (17:56 +0000)]
Fix bug

1005248 ] new.code() not cleanly checking its arguments

using the result of new.code() can still destroy the sun, but merely
calling the function shouldn't any more.

I also rewrote the existing tests of new.code() to use vastly less
un-bogus arguments, and added tests for the previous insane behaviours.

20 years agoPatch #1005468: Disambiguate "min() or max()" exception string.
Martin v. Löwis [Thu, 12 Aug 2004 14:42:37 +0000 (14:42 +0000)]
Patch #1005468: Disambiguate "min() or max()" exception string.

20 years agoPatch #1006916: Remove ODBC library references.
Martin v. Löwis [Thu, 12 Aug 2004 14:07:49 +0000 (14:07 +0000)]
Patch #1006916: Remove ODBC library references.

20 years agoDefine _BSD_TYPES. Fixes #1005308. Backported to 2.3.
Martin v. Löwis [Thu, 12 Aug 2004 13:45:08 +0000 (13:45 +0000)]
Define _BSD_TYPES. Fixes #1005308. Backported to 2.3.

20 years agoPatch #1005568: Use _SC_PAGESIZE on Irix.
Martin v. Löwis [Thu, 12 Aug 2004 13:26:56 +0000 (13:26 +0000)]
Patch #1005568: Use _SC_PAGESIZE on Irix.
Backported to 2.3.

20 years agoPatch #808719: Ignore the locale's encoding if it is an empty string.
Martin v. Löwis [Thu, 12 Aug 2004 13:14:52 +0000 (13:14 +0000)]
Patch #808719: Ignore the locale's encoding if it is an empty string.
Backported to 2.3.