Benjamin Peterson
b397e3b526
add a missing comma ( closes #25371 )
2015-10-10 19:32:20 -07:00
Martin Panter
cfad54344f
Issue #22413 : Document newline effect on StringIO initializer and getvalue
...
Also add to comment in the C code.
2015-10-10 03:01:20 +00:00
Martin Panter
9955a373a8
Various minor typos in documentation and comments
2015-10-07 10:26:23 +00:00
Berker Peksag
e2382c598c
Issue #25290 : Fix typo in csv.reader() docstring
...
Patch by Johannes Niediek.
2015-10-02 19:25:32 +03:00
Serhiy Storchaka
e060619d4b
Issue #25262 . Added support for BINBYTES8 opcode in Python implementation of
...
unpickler. Highest 32 bits of 64-bit size for BINUNICODE8 and BINBYTES8
opcodes no longer silently ignored on 32-bit platforms in C implementation.
2015-09-29 22:10:07 +03:00
Alexander Belopolsky
edc6885b3f
Closes issue #23600 : Wrong results from tzinfo.fromutc().
2015-09-27 22:31:45 -04:00
Serhiy Storchaka
1138439376
Issue #25203 : Failed readline.set_completer_delims() no longer left the
...
module in inconsistent state.
2015-09-27 22:34:59 +03:00
Benjamin Peterson
3c0769d478
fix spacing
2015-09-27 02:13:40 -07:00
Benjamin Peterson
6aa1564e9c
initialize return value to NULL to avoid compiler compliants ( closes #25245 )
2015-09-27 01:16:03 -07:00
Benjamin Peterson
e48cf7e729
prevent overflow in _Unpickler_Read
2015-09-26 00:08:34 -07:00
Victor Stinner
511491ade0
Issue #23517 : Fix rounding in fromtimestamp() and utcfromtimestamp() methods
...
of datetime.datetime: microseconds are now rounded to nearest with ties going
to nearest even integer (ROUND_HALF_EVEN), instead of being rounding towards
zero (ROUND_DOWN). It's important that these methods use the same rounding
mode than datetime.timedelta to keep the property:
(datetime(1970,1,1) + timedelta(seconds=t)) == datetime.utcfromtimestamp(t)
It also the rounding mode used by round(float) for example.
Add more unit tests on the rounding mode in test_datetime.
2015-09-18 14:42:05 +02:00
Kristján Valur Jónsson
95c3e6cb22
Issue #25021 : Merge from 3.3 to 3.4
2015-09-12 15:30:23 +00:00
Kristján Valur Jónsson
102764a1f6
Issue #25021 : Correctly make sure that product.__setstate__ does not access
...
invalid memory.
2015-09-12 15:20:54 +00:00
Victor Stinner
ec1a498a01
Issue #24684 : socket.socket.getaddrinfo() now calls
...
PyUnicode_AsEncodedString() instead of calling the encode() method of the
host, to handle correctly custom string with an encode() method which doesn't
return a byte string. The encoder of the IDNA codec is now called directly
instead of calling the encode() method of the string.
2015-09-11 12:37:30 +02:00
Martin Panter
db4220ea09
Issue #25030 : Do not document seek() as if it accepts keyword arguments
...
Patch from Shiyao Ma.
2015-09-11 03:58:30 +00:00
Martin Panter
9499413508
os.sendfile(headers=None, trailers=None) arguments are not actually accepted
...
Needs to be tested on a BSD.
2015-09-09 05:29:24 +00:00
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
...
Also fix signature because os.utime(..., ns=None) is not allowed.
2015-09-09 01:01:13 +00:00
Serhiy Storchaka
de5f9f4f70
Raise more correct exception on overflow in setting buffer_size attribute of
...
expat parser.
2015-09-07 22:51:56 +03:00
Serhiy Storchaka
931331a328
Issue #25019 : Fixed a crash caused by setting non-string key of expat parser.
...
Added additional tests for expat parser attributes.
Based on patch by John Leitch.
2015-09-07 22:37:02 +03:00
Steve Dower
aa2fcc6b35
Issue #24917 : time_strftime() buffer over-read.
2015-09-06 22:18:36 -07:00
Steve Dower
ef920d6d5e
Backed out changeset: a29b49d57769
2015-09-05 23:09:00 -07:00
Steve Dower
0fba9b324f
Issue #24917 : time_strftime() Buffer Over-read. Patch by John Leitch.
2015-09-05 20:55:34 -07:00
Victor Stinner
528a9ab1f0
Don't use defined() in C preprocessor macros
...
The ICC compiler doesn't seem to support defined() in macro expansion. Example
of warning:
warning #3199 : "defined" is always false in a macro expansion in Microsoft mode
2015-09-03 21:30:26 +02:00
Benjamin Peterson
f6b5cad3c3
include fcntl.h on all *nix platforms ( closes #24217 )
...
Patch by Jeffrey Armstrong.
2015-08-02 12:15:30 -07:00
Zachary Ware
3e77677692
Issue #23652 : Make the select module compile against LSB headers.
...
Patch by Matt Frank.
2015-08-01 21:34:05 -05:00
Victor Stinner
9c631a0f71
Issue #23319 : Fix ctypes.BigEndianStructure, swap correctly bytes. Patch
...
written by Matthieu Gautier.
2015-07-29 14:33:52 +02:00
Raymond Hettinger
acd61b6e40
Issue #24735 : Fix invalid memory access in combinations_with_replacement()
2015-07-28 02:05:44 -07:00
Serhiy Storchaka
83236f7a8b
Issue #24683 : Fixed crashes in _json functions called with arguments of
...
inappropriate type.
2015-07-26 09:01:22 +03:00
Serhiy Storchaka
178f0b6ddc
Issue #24620 : Random.setstate() now validates the value of state last element.
2015-07-24 09:02:53 +03:00
Raymond Hettinger
239aba7874
Issue #19663 : Improve error message for defaultdict.
2015-07-20 03:09:22 -04:00
Benjamin Peterson
d113c967b4
improve style of the convert macro ( #24655 )
...
Patch by Brian Cain.
2015-07-18 10:59:13 -07:00
Victor Stinner
579db160b3
Closes #23247 : Fix a crash in the StreamWriter.reset() of CJK codecs
2015-07-16 22:17:31 +02:00
Serhiy Storchaka
03d6ee3823
Issue #18684 : Fixed reading out of the buffer in the re module.
2015-07-06 13:58:33 +03:00
Benjamin Peterson
80f78a3efc
fix use after free ( closes #24552 )
2015-07-02 16:18:38 -05:00
Serhiy Storchaka
05744ac6e0
Issue #19176 : Fixed doctype() related bugs in C implementation of ElementTree.
...
A deprecation warning no longer issued by XMLParser subclass with default
doctype() method. Direct call of doctype() now issues a warning. Parser's
doctype() now is not called if target's doctype() is called. Based on patch
by Martin Panter.
2015-06-29 22:35:58 +03:00
Serhiy Storchaka
449e2be12b
Issue #24456 : Fixed possible buffer over-read in adpcm2lin() and lin2adpcm()
...
functions of the audioop module.
2015-06-28 17:52:09 +03:00
Benjamin Peterson
ff0f322edb
merge 3.3
2015-06-27 13:56:46 -05:00
Benjamin Peterson
59b08c18a8
use safe allocation and reallocation macros
2015-06-27 13:41:33 -05:00
Antoine Pitrou
6bc217dd3d
Issue #24489 : ensure a previously set C errno doesn't disturb cmath.polar().
2015-06-23 14:31:11 +02:00
Serhiy Storchaka
d741a88049
Fixed indentation of Python examples in C comments.
2015-06-11 00:06:39 +03:00
Benjamin Peterson
501182a47b
just sort the items tuple directly ( closes #24094 )
2015-05-02 22:28:04 -04:00
Berker Peksag
12b50ce4cb
Issue #23659 : Document **fmtparams in csv.register_dialect docstring.
...
Initial patch by Brandon Milam.
2015-06-05 15:17:51 +03:00
Serhiy Storchaka
fa494fd883
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
...
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:22 +03:00
Serhiy Storchaka
50451eb912
Issue #24326 : Fixed audioop.ratecv() with non-default weightB argument.
...
Original patch by David Moore.
2015-05-30 00:53:26 +03:00
Serhiy Storchaka
08d230a540
Issue #24257 : Fixed incorrect uses of PyObject_IsInstance().
...
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
2015-05-22 11:02:49 +03:00
Serhiy Storchaka
5bf3120e24
Issue #24091 : Fixed various crashes in corner cases in C implementation of
...
ElementTree.
2015-05-18 18:29:33 +03:00
Berker Peksag
ea6d5592f2
Issue #23796 : peak and read1 methods of BufferedReader now raise ValueError
...
if they called on a closed object.
Patch by John Hergenroeder.
2015-05-12 17:13:56 +03:00
Raymond Hettinger
b9db9e152f
Defend against a mutation during comparison
2015-05-11 19:58:56 -07:00
Benjamin Peterson
65bcdd7195
ensure .keywords is always a dict
2015-05-09 00:25:18 -04:00
Benjamin Peterson
0171d7faa0
fix libffi compilation on FreeBSD ( #23042 )
...
Patch from Marc-Andre Lemburg.
2015-05-08 21:31:36 -04:00