Petri Lehtinen
5c89c19eae
#14897 : Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
13 years ago
Meador Inge
6812346808
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
14 years ago
Meador Inge
87c5b94c39
Issue #15402 : Add a __sizeof__ method to struct.Struct.
Initial patch by Serhiy Storchaka.
14 years ago
Ezio Melotti
24b07bcba3
#11515 : fix several typos. Patch by Piotr Kasprzyk.
15 years ago
Victor Stinner
da9ec995f6
Issue #10783 : struct.pack() doesn't encode implicitly unicode to UTF-8
* Replace "bytes" by "bytes object" in struct error messages
* Document the API change in What's new in Python 3.2
* Fix test_wave
* Remove also ugly implicit conversions in test_struct
15 years ago
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
15 years ago
Mark Dickinson
f417ae8d4c
Merged revisions 83241 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
................
r83241 | mark.dickinson | 2010-07-29 22:44:47 +0100 (Thu, 29 Jul 2010) | 9 lines
Merged revisions 83239 via svnmerge from
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.
........
................
16 years ago
Mark Dickinson
96527c3b59
Merged revisions 83239 via svnmerge from
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.
........
16 years ago
Mark Dickinson
2da63cc338
Merged revisions 83239 via svnmerge from
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.
........
16 years ago
Mark Dickinson
cf28b95800
Issue #9422 : Fix memory leak when re-initializing a struct.Struct object.
16 years ago
Mark Dickinson
a63726ffc8
Merged revisions 82945 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint
................
r82945 | mark.dickinson | 2010-07-18 08:55:55 +0100 (Sun, 18 Jul 2010) | 14 lines
Merged revisions 82941,82943 via svnmerge from
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.
........
................
16 years ago
Mark Dickinson
cac0b83b35
Merged revisions 82941,82943 via svnmerge from
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.
........
16 years ago
Mark Dickinson
101d16cb14
Merged revisions 82941 via svnmerge from
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.
........
16 years ago
Mark Dickinson
eff5d8594b
Issue #9277 : Struct module: standard bool packing was incorrect if
char is unsigned. Thanks Stefan Krah for the patch.
16 years ago
Benjamin Peterson
f092c7c1d7
Merged revisions 82628,82630 via svnmerge from
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
........
16 years ago
Benjamin Peterson
489113fd5f
Merged revisions 82628,82630 via svnmerge from
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
........
16 years ago
Benjamin Peterson
de73c4587f
don't ignore exceptions from PyObject_IsTrue
16 years ago
Mark Dickinson
1330507360
Merged revisions 81965 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81965 | mark.dickinson | 2010-06-13 10:17:13 +0100 (Sun, 13 Jun 2010) | 1 line
Remove unnecessary brackets from docstring optional arguments.
........
16 years ago
Mark Dickinson
c6f1396be0
Remove unnecessary brackets from docstring optional arguments.
16 years ago
Mark Dickinson
d12dfe231e
Merged revisions 81961 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81961 | alexander.belopolsky | 2010-06-12 20:36:28 +0100 (Sat, 12 Jun 2010) | 1 line
Issue #8973 : Expanded Struct.__doc__.
........
16 years ago
Alexander Belopolsky
0bd003a55e
Issue #8973 : Expanded Struct.__doc__.
16 years ago
Mark Dickinson
f9e091ae2d
Merged revisions 81947-81950,81955-81956 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81947 | mark.dickinson | 2010-06-12 16:17:02 +0100 (Sat, 12 Jun 2010) | 3 lines
Issue #8973 : Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.
........
r81948 | mark.dickinson | 2010-06-12 16:19:23 +0100 (Sat, 12 Jun 2010) | 1 line
Remove accidental (yet-to-be-reviewed) docstring changes included in r81947.
........
r81949 | mark.dickinson | 2010-06-12 16:43:45 +0100 (Sat, 12 Jun 2010) | 1 line
Issue #8973 : Improve struct module docstrings.
........
r81950 | mark.dickinson | 2010-06-12 17:30:53 +0100 (Sat, 12 Jun 2010) | 1 line
More struct module docs and docstring tweaks.
........
r81955 | mark.dickinson | 2010-06-12 19:20:47 +0100 (Sat, 12 Jun 2010) | 1 line
Issue #8469 : add standard sizes to struct docs table.
........
r81956 | mark.dickinson | 2010-06-12 19:37:54 +0100 (Sat, 12 Jun 2010) | 2 lines
Issue #8469 : Reorder struct module sections for clarity; other minor tweaks.
........
16 years ago
Mark Dickinson
fdb99f1563
More struct module docs and docstring tweaks.
16 years ago
Mark Dickinson
aacfa95d2e
Issue #8973 : Improve struct module docstrings.
16 years ago
Mark Dickinson
d80a8eefe6
Remove accidental (yet-to-be-reviewed) docstring changes included in r81947.
16 years ago
Mark Dickinson
4b80ef5432
Issue #8973 : Add __all__ to struct module, so that help(struct) correctly
displays information for the struct.Struct class.
16 years ago
Mark Dickinson
0681785d09
Remove unused variable.
16 years ago
Mark Dickinson
bfd57618b5
Issue #8981 : Remove _struct.__version__.
16 years ago
Mark Dickinson
38b4a898fd
Merged revisions 81904 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81904 | mark.dickinson | 2010-06-11 21:27:05 +0100 (Fri, 11 Jun 2010) | 4 lines
Fix possible undefined behaviour from signed overflow in struct module.
Backport of revisions 81897, 81898 and 81902 from py3k.
........
16 years ago
Mark Dickinson
40228912c8
Fix possible undefined behaviour from signed overflow in struct module.
Backport of revisions 81897, 81898 and 81902 from py3k.
16 years ago
Mark Dickinson
4a3acca7c1
Merged revisions 81897-81898,81902 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r81897 | mark.dickinson | 2010-06-11 17:56:34 +0100 (Fri, 11 Jun 2010) | 1 line
Avoid possible undefined behaviour from signed overflow.
........
r81898 | mark.dickinson | 2010-06-11 20:05:08 +0100 (Fri, 11 Jun 2010) | 1 line
Fix an incorrect return type.
........
r81902 | mark.dickinson | 2010-06-11 20:50:30 +0100 (Fri, 11 Jun 2010) | 1 line
Fix more undefined-behaviour inducing overflow checks in struct module.
........
16 years ago
Mark Dickinson
b72e6860d8
Fix more undefined-behaviour inducing overflow checks in struct module.
16 years ago
Mark Dickinson
eac0e68c10
Fix an incorrect return type.
16 years ago
Mark Dickinson
ab4096f2f9
Avoid possible undefined behaviour from signed overflow.
16 years ago
Alexander Belopolsky
177e8530cb
Issue #3129 : Trailing digits in format string are no longer ignored.
16 years ago
Antoine Pitrou
7f14f0d8a0
Recorded merge of revisions 81032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
................
r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines
Recorded merge of revisions 81029 via svnmerge from
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.
........
................
16 years ago
Antoine Pitrou
f95a1b3c53
Recorded merge of revisions 81029 via svnmerge from
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.
........
16 years ago
Antoine Pitrou
c7c96a90bc
Recorded merge of revisions 81029 via svnmerge from
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.
........
16 years ago
Antoine Pitrou
c83ea137d7
Untabify C files. Will watch buildbots.
16 years ago
Mark Dickinson
e9a5a549e4
Fix incorrect stacklevel for struct warnings. (Partial backport of r78690).
16 years ago
Mark Dickinson
414e737628
Merged revisions 79751 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79751 | mark.dickinson | 2010-04-04 22:19:35 +0100 (Sun, 04 Apr 2010) | 1 line
A handful of whitespace fixes in Modules/_struct.c.
........
16 years ago
Mark Dickinson
4f185228b0
A handful of whitespace fixes in Modules/_struct.c.
16 years ago
Mark Dickinson
e9493a1872
Merged revisions 79745 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79745 | mark.dickinson | 2010-04-04 09:43:04 +0100 (Sun, 04 Apr 2010) | 3 lines
Issue #8300 (__index__ handling in struct.pack): Remove redundant check
and improve test coverage. Thanks Meador Inge for the patch.
........
16 years ago
Mark Dickinson
fdaaa9c9d8
Issue #8300 (__index__ handling in struct.pack): Remove redundant check
and improve test coverage. Thanks Meador Inge for the patch.
16 years ago
Benjamin Peterson
04e8bcb49a
add missing decrefs
16 years ago
Mark Dickinson
c593577a4a
Merged revisions 79674 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r79674 | mark.dickinson | 2010-04-03 15:05:10 +0100 (Sat, 03 Apr 2010) | 3 lines
Issue #8300 : Let struct.pack use __index__ to convert and pack non-integers.
Based on a patch by Meador Inge.
........
16 years ago
Mark Dickinson
055a3fbe3e
Internal refactoring in struct.pack: make all integer conversions go through get_pylong.
16 years ago
Mark Dickinson
77e2b67971
Remove unused define.
16 years ago
Mark Dickinson
4846a8e828
Issue #8300 : Let struct.pack use __index__ to convert and pack non-integers.
Based on a patch by Meador Inge.
16 years ago
Mark Dickinson
2db56878f6
Silence compiler warning.
16 years ago