Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move news item to correct section, remove spurious 'see below' | R. David Murray | 2009-05-13 | 1 | -1/+1 |
| | | | | from docstring. | ||||
* | Issue 5994: add docstrings to marshal. | R. David Murray | 2009-05-13 | 1 | -5/+81 |
| | |||||
* | Issue #4258: Use 30-bit digits for Python longs, on 64-bit platforms. | Mark Dickinson | 2009-03-20 | 1 | -39/+105 |
| | | | | Backport of r70459. | ||||
* | Make marshalling errors a little more informative as to what went wrong | Nick Coghlan | 2009-03-15 | 1 | -13/+13 |
| | |||||
* | Issue 3116: fix quadratic behavior in marshal.dumps(). | Raymond Hettinger | 2008-06-16 | 1 | -1/+1 |
| | |||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -18/+18 |
| | | | | | | | 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. | ||||
* | Renamed PyString to PyBytes | Christian Heimes | 2008-05-26 | 1 | -18/+18 |
| | |||||
* | #1792: Improve performance of marshal.dumps() on large objects by increasing | Andrew M. Kuchling | 2008-05-11 | 1 | -1/+4 |
| | | | | the size of the buffer more quickly. | ||||
* | Fix refleak | Neal Norwitz | 2008-02-01 | 1 | -0/+1 |
| | |||||
* | Removed unused var | Christian Heimes | 2008-01-30 | 1 | -1/+1 |
| | |||||
* | Removed unnecessary conditional (spotted by Neal Norwitz). | Raymond Hettinger | 2008-01-28 | 1 | -1/+1 |
| | |||||
* | Let marshal built-up sets and frozensets one element at a time (without ↵ | Raymond Hettinger | 2008-01-28 | 1 | -12/+8 |
| | | | | creating an intermediate tuple). | ||||
* | Revert PySet_Add() changes. | Raymond Hettinger | 2008-01-26 | 1 | -8/+12 |
| | |||||
* | Let marshal build-up sets and frozensets one element at a time. | Raymond Hettinger | 2008-01-26 | 1 | -12/+8 |
| | | | | Saves the unnecessary creation of a tuple as intermediate container. | ||||
* | Fix marshal's incorrect handling of subclasses of builtin types (backport ↵ | Raymond Hettinger | 2007-11-07 | 1 | -10/+10 |
| | | | | candidate). | ||||
* | Fix Coverity 185-186: If the passed in FILE is NULL, uninitialized memory | Neal Norwitz | 2007-10-12 | 1 | -0/+2 |
| | | | | | | would be accessed. Will backport. | ||||
* | Last try for tweaking the max stack depth. 5000 was the original value, | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | 4000 didn't work either. 1000 does work on Windows. If 2000 works, that will hopefully be a reasonable balance. | ||||
* | Set the depth to something very small to try to determine if the | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | crashes on Windows are really due to the stack size or possibly some other problem. | ||||
* | Reduce the max stack depth to see if this fixes the segfaults on | Neal Norwitz | 2007-05-17 | 1 | -1/+1 |
| | | | | | Windows and some other boxes. If this is successful, this rev should be backported. I'm not sure how close to the limit we should push this. | ||||
* | Fix bug in marshal where bad data would cause a segfault due to | Neal Norwitz | 2007-05-16 | 1 | -69/+156 |
| | | | | | | lack of an infinite recursion check. Contributed by Damien Miller at Google. | ||||
* | Forward-port of r52136,52138: a review of overflow-detecting code. | Armin Rigo | 2006-10-04 | 1 | -13/+25 |
| | | | | | | | | | | | | | | | | | | | | | | | * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. * 2.5 specific: fixed a number of places that were still confusing int and Py_ssize_t. Some of them could potentially have caused "real-world" breakage. * list.pop(x): fixing overflow issues on x was messy. I just reverted to PyArg_ParseTuple("n"), which does the right thing. (An obscure test was trying to give a Decimal to list.pop()... doesn't make sense any more IMHO) * trying to write a few tests... | ||||
* | This code is actually not used unless WITHOUT_COMPLEX is defined. | Neal Norwitz | 2006-08-12 | 1 | -0/+8 |
| | | | | | | | | However, there was no error checking that PyFloat_FromDouble returned a valid pointer. I believe this change is correct as it seemed to follow other code in the area. Klocwork # 292. | ||||
* | Convert more modules to METH_VARARGS. | Georg Brandl | 2006-05-29 | 1 | -5/+3 |
| | |||||
* | Change int to Py_ssize_t in several places. | Martin v. Löwis | 2006-03-07 | 1 | -10/+26 |
| | | | | | Add (int) casts to silence compiler warnings. Raise Python exceptions for overflows. | ||||
* | Make Py_ssize_t clean. | Thomas Wouters | 2006-03-01 | 1 | -1/+3 |
| | |||||
* | Fix incompatible assignment warning from previous checkin. | Thomas Wouters | 2006-03-01 | 1 | -1/+2 |
| | |||||
* | Fix gcc (4.0.x) warning about use of uninitialized variables. | Thomas Wouters | 2006-03-01 | 1 | -1/+2 |
| | | | | | (PyMarshal_ReadShortFromFile() is only used in zipimport.c, I don't believe the extra initializations will matter one way or another.) | ||||
* | Move cast to suppress warning. | Martin v. Löwis | 2006-02-16 | 1 | -2/+2 |
| | |||||
* | Merge ssize_t branch. | Martin v. Löwis | 2006-02-15 | 1 | -11/+15 |
| | |||||
* | Check return result from Py_InitModule*(). This API can fail. | Neal Norwitz | 2006-01-19 | 1 | -0/+2 |
| | | | | Probably should be backported. | ||||
* | version was not initialized properly | Neal Norwitz | 2005-11-16 | 1 | -0/+1 |
| | |||||
* | Fix a bunch of imports to use code.h instead of compile.h. | Jeremy Hylton | 2005-10-21 | 1 | -1/+0 |
| | | | | Remove duplicate declarations from compile.h | ||||
* | Merge ast-branch to head | Jeremy Hylton | 2005-10-20 | 1 | -0/+1 |
| | | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests. | ||||
* | Add a C API for sets and frozensets. | Raymond Hettinger | 2005-08-16 | 1 | -4/+2 |
| | |||||
* | Fix signedness of various char variables to stop causing a warning under gcc 4. | Brett Cannon | 2005-06-25 | 1 | -10/+10 |
| | |||||
* | Fix bug | Michael W. Hudson | 2005-06-13 | 1 | -0/+4 |
| | | | | | | | | [ 1180997 ] lax error-checking in new-in-2.4 marshal stuff which I'd assigned to Martin, but actually turned out to be easy to fix. Also, a test. | ||||
* | Remove extraneous format character from PyArg_ParseTuple call in | Michael W. Hudson | 2005-06-13 | 1 | -1/+1 |
| | | | | | | marshal_loads. Bugfix candidate. | ||||
* | Fix a couple of crashing-on-malformed data marshal bugs. | Michael W. Hudson | 2005-06-03 | 1 | -6/+8 |
| | |||||
* | This is my patch: | Michael W. Hudson | 2005-06-03 | 1 | -65/+175 |
| | | | | | | | | | [ 1180995 ] binary formats for marshalling floats Adds 2 new type codes for marshal (binary floats and binary complexes), a new marshal version (2), updates MAGIC and fiddles the de-serializing of code objects to be less likely to clobber the real reason for failing if it fails. | ||||
* | remove unused variable | Fred Drake | 2005-01-12 | 1 | -1/+0 |
| | |||||
* | SF 1098985: set objects cannot be marshalled | Raymond Hettinger | 2005-01-11 | 1 | -1/+66 |
| | |||||
* | Any call to marshal.dumps() with the new optional argument 'version' just | Armin Rigo | 2004-12-20 | 1 | -1/+1 |
| | | | | | immediately segfaults, due to a typo! This was obviously never tested... Added a test for it, and also fixed the documentation. | ||||
* | Patch #923098: Share interned strings in marshal. | Martin v. Löwis | 2004-06-27 | 1 | -15/+74 |
| | |||||
* | Make private function static | Neal Norwitz | 2004-06-13 | 1 | -1/+1 |
| | |||||
* | Patch #774665: Make Python LC_NUMERIC agnostic. | Martin v. Löwis | 2004-06-08 | 1 | -3/+3 |
| | |||||
* | Marshal clean-up (SF patch #873224) | Armin Rigo | 2004-03-26 | 1 | -63/+54 |
| | |||||
* | Bug #794140: cygwin builds do not embed | Jason Tishler | 2003-09-04 | 1 | -1/+1 |
| | | | | | | The embed2.diff patch solves the user's problem by exporting the missing symbols from the Python core so Python can be embedded in another Cygwin application (well, at lest vim). | ||||
* | Whitespace normalization. | Thomas Heller | 2002-07-30 | 1 | -4/+4 |
| | |||||
* | Fix SF 588452: debug build crashes on marshal.dumps([128] * 1000). | Thomas Heller | 2002-07-30 | 1 | -6/+6 |
| | | | | | | | | | See there for a description. Added test case. Bugfix candidate for 2.2.x, not sure about previous versions: probably low priority, because virtually no one runs debug builds. | ||||
* | Fix SF bug # 561858 Assertion with very long lists | Neal Norwitz | 2002-06-14 | 1 | -10/+10 |
| | | | | | Write 4 bytes for co_stacksize, etc. to prevent writing out bad .pyc files which can cause a crash when read back in. |