summaryrefslogtreecommitdiff
path: root/Python/marshal.c
Commit message (Collapse)AuthorAgeFilesLines
...
* Try to fix weird assertion error on the Fedora buildbot.Antoine Pitrou2013-10-121-3/+3
|
* Issue #19219: Speed up marshal.loads(), and make pyc files slightly (5% to ↵Antoine Pitrou2013-10-121-126/+266
| | | | 10%) smaller.
* Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
|\ | | | | | | error messages and comments.
| * Issue #18783: Removed existing mentions of Python long type in docstrings,Serhiy Storchaka2013-08-271-2/+2
| | | | | | | | error messages and comments.
* | Issue #18722: Remove uses of the "register" keyword in C code.Antoine Pitrou2013-08-131-2/+2
| |
* | Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
|\ \ | |/ | | | | more bytes than requested.
| * Issue #17872: Fix a segfault in marshal.load() when input stream returnsSerhiy Storchaka2013-07-111-15/+20
| | | | | | | | more bytes than requested.
* | Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
|\ \ | |/
| * Fix reference leaks introduced by the patch for issue #5308.Serhiy Storchaka2013-07-111-12/+11
| |
* | Issue #18408: Fix marshal reader for Unicode strings: handleVictor Stinner2013-07-081-0/+4
| | | | | | | | PyUnicode_DecodeUTF8() failure (ex: MemoryError).
* | marshal: optimize parsing of empty Unicode stringsVictor Stinner2013-06-211-12/+17
| | | | | | | | | | Don't create a temporary buffer of zeroy byte nor call r_string() if the length is zero, create directly the empty string.
* | Issue #15480: Remove the deprecated and unused TYPE_INT64 code from marshal.Antoine Pitrou2013-04-131-46/+1
| | | | | | | | Initial patch by Daniel Riti.
* | Issue #16475 : Correctly handle the EOF when reading marshal streams.Kristján Valur Jónsson2013-03-201-9/+9
| |
* | Issue #16475: Simplify the interface to r_ref_allocate and improve comments.Kristján Valur Jónsson2013-03-201-26/+33
| |
* | fix compiler warningBenjamin Peterson2013-03-201-1/+1
| |
* | Backed out changeset 521232b05b97Benjamin Peterson2013-03-201-1/+1
| |
* | fix compiler warningBenjamin Peterson2013-03-191-1/+1
| |
* | Issue #16475: Support object instancing, recursion and interned stringsKristján Valur Jónsson2013-03-191-27/+245
|/ | | | in marshal
* Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
|\ | | | | | | with size >= 2**31), instead of producing illegal marshal data.
| * Issue #5308: Raise ValueError when marshalling too large object (a sequenceSerhiy Storchaka2013-02-131-59/+59
| | | | | | | | with size >= 2**31), instead of producing illegal marshal data.
* | Issue #15466: Stop using TYPE_INT64 in marshal,Martin v. Löwis2012-07-281-11/+5
| | | | | | | | | | to make importlib.h (and other byte code files) equal between 32-bit and 64-bit systems.
* | - Issue #14177: marshal.loads() now raises TypeError when given an unicodeAntoine Pitrou2012-03-031-4/+4
|\ \ | |/ | | | | string. Patch by Guilherme Gonçalves.
| * Issue #14177: marshal.loads() now raises TypeError when given an unicode string.Antoine Pitrou2012-03-031-4/+4
| | | | | | | | Patch by Guilherme Gonçalves.
* | Simplify code in marshal.c.Antoine Pitrou2012-03-021-7/+1
| |
* | Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou2012-03-021-4/+4
|\ \ | |/ | | | | (other than a bytes object).
| * Issue #14172: Fix reference leak when marshalling a buffer-like object ↵Antoine Pitrou2012-03-021-4/+4
| | | | | | | | (other than a bytes object).
* | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-3/+3
| |
* | Add API for static strings, primarily good for identifiers.Martin v. Löwis2011-10-091-3/+8
| | | | | | | | Thanks to Konrad Schöbel and Jasper Schulz for helping with the mass-editing.
* | Implement PEP 393.Martin v. Löwis2011-09-281-3/+1
| |
* | Merge from 3.2 (#10318, #12255, #12043, #12417 and other fixes)Éric Araujo2011-07-291-3/+3
|\ \ | |/
| * Fix style in code added by edba722f3b02Éric Araujo2011-07-261-3/+3
| |
| * Removed some unused local variables.Vinay Sajip2011-07-021-2/+0
| |
* | Correct uninitialized data problem in marshal code.Vinay Sajip2011-07-021-0/+1
| |
* | Removed breaking typo accidentally introduced during merge with 3.2.Vinay Sajip2011-07-021-4/+0
| |
* | Closes #12291 for 3.3 - merged fix from 3.2.Vinay Sajip2011-07-021-59/+155
|\ \ | |/
| * Closes #12291: Fixed bug which was found when doing multiple loads from one ↵Vinay Sajip2011-07-021-60/+155
| | | | | | | | stream.
* | try to use the same str object for all code filenames when compiling or ↵Benjamin Peterson2011-05-271-0/+19
| | | | | | | | | | | | unmarshalling (#12190) This should reduce memory usage.
* | remove unused string WILFE attributeBenjamin Peterson2011-05-271-16/+0
|/
* Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-1065/+1065
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........
* Merged revisions 80325 via svnmerge fromAntoine Pitrou2010-04-211-16/+4
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r80325 | antoine.pitrou | 2010-04-22 00:53:29 +0200 (jeu., 22 avril 2010) | 6 lines 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. ........
* Issue 7147 - remove ability to attempt to build Python without complex ↵Skip Montanaro2009-10-181-4/+0
| | | | number support (was broken anyway)
* Merged revisions 75141 via svnmerge fromMark Dickinson2009-09-291-3/+13
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r75141 | mark.dickinson | 2009-09-29 20:01:06 +0100 (Tue, 29 Sep 2009) | 3 lines Issue #7019: Unmarshalling of bad long data could produce unnormalized PyLongs. Raise ValueError instead. ........
* Merged revisions 72597 via svnmerge fromR. David Murray2009-05-131-7/+79
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72597 | r.david.murray | 2009-05-12 20:30:29 -0400 (Tue, 12 May 2009) | 2 lines Issue 5994: add docstrings to marshal. ........
* Rename the surrogates error handler to surrogatepass.Martin v. Löwis2009-05-101-2/+2
|
* Issue #5914: Add new C-API function PyOS_string_to_double, to complementMark Dickinson2009-05-031-14/+11
| | | | PyOS_double_to_string, and deprecate PyOS_ascii_strtod and PyOS_ascii_atof.
* Issue #3672: Reject surrogates in utf-8 codec; add surrogates errorMartin v. Löwis2009-05-021-2/+4
| | | | handler.
* Added handling of PyOS_double_to_string out-of-memory errors. Closes issue 5775.Eric Smith2009-04-211-27/+41
|
* Make sure that marshal and pickle continue to output 17Mark Dickinson2009-04-171-3/+3
| | | | digits of precision for floats.
* The other half of Issue #1580: use short float repr where possible.Eric Smith2009-04-161-8/+18
| | | | | | | | | | | | | | Addresses the float -> string conversion, using David Gay's code which was added in Mark Dickinson's checkin r71663. Also addresses these, which are intertwined with the short repr changes: - Issue #5772: format(1e100, '<') produces '1e+100', not '1.0e+100' - Issue #5515: 'n' formatting with commas no longer works poorly with leading zeros. - PEP 378 Format Specifier for Thousands Separator: implemented for floats.
* Issue #4258: Make it possible to use 30-bit digits for PyLongs:Mark Dickinson2009-03-181-40/+106
| | | | | | | - new configure option --enable-big-digits - new structseq sys.int_info giving information about the internal format By default, 30-bit digits are enabled on 64-bit machines but disabled on 32-bit machines.