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
2010-12-28 13:26:42 +00:00
Georg Brandl
71c23d4473
Include structseq.h in Python.h, and remove now-redundant includes in individual sources.
2010-11-30 09:30:54 +00:00
Mark Dickinson
cf28b95800
Issue #9422 : Fix memory leak when re-initializing a struct.Struct object.
2010-07-29 21:41:59 +00:00
Mark Dickinson
eff5d8594b
Issue #9277 : Struct module: standard bool packing was incorrect if
...
char is unsigned. Thanks Stefan Krah for the patch.
2010-07-18 07:29:02 +00:00
Benjamin Peterson
de73c4587f
don't ignore exceptions from PyObject_IsTrue
2010-07-07 18:54:59 +00:00
Mark Dickinson
c6f1396be0
Remove unnecessary brackets from docstring optional arguments.
2010-06-13 09:17:13 +00:00
Alexander Belopolsky
0bd003a55e
Issue #8973 : Expanded Struct.__doc__.
2010-06-12 19:36:28 +00:00
Mark Dickinson
fdb99f1563
More struct module docs and docstring tweaks.
2010-06-12 16:30:53 +00:00
Mark Dickinson
aacfa95d2e
Issue #8973 : Improve struct module docstrings.
2010-06-12 15:43:45 +00:00
Mark Dickinson
d80a8eefe6
Remove accidental (yet-to-be-reviewed) docstring changes included in r81947.
2010-06-12 15:19:23 +00:00
Mark Dickinson
4b80ef5432
Issue #8973 : Add __all__ to struct module, so that help(struct) correctly
...
displays information for the struct.Struct class.
2010-06-12 15:17:02 +00:00
Mark Dickinson
0681785d09
Remove unused variable.
2010-06-12 09:25:13 +00:00
Mark Dickinson
bfd57618b5
Issue #8981 : Remove _struct.__version__.
2010-06-12 09:24:01 +00:00
Mark Dickinson
b72e6860d8
Fix more undefined-behaviour inducing overflow checks in struct module.
2010-06-11 19:50:30 +00:00
Mark Dickinson
eac0e68c10
Fix an incorrect return type.
2010-06-11 19:05:08 +00:00
Mark Dickinson
ab4096f2f9
Avoid possible undefined behaviour from signed overflow.
2010-06-11 16:56:34 +00:00
Alexander Belopolsky
177e8530cb
Issue #3129 : Trailing digits in format string are no longer ignored.
2010-06-11 16:04:59 +00:00
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.
........
2010-05-09 15:52:27 +00:00
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.
........
2010-04-04 21:23:57 +00:00
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.
........
2010-04-04 08:52:51 +00:00
Benjamin Peterson
04e8bcb49a
add missing decrefs
2010-04-03 23:56:48 +00:00
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.
........
2010-04-03 15:54:36 +00:00
Mark Dickinson
055a3fbe3e
Internal refactoring in struct.pack: make all integer conversions go through get_pylong.
2010-04-03 15:26:31 +00:00
Mark Dickinson
77e2b67971
Remove unused define.
2010-04-03 14:24:58 +00:00
Mark Dickinson
40714af071
Merged revisions 75283 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/trunk
........
r75283 | mark.dickinson | 2009-10-08 16:54:10 +0100 (Thu, 08 Oct 2009) | 4 lines
Issue #7078 : _struct.__doc__ was being ignored. Import it into struct.
Also add description of '?' struct format character. Thanks Gabriel
Genellina for the patch.
........
2009-10-08 15:59:20 +00:00