Benjamin Peterson
64c82753de
reduce marshal stack size in debug mode on windows ( closes #27019 )
2016-07-06 23:37:02 -07:00
Serhiy Storchaka
fe2e839565
Fix reference leaks introduced by the patch for issue #5308 .
2013-07-11 19:14:07 +03:00
Serhiy Storchaka
34fe1b7a3d
Issue #5308 : Raise ValueError when marshalling too large object (a sequence
...
with size >= 2**31), instead of producing illegal marshal data.
2013-02-13 12:07:43 +02:00
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
2010-05-09 14:46:46 +00:00
Antoine Pitrou
18e63fbe64
Issue #7332 : Remove the 16KB stack-based buffer in
...
PyMarshal_ReadLastObjectFromFile, which doesn't bring any noticeable
benefit compared to the dynamic memory allocation fallback. Patch by
Charles-François Natali.
2010-04-21 22:53:29 +00:00
Benjamin Peterson
bea424af98
more _PyString_Resize error checking
2010-04-03 00:57:33 +00:00
Mark Dickinson
51ae4921b3
Set retval on PyOS_string_to_double failure.
2009-10-31 12:47:47 +00:00
Eric Smith
b218d289e6
Removed PyOS_ascii_atof from marshal.c, as mentioned in issue 7117. Also brings it more in line with py3k.
2009-10-27 19:42:57 +00:00
Eric Smith
156692752d
Removed calls to PyFloat_AsReprString.
...
This is in anticipation of possibly implementing issue 7117 (short float repr).
This removes the last calls to PyFloat_AsString, PyFloat_AsReprString, and
PyFloat_AsStringEx, which are unsafe.
Also, switch to defines for error values to bring this code more in line
with the py3k branch.
2009-10-19 00:34:12 +00:00
Mark Dickinson
7e7a3ec901
Issue #7019 : Unmarshalling of bad long data could produce unnormalized
...
PyLongs. Raise ValueError instead.
2009-09-29 19:01:06 +00:00
R. David Murray
525cffcd7e
Move news item to correct section, remove spurious 'see below'
...
from docstring.
2009-05-13 13:07:14 +00:00
R. David Murray
a3ec697cbd
Issue 5994: add docstrings to marshal.
2009-05-13 00:30:29 +00:00
Mark Dickinson
efc82f7e8e
Issue #4258 : Use 30-bit digits for Python longs, on 64-bit platforms.
...
Backport of r70459.
2009-03-20 15:51:55 +00:00
Nick Coghlan
8eba5ed0d9
Make marshalling errors a little more informative as to what went wrong
2009-03-15 03:24:46 +00:00
Raymond Hettinger
305480c9dc
Issue 3116: fix quadratic behavior in marshal.dumps().
2008-06-16 01:42:40 +00:00
Gregory P. Smith
dd96db63f6
This reverts r63675 based on the discussion in this thread:
...
http://mail.python.org/pipermail/python-dev/2008-June/079988.html
Python 2.6 should stick with PyString_* in its codebase. The PyBytes_* names
in the spirit of 3.0 are available via a #define only. See the email thread.
2008-06-09 04:58:54 +00:00
Christian Heimes
593daf545b
Renamed PyString to PyBytes
2008-05-26 12:51:38 +00:00
Andrew M. Kuchling
6c02916dfb
#1792 : Improve performance of marshal.dumps() on large objects by increasing
...
the size of the buffer more quickly.
2008-05-11 13:33:56 +00:00
Neal Norwitz
fb43d1e4aa
Fix refleak
2008-02-01 07:22:59 +00:00
Christian Heimes
67ac0667f0
Removed unused var
2008-01-30 11:46:00 +00:00
Raymond Hettinger
bf3d1d5dc8
Removed unnecessary conditional (spotted by Neal Norwitz).
2008-01-28 21:51:25 +00:00
Raymond Hettinger
52716c94be
Let marshal built-up sets and frozensets one element at a time (without creating an intermediate tuple).
2008-01-28 21:34:30 +00:00
Raymond Hettinger
dee3f65d98
Revert PySet_Add() changes.
2008-01-26 09:31:11 +00:00
Raymond Hettinger
b423f02aa5
Let marshal build-up sets and frozensets one element at a time.
...
Saves the unnecessary creation of a tuple as intermediate container.
2008-01-26 08:37:28 +00:00
Raymond Hettinger
12e94200c0
Fix marshal's incorrect handling of subclasses of builtin types (backport candidate).
2007-11-07 01:13:09 +00:00