Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | struct: modulo math plus warning on all endian-explicit formats for ↵ | Bob Ippolito | 2006-05-29 | 1 | -11/+163 |
| | | | | compatibility with older struct usage (ugly) | ||||
* | Silence a warning. | Armin Rigo | 2006-05-29 | 1 | -1/+1 |
| | |||||
* | simplify the struct code a bit (no functional changes) | Bob Ippolito | 2006-05-29 | 1 | -23/+31 |
| | |||||
* | Fix ref-antileak in _struct.c which eventually lead to deallocating None. | Georg Brandl | 2006-05-28 | 1 | -1/+1 |
| | |||||
* | fix struct regression on 64-bit platforms | Bob Ippolito | 2006-05-27 | 1 | -22/+36 |
| | |||||
* | Fix up struct docstrings, add struct.pack_to function for symmetry | Bob Ippolito | 2006-05-27 | 1 | -8/+8 |
| | |||||
* | Remove the range checking and int usage #defines from _struct and strip out ↵ | Bob Ippolito | 2006-05-27 | 1 | -63/+8 |
| | | | | the now-dead code | ||||
* | enable all of the struct tests, use ssize_t, fix some whitespace | Bob Ippolito | 2006-05-26 | 1 | -58/+67 |
| | |||||
* | Repair Windows compiler warnings about mixing | Tim Peters | 2006-05-26 | 1 | -2/+2 |
| | | | | signed and unsigned integral types in comparisons. | ||||
* | fix signed/unsigned mismatch in struct | Bob Ippolito | 2006-05-26 | 1 | -2/+2 |
| | |||||
* | Enable PY_USE_INT_WHEN_POSSIBLE in struct | Bob Ippolito | 2006-05-26 | 1 | -3/+1 |
| | |||||
* | Fix _struct typo that broke some 64-bit platforms | Bob Ippolito | 2006-05-26 | 1 | -1/+1 |
| | |||||
* | fix #1229380 No struct.pack exception for some out of range integers | Bob Ippolito | 2006-05-26 | 1 | -10/+93 |
| | |||||
* | Support for buffer protocol for socket and struct. | Martin Blais | 2006-05-26 | 1 | -37/+117 |
| | | | | | | | | | | * Added socket.recv_buf() and socket.recvfrom_buf() methods, that use the buffer protocol (send and sendto already did). * Added struct.pack_to(), that is the corresponding buffer compatible method to unpack_from(). * Fixed minor typos in arraymodule. | ||||
* | fix test_float regression and 64-bit size mismatch issue | Bob Ippolito | 2006-05-25 | 1 | -2/+16 |
| | |||||
* | Use faster struct pack/unpack functions for the endian table that matches ↵ | Bob Ippolito | 2006-05-25 | 1 | -3/+27 |
| | | | | the host's | ||||
* | Use LONG_MIN and LONG_MAX to check Python integer bounds instead of the ↵ | Bob Ippolito | 2006-05-25 | 1 | -10/+13 |
| | | | | incorrect INT_MIN and INT_MAX | ||||
* | fix a struct regression where long would be returned for short unsigned integers | Bob Ippolito | 2006-05-25 | 1 | -0/+6 |
| | |||||
* | Fix Cygwin compiler issue | Bob Ippolito | 2006-05-25 | 1 | -1/+5 |
| | |||||
* | Struct now unpacks to PY_LONG_LONG directly when possible, also include ↵ | Bob Ippolito | 2006-05-25 | 1 | -6/+88 |
| | | | | #ifdef'ed out code that will return int instead of long when in bounds (not active since it's an API and doc change) | ||||
* | refactor unpack, add unpack_from | Bob Ippolito | 2006-05-24 | 1 | -62/+108 |
| | |||||
* | fix typo in _struct | Bob Ippolito | 2006-05-23 | 1 | -2/+2 |
| | |||||
* | forward declaration for PyStructType | Bob Ippolito | 2006-05-23 | 1 | -0/+1 |
| | |||||
* | fix linking issue, warnings, in struct | Bob Ippolito | 2006-05-23 | 1 | -4/+0 |
| | |||||
* | patch #1493701: performance enhancements for struct module | Bob Ippolito | 2006-05-23 | 1 | -0/+1355 |
| | |||||
* | revert #1493701 | Bob Ippolito | 2006-05-23 | 1 | -1355/+0 |
| | |||||
* | Patch #1493701: performance enhancements for struct module. | Bob Ippolito | 2006-05-23 | 1 | -0/+1355 |