Berker Peksag
cc9afa9b51
Issue #10513 : Fix a regression in Connection.commit()
...
Statements should not be reset after a commit.
Backported from 029050896b
2016-08-26 22:07:51 +03:00
Berker Peksag
6afe85827c
Issue #21718 : cursor.description is now available for queries using CTEs
...
According to PEP 249, cursor.description must be
available for any SELECT statements, such as those
that use CTEs.
Backported from f67fa9c898
Additional test cases added by me.
2016-08-21 19:38:47 +03:00
Nick Coghlan
8682f578c1
Issue #27782 : Fix m_methods handling in multiphase init
...
Multi-phase extension module import now correctly allows the
``m_methods`` field to be used to add module level functions
to instances of non-module types returned from ``Py_create_mod``.
Patch by Xiang Zhang.
2016-08-21 17:41:56 +10:00
Benjamin Peterson
6423429325
merge 3.4 ( #27783 )
2016-08-16 23:37:33 -07:00
Benjamin Peterson
a12d92bec1
merge 3.3 ( #27783 )
2016-08-16 23:36:20 -07:00
Benjamin Peterson
1f0e7c9933
rearrange methodcaller_new so that the main error case does not cause uninitialized memory usage ( closes #27783 )
2016-08-16 23:35:35 -07:00
Benjamin Peterson
76aa1fb3b1
merge 3.4 ( #27774 )
2016-08-15 22:05:06 -07:00
Benjamin Peterson
10bc0f6edf
merge 3.3 ( #27774 )
2016-08-15 22:03:44 -07:00
Benjamin Peterson
3a27b0857e
do not decref value borrowed from list ( closes #27774 )
2016-08-15 22:01:41 -07:00
Benjamin Peterson
81b9ecd2a3
fix corner cases in the management of server_hostname ( closes #27773 )
2016-08-15 21:55:37 -07:00
Benjamin Peterson
b1c6bdc76a
merge 3.4
2016-08-15 21:43:57 -07:00
Benjamin Peterson
432ea4ff37
fail when negative values are passed to instr()
2016-08-15 21:40:14 -07:00
Benjamin Peterson
91060f26f9
merge 3.4 ( closes #27760 )
2016-08-13 18:37:12 -07:00
Benjamin Peterson
5295532adb
merge 3.3 ( closes #27760 )
2016-08-13 18:36:55 -07:00
Benjamin Peterson
4f976513ef
fix possible integer overflow in binascii.b2a_qp ( closes #27760 )
...
Reported by Thomas E. Hybel
2016-08-13 18:33:33 -07:00
Benjamin Peterson
f17a8e9acd
merge 3.4
2016-08-13 18:21:16 -07:00
Benjamin Peterson
40a77c3381
do not allow reading negative values with getstr()
2016-08-13 18:15:28 -07:00
Benjamin Peterson
9745ee0b44
merge 3.4 ( closes #27758 )
2016-08-13 17:21:54 -07:00
Benjamin Peterson
59b6abd38c
merge 3.3 ( #27758 )
2016-08-13 17:21:22 -07:00
Benjamin Peterson
6e01d90cc8
check for overflow in join_append_data ( closes #27758 )
...
Reported by Thomas E. Hybel
2016-08-13 17:17:06 -07:00
Vinay Sajip
0b588869ee
Issue #20160 : Merged fix from 3.4.
2016-08-05 21:44:15 +01:00
Vinay Sajip
a0b2568627
Issue #20160 : Merged fix from 3.3.
2016-08-05 21:43:25 +01:00
Vinay Sajip
6f25003291
Issue #20160 : Handled passing of large structs to callbacks correctly.
2016-08-05 21:24:27 +01:00
Benjamin Peterson
dbaa559b7f
all SCHED_ constants are optional ( closes #27656 )
2016-07-30 23:21:50 -07:00
Martin Panter
eb9957065a
Issue #27626 : Spelling fixes in docs, comments and internal names
...
Based on patch by Ville Skyttä.
2016-07-28 01:11:04 +00:00
Victor Stinner
e33797b686
ctypes: fix CThunkObject_new()
...
* Initialize restype and flags fields to fix a crash when Python runs on a
read-only file system
* Use Py_ssize_t type rather than int for the "i" iterator variable
* Reorder assignements to be able to more easily check if all fields are
initialized
Issue #11048 . Initial patch written by Marcin Bachry.
2016-07-27 16:58:47 +02:00
Berker Peksag
1fd497ed91
Issue #27591 : Set sigint_event to NULL if _PyOS_IsMainThread() returns false
...
Patch by Chris Angelico.
2016-07-23 07:13:14 +03:00
Martin Panter
84544c1020
Issue #27130 : Fix handling of buffers exceeding UINT_MAX in “zlib” module
...
Patch by Xiang Zhang.
2016-07-23 03:02:07 +00:00
Victor Stinner
524714eeda
socket: use INVALID_SOCKET
...
* Replace "fd = -1" with "fd = INVALID_SOCKET"
* Replace "fd < 0" with "fd == INVALID_SOCKET": SOCKET_T is unsigned on Windows
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
2016-07-22 17:43:59 +02:00
Victor Stinner
0cec877230
socket: Fix internal_select()
...
Bug found by Pavel Belikov ("Fragment N1"):
http://www.viva64.com/en/b/0414/#ID0ECDAE
2016-07-22 17:26:53 +02:00
Steve Dower
b22a67737e
Issue #27533 : Release GIL in nt._isdir
2016-07-17 20:49:38 -07:00
Stefan Krah
8c126f17f0
Issue #26974 : Fix segfault in the presence of absurd subclassing. Proactively
...
eliminate all internal uses of overridden methods.
2016-07-17 14:01:42 +02:00
Serhiy Storchaka
dec25afab1
Issue #17711 : Fixed unpickling by the persistent ID with protocol 0.
...
Original patch by Alexandre Vassalotti.
2016-07-17 11:24:17 +03:00
Martin Panter
bed7f1a512
Issue #23804 : Fix SSL zero-length recv() calls to not block and raise EOF
2016-07-11 00:17:13 +00:00
Serhiy Storchaka
1a2b24f02d
Issue #27332 : Fixed the type of the first argument of module-level functions
...
generated by Argument Clinic. Patch by Petr Viktorin.
2016-07-07 17:35:15 +03:00
Benjamin Peterson
b8a2f51ceb
assume egd unless OPENSSL_NO_EGD is defined—remove configure check ( closes #24557 )
2016-07-06 23:55:15 -07:00
Serhiy Storchaka
9e941d6373
Fixed integer overflow in array.buffer_info().
2016-06-23 23:55:34 +03:00
Stefan Krah
947f099d99
Issue #27006 : Do not use PyDec_CheckExact() on a type.
2016-06-20 14:12:52 +02:00
Stefan Krah
6817c59cf0
Issue #27006 : from_float(): call the subclass' __new__() and __init__().
2016-06-20 12:10:13 +02:00
Serhiy Storchaka
886a5f352f
Issue #27343 : Fixed error message for conflicting initializers of ctypes.Structure.
2016-06-18 09:58:24 +03:00
Serhiy Storchaka
85e6635edf
ctypes: the type of b_size is Py_ssize_t.
2016-06-17 11:11:07 +03:00
Serhiy Storchaka
adef6460d7
Issue #27330 : Fixed possible leaks in the ctypes module.
2016-06-16 22:08:46 +03:00
Benjamin Peterson
11a693d330
merge 3.4
2016-06-13 23:41:40 -07:00
Benjamin Peterson
06d49bb895
sync ordering of stddef.h includes with expat 2.1.1
2016-06-13 23:41:19 -07:00
Martin Panter
f00c49df10
Issue #16182 : Fix readline begidx, endidx, and use locale encoding
...
Based on patch by Serhiy Storchaka.
2016-06-14 01:16:16 +00:00
Berker Peksag
0e1d6802ff
Fix typo in _sqlite/module.h
2016-06-12 19:17:49 +03:00
Berker Peksag
7bea2347c7
Issue #27190 : Raise NotSupportedError if sqlite3 is older than 3.3.1
...
Patch by Dave Sawyer.
2016-06-12 14:09:51 +03:00
Serhiy Storchaka
179f960d47
Issue #25455 : Fixed a crash in repr of recursive functools.partial objects.
2016-06-12 11:44:06 +03:00
Serhiy Storchaka
9062c261a4
Issue #25455 : Fixed a crash in repr of ElementTree.Element with recursive tag.
2016-06-12 09:43:55 +03:00
Benjamin Peterson
b5ad54990f
merge 3.4 ( #26556 )
2016-06-11 13:33:17 -07:00
Benjamin Peterson
196d7db395
upgrade expt to 2.1.1 ( closes #26556 )
2016-06-11 13:28:56 -07:00
Serhiy Storchaka
ebe95fdabb
Issue #26305 : Argument Clinic now escapes braces. No need to double them.
2016-06-09 16:02:15 +03:00
Barry Warsaw
efe7256083
Fix a comment.
2016-06-08 17:55:49 -04:00
Barry Warsaw
480e28538d
Issue #27066 : Fixed SystemError if a custom opener (for open()) returns
...
a negative number without setting an exception.
2016-06-08 17:47:26 -04:00
Martin Panter
3f0ee83f14
Issue #27164 : Allow decompressing raw Deflate streams with predefined zdict
...
Based on patch by Xiang Zhang.
2016-06-05 10:48:34 +00:00
Benjamin Peterson
f585414813
remove (hilarious) defaults for various constants getpath.c needs
2016-06-02 12:41:35 -07:00
Martin Panter
e26da7c03a
Issue #27171 : Fix typos in documentation, comments, and test function names
2016-06-02 10:07:09 +00:00
Martin Panter
a90a4a9651
Issue #27125 : Remove duplicated words from documentation and comments
2016-05-30 04:04:50 +00:00
Gregory P. Smith ext:(%20%5BGoogle%20Inc.%5D)
fa76eeec70
Fix issue27146 - add stdio.h include to posixmodule.c for ctermid().
2016-05-28 21:03:48 +00:00
Martin Panter
6bb91f3b6e
Issue #20699 : Document that “io” methods accept bytes-like objects
...
This matches the usage of ZipFile and BufferedWriter. This still requires
return values to be bytes() objects.
Also document and test that the write() methods should only access their
argument before they return.
2016-05-28 00:41:57 +00:00
Martin Panter
0fdf41d847
Issue #5784 : Expand documentation and tests for zlib wbits parameter
...
Based on documentation by AM Kuchling.
2016-05-27 07:32:11 +00:00
Martin Panter
46f50726a0
Issue #27076 : Doc, comment and tests spelling fixes
...
Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
2016-05-26 05:35:26 +00:00
Benjamin Peterson
5a093c158a
fix indentation and add curlies ( closes #27093 )
2016-05-23 22:47:50 -07:00
Serhiy Storchaka
13e602ea0f
Issue #26168 : Fixed possible refleaks in failing Py_BuildValue() with the "N"
...
format unit.
2016-05-20 22:31:14 +03:00
Serhiy Storchaka
f95455da4c
Issue #26995 : Added tests for "f", "d", "D", "S", "Y", and "U" format codes
...
in PyArg_ParseTuple().
2016-05-16 10:11:47 +03:00
Serhiy Storchaka
acef5de6ec
Backported tests for issue #18531 .
2016-05-16 09:55:32 +03:00
Senthil Kumaran
507898d35d
issue27018 - Fix the documentation of select.epoll.register method.
2016-05-14 21:28:22 -07:00
Martin Panter
2dc1bbb659
Remove outdated PEP 291 compatibility requirement comment
2016-05-14 05:55:38 +00:00
Serhiy Storchaka
df40b62390
Issue #25745 : Fixed leaking a userptr in curses panel destructor.
2016-05-09 00:11:59 +03:00
Serhiy Storchaka
e3f1b0911e
Issue #23815 : Fixed crashes related to directly created instances of types in
...
_tkinter and curses.panel modules.
2016-05-08 20:46:22 +03:00
Martin Panter
4c35964b76
Corrections for a/an in code comments and documentation
2016-05-08 13:53:41 +00:00
Martin Panter
129fe04d4d
Issue #26512 : Clarify Integral; tidy up table of rounding functions
...
Based on patch by Julien.
2016-05-08 12:22:37 +00:00
Berker Peksag
720e65541c
Issue #18916 : Update thread module docstrings
...
* Fix acquire() signature
* Remove outdated help(LockType) reference
* Replace PyThread_allocate_lock() with threading.Lock()
Patch by Christopher Welborn.
2016-05-02 12:25:35 +03:00
Berker Peksag
d6e6f8b829
Issue #26898 : Fix typo in math.isclose() docstring
...
Patch by Marco Buttu.
2016-05-01 11:27:37 +03:00
Serhiy Storchaka
6dfcde5e29
Issue #26822 : Decreased an overhead of using _PyArg_NoKeywords() in calls of
...
itemgetter, attrgetter and methodcaller objects.
2016-04-29 09:10:55 +03:00
Serhiy Storchaka
c2a2a751cf
Issue #26822 : itemgetter, attrgetter and methodcaller objects no longer
...
silently ignore keyword arguments.
2016-04-23 10:51:39 +03:00
Martin Panter
8f26565ba9
Fix spelling (inital), grammar (may translates) in documentation, comments
2016-04-19 04:03:41 +00:00
Serhiy Storchaka
6a7b3a77b4
Issue #26778 : Fixed "a/an/and" typos in code comment and documentation.
2016-04-17 08:32:47 +03:00
Martin Panter
119e502277
Fix typos in code comments and documentation
2016-04-16 09:28:57 +00:00
Martin Panter
b030991a5f
Issue #26535 : Correct docs regarding the struct buffer size
2016-04-15 23:03:54 +00:00
Martin Panter
6245cb3c01
Correct “an” → “a” with “Unicode”, “user”, “UTF”, etc
...
This affects documentation, code comments, and a debugging messages.
2016-04-15 02:14:19 +00:00
Berker Peksag
dfcb041195
Fix unused variable 'libver' warning in Modules/_ssl.c
...
It can be seen on various buildbots like 3.x.cea-indiana-amd64
and 3.x.murray-snowleopard:
/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Modules/_ssl.c:2227: warning: unused variable 'libver'
/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Modules/_ssl.c:2227: warning: unused variable ‘libver’
2016-04-14 16:48:48 +03:00
Serhiy Storchaka
d6117a4296
Issue #26716 : Regenerate Argument Clinic code.
2016-04-14 12:28:01 +03:00
Serhiy Storchaka
864b63c33f
Issue #26200 : Restored more safe usages of Py_SETREF.
2016-04-11 09:53:37 +03:00
Serhiy Storchaka
57a01d3a0e
Issue #26200 : Added Py_SETREF and replaced Py_XSETREF with Py_SETREF
...
in places where Py_DECREF was used.
2016-04-10 18:05:40 +03:00
Serhiy Storchaka
e0805cf10e
Issue #26719 : More efficient formatting of ints and floats in json.
2016-04-10 14:41:19 +03:00
Victor Stinner
d0d5154251
Update fcntl doc: replace IOError with OSError
...
Issue #26716 . IOError is a deprecated alias to OSError since Python 3.3.
2016-04-09 11:32:58 +02:00
Serhiy Storchaka
48842714b9
Issue #22570 : Renamed Py_SETREF to Py_XSETREF.
2016-04-06 09:45:48 +03:00
Martin Panter
0f7673943a
Issue #6953 : Rearrange and expand Readline module documentation
...
* Group functions into six new subsections
* Document the underlying Readline function or variable accessed
* get_history_length() returns the history file limit
* clear_history() is conditionally compiled in
* Clarify zero and one bases for history item indexes
* parse_and_bind() uses its argument directly as an init line
* Change "command line" to "line buffer" for consistency
* read_init_file() also executes the file
* read_history_file() replaces the previous history
* write_history_file() overwrites any existing file
* Differentiate history file lines from history list items, which could be
multi-line
* Add more information about completion, also addressing Issue #10796
* libedit (Editline) may be used on any platform; detection is OS X specific
2016-04-05 07:37:22 +00:00
Martin Panter
28f35b24b6
Issue #23735 : Avoid sighandler_t Gnu-ism
2016-04-03 08:00:49 +00:00
Martin Panter
5dbbf1abba
Issue #23735 : Add SIGWINCH handler for Readline 6.3+ support, by Eric Price
2016-04-03 02:54:58 +00:00
Victor Stinner
ccdbe80a56
asyncio: sync overlapped.c with GitHub
...
On Python 3.3, use aliases:
* PyMem_RawMalloc = PyMem_Malloc
* PyMem_RawFree = PyMem_Free
These aliases are not need in Python 3.5, but this change makes synchronization
of code base simpler.
2016-04-01 21:37:41 +02:00
Martin Panter
754aab28ed
Issue #22854 : Clarify documentation about UnsupportedOperation and add tests
...
Also change BufferedReader.writable() and BufferedWriter.readable() to always
return False.
2016-03-31 07:21:56 +00:00
Serhiy Storchaka
fbb1c5ee06
Issue #26494 : Fixed crash on iterating exhausting iterators.
...
Affected classes are generic sequence iterators, iterators of str, bytes,
bytearray, list, tuple, set, frozenset, dict, OrderedDict, corresponding
views and os.scandir() iterator.
2016-03-30 20:40:02 +03:00
Benjamin Peterson
9491272751
open the cert store readonly
...
Patch from Chi Hsuan Yen.
2016-02-17 22:13:19 -08:00
Benjamin Peterson
b1db758061
reject negative data_size
2016-01-21 22:02:46 -08:00
Benjamin Peterson
c4032da201
prevent buffer overflow in get_data ( closes #26171 )
2016-01-20 22:23:44 -08:00
Benjamin Peterson
ef9cf08352
fix refleak in error condition
2016-01-20 22:06:43 -08:00
Benjamin Peterson
630329e4ea
merge 3.3
2016-01-01 11:55:47 -06:00
Benjamin Peterson
0e617e22f0
remove some copyright notices supserseded by the toplevel ones
2016-01-01 11:53:47 -06:00