Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Issue #19099: The struct module now supports Unicode format strings. | Serhiy Storchaka | 2013-12-08 | 1 | -4/+19 |
| | |||||
* | Issue #10212: Support new buffer interface for struct.unpack and | Kristján Valur Jónsson | 2013-03-20 | 1 | -10/+19 |
| | | | | cStringIO | ||||
* | #14897: Enhance error messages of struct.pack and struct.pack_into | Petri Lehtinen | 2012-10-29 | 1 | -4/+14 |
| | | | | Patch by Matti Mäki. | ||||
* | Issue #15402: Simplify Struct.__sizeof__ and make tests more precise. | Meador Inge | 2012-07-29 | 1 | -6/+2 |
| | |||||
* | Issue #15402: Add a __sizeof__ method to struct.Struct. | Meador Inge | 2012-07-23 | 1 | -0/+17 |
| | | | | Initial patch by Serhiy Storchaka. | ||||
* | #11515: fix several typos. Patch by Piotr Kasprzyk. | Ezio Melotti | 2011-03-15 | 1 | -1/+1 |
| | |||||
* | Merged revisions 83239 via svnmerge from | Mark Dickinson | 2010-07-29 | 1 | -0/+3 |
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r83239 | mark.dickinson | 2010-07-29 22:41:59 +0100 (Thu, 29 Jul 2010) | 2 lines Issue #9422: Fix memory leak when re-initializing a struct.Struct object. ........ | ||||
* | Merged revisions 82941,82943 via svnmerge from | Mark Dickinson | 2010-07-18 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82941 | mark.dickinson | 2010-07-18 08:29:02 +0100 (Sun, 18 Jul 2010) | 3 lines Issue #9277: Struct module: standard bool packing was incorrect if char is unsigned. Thanks Stefan Krah for the patch. ........ r82943 | mark.dickinson | 2010-07-18 08:48:20 +0100 (Sun, 18 Jul 2010) | 1 line Misc/NEWS entry for r82941. ........ | ||||
* | Merged revisions 82628,82630 via svnmerge from | Benjamin Peterson | 2010-07-07 | 1 | -2/+8 |
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r82628 | benjamin.peterson | 2010-07-07 13:44:05 -0500 (Wed, 07 Jul 2010) | 1 line this needn't be in the loop ........ r82630 | benjamin.peterson | 2010-07-07 13:54:59 -0500 (Wed, 07 Jul 2010) | 1 line don't ignore exceptions from PyObject_IsTrue ........ | ||||
* | Fix possible undefined behaviour from signed overflow in struct module. | Mark Dickinson | 2010-06-11 | 1 | -22/+29 |
| | | | | Backport of revisions 81897, 81898 and 81902 from py3k. | ||||
* | Untabify C files. Will watch buildbots. | Antoine Pitrou | 2010-05-09 | 1 | -1259/+1259 |
| | |||||
* | A handful of whitespace fixes in Modules/_struct.c. | Mark Dickinson | 2010-04-04 | 1 | -20/+20 |
| | |||||
* | Issue #8300 (__index__ handling in struct.pack): Remove redundant check | Mark Dickinson | 2010-04-04 | 1 | -6/+1 |
| | | | | and improve test coverage. Thanks Meador Inge for the patch. | ||||
* | Issue #8300: Let struct.pack use __index__ to convert and pack non-integers. | Mark Dickinson | 2010-04-03 | 1 | -11/+39 |
| | | | | Based on a patch by Meador Inge. | ||||
* | Silence compiler warning. | Mark Dickinson | 2010-03-07 | 1 | -1/+4 |
| | |||||
* | Issue #1530559: When packing a non-integer with any integer conversion | Mark Dickinson | 2010-03-07 | 1 | -12/+52 |
| | | | | | | | | | code using struct.pack, attempt to convert to an integer first using the argument's __int__ method (if present). Also raise a DeprecationWarning for any such usage of __int__. This fixes a regression from 2.6, where some (but not all) integer conversion codes already used __int__. | ||||
* | Remove the redundant #define: PY_STRUCT_FLOAT_COERCE | Mark Dickinson | 2010-03-05 | 1 | -13/+0 |
| | |||||
* | Fix incorrect stacklevel for DeprecationWarnings originating from the struct ↵ | Mark Dickinson | 2010-03-05 | 1 | -1/+1 |
| | | | | | | | module. Also clean up related tests in test_struct. The stacklevel fix should be backported to 2.6 once that branch is unfrozen. | ||||
* | Issue #7078: _struct.__doc__ was being ignored. Import it into struct. | Mark Dickinson | 2009-10-08 | 1 | -8/+10 |
| | | | | | Also add description of '?' struct format character. Thanks Gabriel Genellina for the patch. | ||||
* | Eliminate unnecessary get_wrapped_(u)long defines in struct module. | Mark Dickinson | 2009-09-27 | 1 | -9/+6 |
| | |||||
* | Issue #1523: Remove deprecated overflow masking in struct module, and | Mark Dickinson | 2009-07-07 | 1 | -219/+32 |
| | | | | make sure that out-of-range values consistently raise struct.error. | ||||
* | Typo in error message | Mark Dickinson | 2009-07-07 | 1 | -1/+1 |
| | |||||
* | Issues #1530559, #1741130: Fix various inconsistencies in struct.pack | Mark Dickinson | 2009-07-05 | 1 | -109/+107 |
| | | | | integer packing, and reenable some previously broken tests. | ||||
* | Fix nearly all compilation warnings under Apple gcc-4.0. Tested with OPT="-g | Jeffrey Yasskin | 2009-05-29 | 1 | -0/+2 |
| | | | | | | -Wall -Wstrict-prototypes -Werror" in both --with-pydebug mode and --without. There's still a batch of non-prototype warnings in Xlib.h that I don't know how to fix. | ||||
* | #4228: Pack negative values the same way as 2.4 | Georg Brandl | 2009-01-01 | 1 | -6/+6 |
| | | | | in struct's L format. | ||||
* | Victor Stinner's patches to check the return result of PyLong_Ssize_t | Benjamin Peterson | 2008-09-30 | 1 | -0/+2 |
| | | | | reviewed by Amaury | ||||
* | Merge in release25-maint r60793: | Gregory P. Smith | 2008-06-11 | 1 | -0/+6 |
| | | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code. | ||||
* | This reverts r63675 based on the discussion in this thread: | Gregory P. Smith | 2008-06-09 | 1 | -19/+19 |
| | | | | | | | 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 | -19/+19 |
| | |||||
* | Issue 1872: Changed the struct module typecode from 't' to '?', for | Thomas Heller | 2008-03-05 | 1 | -3/+3 |
| | | | | compatibility with PEP3118. | ||||
* | Crashers of the day: Py_CLEAR must be used when there is a chance that the | Amaury Forgeot d'Arc | 2008-02-16 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | | | | | | | function can be called recursively. This was discussed in issue1020188. In python codebase, all occurrences of Py_[X]DECREF(xxx->yyy) are suspect, except when they appear in tp_new or tp_dealloc functions, or when the member cannot be of a user-defined class. Note that tp_init is not safe. I do have a (crashing) example for every changed line. Is it worth adding them to the test suite? Example: class SpecialStr(str): def __del__(self): s.close() import cStringIO s = cStringIO.StringIO(SpecialStr("text")) s.close() # Segfault | ||||
* | clearcache() needs to remove the dict as well as clear it. | Raymond Hettinger | 2008-01-18 | 1 | -2/+1 |
| | |||||
* | Added _struct._clearcache() for regression tests | Christian Heimes | 2008-01-04 | 1 | -1/+13 |
| | |||||
* | Finish-up the struct module optimizations started at the Iceland NFS sprint. | Raymond Hettinger | 2008-01-04 | 1 | -1/+205 |
| | |||||
* | #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and ↵ | Christian Heimes | 2007-12-19 | 1 | -4/+4 |
| | | | | Py_REFCNT. Macros for b/w compatibility are available. | ||||
* | PEP 3123: Provide forward compatibility with Python 3.0, while keeping | Martin v. Löwis | 2007-07-21 | 1 | -6/+5 |
| | | | | | backwards compatibility. Add Py_Refcnt, Py_Type, Py_Size, and PyVarObject_HEAD_INIT. | ||||
* | Stop using METH_OLDARGS implicitly | Neal Norwitz | 2007-05-22 | 1 | -1/+1 |
| | |||||
* | Make pythoncore compile cleanly with VisualStudio 2005. Used an explicit ↵ | Kristján Valur Jónsson | 2007-04-25 | 1 | -2/+2 |
| | | | | typecast to get a 64 bit integer, and undefined the Yield macro that conflicts with winbase.h | ||||
* | Bug #1563759: struct.unpack doens't support buffer protocol objects | Raymond Hettinger | 2007-04-05 | 1 | -7/+25 |
| | |||||
* | Patch #1610575: Add support for _Bool to struct. | Martin v. Löwis | 2007-01-21 | 1 | -0/+49 |
| | |||||
* | Fix #1530559, struct.pack raises TypeError where it used to convert. | Bob Ippolito | 2006-08-04 | 1 | -0/+60 |
| | | | | | Passing float arguments to struct.pack when integers are expected now triggers a DeprecationWarning. | ||||
* | Add PyErr_WarnEx() so C code can pass the stacklevel to warnings.warn(). | Neal Norwitz | 2006-07-30 | 1 | -4/+6 |
| | | | | | | This provides the proper warning for struct.pack(). PyErr_Warn() is now deprecated in favor of PyErr_WarnEx(). As mentioned by Tim Peters on python-dev. | ||||
* | Wrap some long lines | Neal Norwitz | 2006-06-11 | 1 | -15/+10 |
| | | | | | Top/Bottom factor out some common expressions Add a XXX comment about widing offset. | ||||
* | s_methods[]: Stop compiler warnings by casting | Tim Peters | 2006-06-04 | 1 | -1/+2 |
| | | | | s_unpack_from to PyCFunction. | ||||
* | Fixes in struct and socket from merge reviews. | Martin Blais | 2006-06-04 | 1 | -15/+13 |
| | | | | | | | | | | | | | - Following Guido's comments, renamed * pack_to -> pack_into * recv_buf -> recv_into * recvfrom_buf -> recvfrom_into - Made fixes to _struct.c according to Neal Norwitz comments on the checkins list. - Converted some ints into the appropriate -- I hope -- ssize_t and size_t. | ||||
* | Repaired error in new comment. | Tim Peters | 2006-05-31 | 1 | -4/+4 |
| | |||||
* | _range_error(): Speed and simplify (there's no real need for | Tim Peters | 2006-05-31 | 1 | -17/+19 |
| | | | | | loops here). Assert that size_t is actually big enough, and that f->size is at least one. Wrap a long line. | ||||
* | Trimmed trailing whitespace. | Tim Peters | 2006-05-31 | 1 | -22/+22 |
| | |||||
* | Calculate smallest properly (it was off by one) and use proper ssize_t types ↵ | Neal Norwitz | 2006-05-31 | 1 | -5/+5 |
| | | | | for Win64 | ||||
* | Change wrapping terminology to overflow masking | Bob Ippolito | 2006-05-30 | 1 | -18/+18 |
| |