]> granicus.if.org Git - python/log
python
16 years agoSilence 'r may be used uninitialized' compiler warning.
Mark Dickinson [Mon, 21 Apr 2008 01:55:50 +0000 (01:55 +0000)]
Silence 'r may be used uninitialized' compiler warning.

16 years agoComment typo
Andrew M. Kuchling [Mon, 21 Apr 2008 01:45:57 +0000 (01:45 +0000)]
Comment typo

16 years agomath.atan2 is misbehaving on Windows; this patch
Mark Dickinson [Sun, 20 Apr 2008 21:39:04 +0000 (21:39 +0000)]
math.atan2 is misbehaving on Windows;  this patch
should fix the problem in the same way that
the cmath.phase problems were fixed.

16 years agoCorrect an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains
Amaury Forgeot d'Arc [Sun, 20 Apr 2008 21:02:21 +0000 (21:02 +0000)]
Correct an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains
info for all processed zip files, even when they are no longer used.

16 years agoAdd test for tanh(-0.) == -0. on IEEE 754 systems
Mark Dickinson [Sun, 20 Apr 2008 20:38:48 +0000 (20:38 +0000)]
Add test for tanh(-0.) == -0. on IEEE 754 systems

16 years agoEven more fixes for alpha Tru64, this time for
Mark Dickinson [Sun, 20 Apr 2008 18:30:05 +0000 (18:30 +0000)]
Even more fixes for alpha Tru64, this time for
the phase and polar methods.

16 years agoMove description of math module changes; various edits to description of cmath changes
Andrew M. Kuchling [Sun, 20 Apr 2008 16:54:02 +0000 (16:54 +0000)]
Move description of math module changes; various edits to description of cmath changes

16 years agoIssue 2662: Initialize special value tables dynamically (i.e. when
Mark Dickinson [Sun, 20 Apr 2008 16:13:17 +0000 (16:13 +0000)]
Issue 2662: Initialize special value tables dynamically (i.e. when
cmath module is loaded) instead of statically. This fixes compile-time
problems on platforms where HUGE_VAL is an extern variable rather than
a constant.

Thanks Hirokazu Yamamoto for the patch.

16 years agoYet more explicit special case handling to make
Mark Dickinson [Sun, 20 Apr 2008 04:13:13 +0000 (04:13 +0000)]
Yet more explicit special case handling to make
math.pow behave on alpha Tru64.  All IEEE 754
special values are now handled directly; only
the finite**finite case is handled by libm.

16 years agoFreeBSD doesn't follow C99 for modf(inf); so add explicit
Mark Dickinson [Sun, 20 Apr 2008 01:39:24 +0000 (01:39 +0000)]
FreeBSD doesn't follow C99 for modf(inf); so add explicit
special-value handling to math.modf code.

16 years agoReport additional diagnostic information in
Mark Dickinson [Sun, 20 Apr 2008 01:22:30 +0000 (01:22 +0000)]
Report additional diagnostic information in
test_math, to help track down debian-alpha
buildbot failure.

16 years agoMove asinh documentation to the proper place.
Mark Dickinson [Sat, 19 Apr 2008 21:49:22 +0000 (21:49 +0000)]
Move asinh documentation to the proper place.
Remove meaningless 'in radians' from inverse
hyperbolic functions.

16 years agoCorrect documentation for math.pow;
Mark Dickinson [Sat, 19 Apr 2008 21:35:35 +0000 (21:35 +0000)]
Correct documentation for math.pow;
0**nan is nan, not 0.  (But nan**0 and 1**nan are 1.)

Also fix minor typo: 'quite NaN' -> 'quiet NaN'

16 years agoUpdate template for newest Sphinx.
Georg Brandl [Sat, 19 Apr 2008 21:28:38 +0000 (21:28 +0000)]
Update template for newest Sphinx.

16 years agoDocument updates to math and cmath modules.
Mark Dickinson [Sat, 19 Apr 2008 20:31:16 +0000 (20:31 +0000)]
Document updates to math and cmath modules.

16 years agoComplete documentation for errors argument of io's open and TextIOWrapper
Benjamin Peterson [Sat, 19 Apr 2008 19:47:34 +0000 (19:47 +0000)]
Complete documentation for errors argument of io's open and TextIOWrapper

16 years agoAdditional special-case handling for math.pow.
Mark Dickinson [Sat, 19 Apr 2008 19:41:52 +0000 (19:41 +0000)]
Additional special-case handling for math.pow.
Windows/VS2008 doesn't like (-1)**(+-inf).

16 years agoCopy io documentation back from py3k branch so changes can be merged into it.
Benjamin Peterson [Sat, 19 Apr 2008 19:34:05 +0000 (19:34 +0000)]
Copy io documentation back from py3k branch so changes can be merged into it.

16 years agoAdditional tests for math.pow, and extra special-case
Mark Dickinson [Sat, 19 Apr 2008 18:51:48 +0000 (18:51 +0000)]
Additional tests for math.pow, and extra special-case
handling code in math.pow, in the hope of making all
tests pass on the alpha Tru64 buildbot.

16 years ago:func: et al. should *not* include the parens.
Georg Brandl [Sat, 19 Apr 2008 17:00:14 +0000 (17:00 +0000)]
:func: et al. should *not* include the parens.

16 years ago#2631: clarify IMPORT_NAME semantics.
Georg Brandl [Sat, 19 Apr 2008 16:59:16 +0000 (16:59 +0000)]
#2631: clarify IMPORT_NAME semantics.

16 years ago#2633: clarify meaning of env parameter.
Georg Brandl [Sat, 19 Apr 2008 16:58:49 +0000 (16:58 +0000)]
#2633: clarify meaning of env parameter.

16 years ago#2634: clarify meaning of env parameter to spawn/exec*e.
Georg Brandl [Sat, 19 Apr 2008 16:58:28 +0000 (16:58 +0000)]
#2634: clarify meaning of env parameter to spawn/exec*e.

16 years ago#2369: clarify that copyfile() doesn't take a target directory.
Georg Brandl [Sat, 19 Apr 2008 16:57:43 +0000 (16:57 +0000)]
#2369: clarify that copyfile() doesn't take a target directory.

16 years agoFix-up docs for revision 62386.
Georg Brandl [Sat, 19 Apr 2008 08:23:59 +0000 (08:23 +0000)]
Fix-up docs for revision 62386.

16 years agoAdded kill, terminate and send_signal to subprocess.Popen
Christian Heimes [Sat, 19 Apr 2008 02:23:57 +0000 (02:23 +0000)]
Added kill, terminate and send_signal to subprocess.Popen
The bits and pieces for the Windows side were already in place. The POSIX side is trivial (as usual) and uses os.kill().

16 years agoStupid me. Py_RETURN_NAN should actually return something ...
Christian Heimes [Fri, 18 Apr 2008 23:49:11 +0000 (23:49 +0000)]
Stupid me. Py_RETURN_NAN should actually return something ...

16 years agoAdded new files to Windows project files
Christian Heimes [Fri, 18 Apr 2008 23:40:40 +0000 (23:40 +0000)]
Added new files to Windows project files
More Windows related fixes are coming soon

16 years agoSome tests did not pass on repeated calls (regrtest -R::)
Amaury Forgeot d'Arc [Fri, 18 Apr 2008 23:31:33 +0000 (23:31 +0000)]
Some tests did not pass on repeated calls (regrtest -R::)
Perform additional cleanup, mostly deleting from sys.modules, or clearing the warnings registry.

16 years agoI finally got the time to update and merge Mark's and my trunk-math branch. The patch...
Christian Heimes [Fri, 18 Apr 2008 23:13:07 +0000 (23:13 +0000)]
I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.

The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)

16 years agoFix indentation in sysmodule.c
Benjamin Peterson [Fri, 18 Apr 2008 20:45:33 +0000 (20:45 +0000)]
Fix indentation in sysmodule.c

16 years agoresolve issue 2014
Skip Montanaro [Fri, 18 Apr 2008 20:35:46 +0000 (20:35 +0000)]
resolve issue 2014

16 years agoRewrite introductory section, and remove old section. (It was already commented...
Andrew M. Kuchling [Fri, 18 Apr 2008 18:39:55 +0000 (18:39 +0000)]
Rewrite introductory section, and remove old section.  (It was already commented-out, but why keep it?)

16 years agoRemove personal note from Jim Roskind; it no longer applies, and the
Andrew M. Kuchling [Fri, 18 Apr 2008 18:28:23 +0000 (18:28 +0000)]
Remove personal note from Jim Roskind; it no longer applies, and the
e-mail address is for a previous employer.

Can we move the big long copyright statement into a sidebar or something?

16 years ago#2654: fix typo
Andrew M. Kuchling [Fri, 18 Apr 2008 16:53:09 +0000 (16:53 +0000)]
#2654: fix typo

16 years agoUse correct parameter name
Andrew M. Kuchling [Fri, 18 Apr 2008 02:40:47 +0000 (02:40 +0000)]
Use correct parameter name

16 years agoTypo fixes
Andrew M. Kuchling [Thu, 17 Apr 2008 20:44:06 +0000 (20:44 +0000)]
Typo fixes

16 years agoBe consistent in the use of read-only.
Jeroen Ruigrok van der Werven [Thu, 17 Apr 2008 12:39:45 +0000 (12:39 +0000)]
Be consistent in the use of read-only.

16 years agoIssue 2648: Add leading zero to money format recipe in the docs.
Raymond Hettinger [Thu, 17 Apr 2008 10:48:31 +0000 (10:48 +0000)]
Issue 2648: Add leading zero to money format recipe in the docs.

16 years agoAdd details about the return value for mmap.flush().
Jeroen Ruigrok van der Werven [Wed, 16 Apr 2008 12:57:43 +0000 (12:57 +0000)]
Add details about the return value for mmap.flush().

16 years agoReformat to 80 columns prior to adding documentation.
Jeroen Ruigrok van der Werven [Wed, 16 Apr 2008 12:47:01 +0000 (12:47 +0000)]
Reformat to 80 columns prior to adding documentation.

16 years agoFix for possible signed overflow: the behaviour of -LONG_MIN is
Mark Dickinson [Tue, 15 Apr 2008 20:51:18 +0000 (20:51 +0000)]
Fix for possible signed overflow:  the behaviour of -LONG_MIN is
undefined in ANSI C.

16 years agoTypo fix
Andrew M. Kuchling [Tue, 15 Apr 2008 13:10:41 +0000 (13:10 +0000)]
Typo fix

16 years agoAdd *,**,@ to index, as suggested by
Andrew M. Kuchling [Tue, 15 Apr 2008 13:10:07 +0000 (13:10 +0000)]
Add *,**,@ to index, as suggested by
http://farmdev.com/thoughts/24/what-does-the-def-star-variable-or-def-asterisk-parameter-syntax-do-in-python-/

The right entry type to use isn't clear; operator seems wrong, because *,**,@
aren't being used in expressions here.  I put them as 'statement'; 'syntax'
might be better.

16 years agoAdd myself to Doc/ACKS.txt
Benjamin Peterson [Tue, 15 Apr 2008 11:58:46 +0000 (11:58 +0000)]
Add myself to Doc/ACKS.txt

16 years agoAdd test file missing from rev 62350
Nick Coghlan [Tue, 15 Apr 2008 10:28:14 +0000 (10:28 +0000)]
Add test file missing from rev 62350

16 years agoIssue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data...
Nick Coghlan [Tue, 15 Apr 2008 10:25:31 +0000 (10:25 +0000)]
Issue 2439: add pkgutils.get_data() as a convenience wrapper for the PEP 302 get_data() API (contributed by Paul Moore)

16 years agoPrevent namespace pollution, add static for internal functions
Neal Norwitz [Tue, 15 Apr 2008 03:46:21 +0000 (03:46 +0000)]
Prevent namespace pollution, add static for internal functions

16 years agoVarious items; begin writing the SSL section
Andrew M. Kuchling [Tue, 15 Apr 2008 02:24:15 +0000 (02:24 +0000)]
Various items; begin writing the SSL section

16 years agoBackport manually r62342 from the py3k branch to the trunk.
Alexandre Vassalotti [Mon, 14 Apr 2008 22:40:08 +0000 (22:40 +0000)]
Backport manually r62342 from the py3k branch to the trunk.

16 years agoCorrect a refleak found by "regrtest.py -R:: test_structmembers"
Amaury Forgeot d'Arc [Mon, 14 Apr 2008 20:07:48 +0000 (20:07 +0000)]
Correct a refleak found by "regrtest.py -R:: test_structmembers"

Some other minor updates in _warnings.c:
- make a function static
- rename a shadowing local variable

16 years agoUpdate project files for all Windows supported compilers
Amaury Forgeot d'Arc [Mon, 14 Apr 2008 19:55:40 +0000 (19:55 +0000)]
Update project files for all Windows supported compilers

16 years agoIssue #2616: Implement ctypes.pointer() and ctypes.POINTER() in C for
Thomas Heller [Mon, 14 Apr 2008 16:10:07 +0000 (16:10 +0000)]
Issue #2616: Implement ctypes.pointer() and ctypes.POINTER() in C for
better performance.

16 years agoAdd example
Andrew M. Kuchling [Sun, 13 Apr 2008 22:39:12 +0000 (22:39 +0000)]
Add example

16 years agoCheck out Jinja as a separate step now that it's not included in the Sphinx package...
Georg Brandl [Sun, 13 Apr 2008 20:51:27 +0000 (20:51 +0000)]
Check out Jinja as a separate step now that it's not included in the Sphinx package anymore.

16 years agoImprove -X error message.
Georg Brandl [Sun, 13 Apr 2008 20:50:29 +0000 (20:50 +0000)]
Improve -X error message.

16 years agoAdded an ignore file for Bazaar #2510
Benjamin Peterson [Sun, 13 Apr 2008 20:40:03 +0000 (20:40 +0000)]
Added an ignore file for Bazaar #2510

16 years ago#2627 Let it be known what pgen generates
Benjamin Peterson [Sun, 13 Apr 2008 20:35:56 +0000 (20:35 +0000)]
#2627 Let it be known what pgen generates

16 years agoFix spliting on colons on Windows machines with a file path by limiting the
Brett Cannon [Sun, 13 Apr 2008 17:41:31 +0000 (17:41 +0000)]
Fix spliting on colons on Windows machines with a file path by limiting the
number of splits.

16 years agoAdd an explicit check for output in a test to try to diagnose a failure on
Brett Cannon [Sun, 13 Apr 2008 17:09:43 +0000 (17:09 +0000)]
Add an explicit check for output in a test to try to diagnose a failure on
Windows.

16 years agoAdded new files to the pcbuild files
Christian Heimes [Sun, 13 Apr 2008 09:37:05 +0000 (09:37 +0000)]
Added new files to the pcbuild files

16 years agoUse PyString_InternFromString instead of PyString_FromString for static vars
Christian Heimes [Sun, 13 Apr 2008 09:33:24 +0000 (09:33 +0000)]
Use PyString_InternFromString instead of PyString_FromString for static vars

16 years agoFix compiler warning Include/warnings.h:19:28: warning: no newline at end of file
Christian Heimes [Sun, 13 Apr 2008 09:30:17 +0000 (09:30 +0000)]
Fix compiler warning Include/warnings.h:19:28: warning: no newline at end of file

16 years agoFix markup.
Georg Brandl [Sun, 13 Apr 2008 07:07:44 +0000 (07:07 +0000)]
Fix markup.

16 years agospelling
Skip Montanaro [Sun, 13 Apr 2008 03:17:30 +0000 (03:17 +0000)]
spelling

16 years agoFix test_warnings by making the state of things more consistent for each test
Brett Cannon [Sun, 13 Apr 2008 02:42:36 +0000 (02:42 +0000)]
Fix test_warnings by making the state of things more consistent for each test
when it is run.

16 years agoGive the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link...
Benjamin Peterson [Sun, 13 Apr 2008 02:20:05 +0000 (02:20 +0000)]
Give the "Interactive Interpreter Changes" section in 2.6 whatsnew a unique link name

16 years agoBackport the removal of a __repr__ from 62251
Benjamin Peterson [Sun, 13 Apr 2008 02:05:48 +0000 (02:05 +0000)]
Backport the removal of a __repr__ from 62251

16 years agoBackported io module docs
Benjamin Peterson [Sun, 13 Apr 2008 02:01:27 +0000 (02:01 +0000)]
Backported io module docs

16 years agoMention -J, -X
Andrew M. Kuchling [Sun, 13 Apr 2008 01:05:59 +0000 (01:05 +0000)]
Mention -J, -X

16 years agoFix an accidental bug of an non-existent init function.
Brett Cannon [Sun, 13 Apr 2008 00:25:15 +0000 (00:25 +0000)]
Fix an accidental bug of an non-existent init function.

16 years agoFix a bug in PySys_HasWarnOption() where it was not properly checking the
Brett Cannon [Sun, 13 Apr 2008 00:18:44 +0000 (00:18 +0000)]
Fix a bug in PySys_HasWarnOption() where it was not properly checking the
length of the list storing the warning options.

16 years agoAdds a profile-opt target for easy compilation of a python binary using
Gregory P. Smith [Sun, 13 Apr 2008 00:03:25 +0000 (00:03 +0000)]
Adds a profile-opt target for easy compilation of a python binary using
gcc's profile guided optimization.

16 years agoRe-implement the 'warnings' module in C. This allows for usage of the
Brett Cannon [Sat, 12 Apr 2008 23:44:07 +0000 (23:44 +0000)]
Re-implement the 'warnings' module in C. This allows for usage of the
'warnings' code in places where it was previously not possible (e.g., the
parser). It could also potentially lead to a speed-up in interpreter start-up
if the C version of the code (_warnings) is imported over the use of the
Python version in key places.

Closes issue #1631171.

16 years agosocket.error inherits from IOError, it no longer needs listing in
Gregory P. Smith [Sat, 12 Apr 2008 22:24:04 +0000 (22:24 +0000)]
socket.error inherits from IOError, it no longer needs listing in
the all_errors tuple.

16 years agofix compiler warnings
Gregory P. Smith [Sat, 12 Apr 2008 20:37:48 +0000 (20:37 +0000)]
fix compiler warnings

16 years agoDon't offend snake lovers.
Georg Brandl [Sat, 12 Apr 2008 19:05:37 +0000 (19:05 +0000)]
Don't offend snake lovers.

16 years agoAdd Jeroen.
Georg Brandl [Sat, 12 Apr 2008 19:00:20 +0000 (19:00 +0000)]
Add Jeroen.

16 years ago#2615: small consistency update by Jeroen Ruigrok van der Werven.
Georg Brandl [Sat, 12 Apr 2008 18:36:09 +0000 (18:36 +0000)]
#2615: small consistency update by Jeroen Ruigrok van der Werven.

16 years agoUse absolute path in sys.path.
Georg Brandl [Sat, 12 Apr 2008 18:11:18 +0000 (18:11 +0000)]
Use absolute path in sys.path.

16 years agoApplied patch #2617 from Frank Wierzbicki wit some extras from me
Christian Heimes [Sat, 12 Apr 2008 13:03:03 +0000 (13:03 +0000)]
Applied patch #2617 from Frank Wierzbicki wit some extras from me
-J and -X are now reserved for Jython and non-standard arguments (e.g. IronPython). I've added some extra comments to make sure the reservation don't get missed in the future.

16 years agoPerformance improvements.
Thomas Heller [Fri, 11 Apr 2008 14:20:26 +0000 (14:20 +0000)]
Performance improvements.

16 years agoMove backwards compatibility macro to the correct place;
Thomas Heller [Fri, 11 Apr 2008 13:05:38 +0000 (13:05 +0000)]
Move backwards compatibility macro to the correct place;
PyIndex_Check() was introduced in Python 2.5.

16 years agoUse issue directive
Andrew M. Kuchling [Thu, 10 Apr 2008 21:29:01 +0000 (21:29 +0000)]
Use issue directive

16 years agoAdd punctuation
Andrew M. Kuchling [Thu, 10 Apr 2008 21:28:51 +0000 (21:28 +0000)]
Add punctuation

16 years agoRemove forward-looking statement
Andrew M. Kuchling [Thu, 10 Apr 2008 21:27:10 +0000 (21:27 +0000)]
Remove forward-looking statement

16 years agoget rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.
Gregory P. Smith [Thu, 10 Apr 2008 19:50:36 +0000 (19:50 +0000)]
get rid of assert (size >= 0) now that an explicit if (size < 0) is in the code.

16 years agoRemove the test file before writing it in case there is no write permission.
Neal Norwitz [Thu, 10 Apr 2008 05:46:39 +0000 (05:46 +0000)]
Remove the test file before writing it in case there is no write permission.
This might help fix some of the failures on Windows box(es).  It doesn't hurt
either way and ensure the tests are a little more self contained (ie have
less assumptions).

16 years agoMerged revisions 62080-62262 via svnmerge from
Martin v. Löwis [Thu, 10 Apr 2008 02:48:01 +0000 (02:48 +0000)]
Merged revisions 62080-62262 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r62092 | collin.winter | 2008-04-01 18:27:10 +0200 (Di, 01 Apr 2008) | 1 line

  Add get_prev_sibling() to complement pytree's get_next_sibling().
........
  r62226 | collin.winter | 2008-04-08 21:07:56 +0200 (Di, 08 Apr 2008) | 1 line

  Add min() and max() to the list of special contexts that don't require adding list() calls around dict methods.
........
  r62232 | collin.winter | 2008-04-09 00:12:38 +0200 (Mi, 09 Apr 2008) | 4 lines

  Fix for http://bugs.python.org/issue2596

  This extends fix_xrange to know about the (mostly) same special contexts as fix_dict (where a special context is something that is guaranteed to fully consume the iterable), adding list() calls where appropriate. It also special-cases "x in range(y)".
........

16 years agoRaise SystemError when size < 0 is passed into PyString_FromStringAndSize,
Gregory P. Smith [Wed, 9 Apr 2008 23:16:37 +0000 (23:16 +0000)]
Raise SystemError when size < 0 is passed into PyString_FromStringAndSize,
PyBytes_FromStringAndSize or PyUnicode_FromStringAndSize.  [issue2587]

16 years agobetter diagnostics
Gregory P. Smith [Wed, 9 Apr 2008 23:11:56 +0000 (23:11 +0000)]
better diagnostics

16 years agoTry out the new issue role. Thanks, Georg!
Andrew M. Kuchling [Wed, 9 Apr 2008 22:28:43 +0000 (22:28 +0000)]
Try out the new issue role.  Thanks, Georg!

16 years agoPackage wininst*.exe from distutils/command.
Martin v. Löwis [Wed, 9 Apr 2008 18:56:20 +0000 (18:56 +0000)]
Package wininst*.exe from distutils/command.

16 years agoAdd a note about the zlib.decompressobj().flush() fix.
Gregory P. Smith [Wed, 9 Apr 2008 18:18:43 +0000 (18:18 +0000)]
Add a note about the zlib.decompressobj().flush() fix.

16 years agoAdd :issue: directive for easy linking to bugs.python.org.
Georg Brandl [Wed, 9 Apr 2008 17:58:56 +0000 (17:58 +0000)]
Add :issue: directive for easy linking to bugs.python.org.

16 years ago#2585: initialize code attribute of HTTPError.
Georg Brandl [Wed, 9 Apr 2008 17:57:38 +0000 (17:57 +0000)]
#2585: initialize code attribute of HTTPError.

16 years agoChanged test so it no longer runs as a side effect of importing.
Jerry Seutter [Wed, 9 Apr 2008 05:07:58 +0000 (05:07 +0000)]
Changed test so it no longer runs as a side effect of importing.

16 years agoAdd items
Andrew M. Kuchling [Wed, 9 Apr 2008 01:08:32 +0000 (01:08 +0000)]
Add items

16 years agoFix typo with regards to self.PORT shadowing class variables with the same name.
Trent Nelson [Wed, 9 Apr 2008 00:34:53 +0000 (00:34 +0000)]
Fix typo with regards to self.PORT shadowing class variables with the same name.

16 years agoFix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
Gregory P. Smith [Wed, 9 Apr 2008 00:25:17 +0000 (00:25 +0000)]
Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive.
It tried to allocate negative or zero memory.  That fails.