Benjamin Peterson
9491272751
open the cert store readonly
Patch from Chi Hsuan Yen.
10 years ago
Ned Deily
47299fd39c
Issue #25924 : Avoid unnecessary serialization of getaddrinfo(3) calls on OS X
versions 10.5 or higher. Original patch by A. Jesse Jiryu Davis.
10 years ago
Raymond Hettinger
b6f17f5210
The return type of a rich comparison is an int
10 years ago
Serhiy Storchaka
ffe96ae10b
Issue #25994 : Added the close() method and the support of the context manager
protocol for the os.scandir() iterator.
10 years ago
Martin Panter
c04fb56e36
Issue #26304 : Change "allows to <verb>" to "allows <verb>ing" or similar
The original form is incorrect grammar and feels awkward, even though the
meaning is clear.
10 years ago
Martin Panter
b0cb42dfdb
Issue 26243: Forgot to update zlib doc strings in Argument Clinic
10 years ago
Martin Panter
1fe0d13d12
Issue #26243 : zlib.compress() keyword argument support by Aviv Palivoda
10 years ago
Raymond Hettinger
38418662e0
Issue #26200 : The SETREF macro adds unnecessary work in some cases.
10 years ago
Serhiy Storchaka
988b9bcd88
Issue #26117 : The os.scandir() iterator now closes file descriptor not only
when the iteration is finished, but when it was failed with error.
10 years ago
Martin Panter
567d513b9b
Issue #26244 : Clarify default zlib compression level in documentation
Based on patch by Aviv Palivoda.
10 years ago
Serhiy Storchaka
3874128519
Issue #25945 : Fixed bugs in functools.partial.
Fixed a crash when unpickle the functools.partial object with wrong state.
Fixed a leak in failed functools.partial constructor.
"args" and "keywords" attributes of functools.partial have now always types
tuple and dict correspondingly.
10 years ago
Raymond Hettinger
a63897164e
merge
10 years ago
Raymond Hettinger
b00da57561
Issue #26194 : Inserting into a full deque to raise an IndexError
10 years ago
Serhiy Storchaka
d5db57396b
Issue #19883 : Fixed possible integer overflows in zipimport.
10 years ago
Serhiy Storchaka
c8241fdde7
Issue #26198 : Added tests for "es", "et", "es#", "et#" and "C" format units
of PyArg_Parse*() functions.
10 years ago
Victor Stinner
7240030c52
Windows: Decode hostname from ANSI code page
Issue #26227 : On Windows, getnameinfo(), gethostbyaddr() and gethostbyname_ex()
functions of the socket module now decode the hostname from the ANSI code page
rather than UTF-8.
10 years ago
Raymond Hettinger
3743432302
Issue #26194 : Fix undefined behavior for deque.insert() when len(d) == maxlen
10 years ago
Raymond Hettinger
1ce6885f8a
Fix compiler warning about obviously unreachable code.
10 years ago
Raymond Hettinger
306d6b1ea6
Convert another post-decrement while-loop to pre-decrement for consistency
and better generated code (on both GCC and CLang).
10 years ago
Raymond Hettinger
165eee214b
Convert two other post-decrement while-loops to pre-decrements for consistency
and for better code generation.
10 years ago
Raymond Hettinger
d84ec225bd
Miscellaneous refactorings
* Add comment to the maxlen structure entry about the meaning of maxlen == -1
* Factor-out code common to deque_append(left) and deque_extend(left)
* Factor inner-loop in deque_clear() to use only 1 test per loop instead of 2
* Tighten inner-loops for deque_item() and deque_ass_item() so that the
compiler can combine the decrement and test into a single step.
10 years ago
Benjamin Peterson
b1db758061
reject negative data_size
10 years ago
Benjamin Peterson
c4032da201
prevent buffer overflow in get_data ( closes #26171 )
10 years ago
Benjamin Peterson
ef9cf08352
fix refleak in error condition
10 years ago
Victor Stinner
bfd316e750
Add _PyThreadState_UncheckedGet()
Issue #26154 : Add a new private _PyThreadState_UncheckedGet() function which
gets the current thread state, but don't call Py_FatalError() if it is NULL.
Python 3.5.1 removed the _PyThreadState_Current symbol from the Python C API to
no more expose complex and private atomic types. Atomic types depends on the
compiler or can even depend on compiler options. The new function
_PyThreadState_UncheckedGet() allows to get the variable value without having
to care of the exact implementation of atomic types.
Changes:
* Replace direct usage of the _PyThreadState_Current variable with a call to
_PyThreadState_UncheckedGet().
* In pystate.c, replace direct usage of the _PyThreadState_Current variable
with the PyThreadState_GET() macro for readability.
* Document also PyThreadState_Get() in pystate.h
10 years ago
Serhiy Storchaka
9cc4ed5c7a
Issue #26129 : Deprecated accepting non-integers in grp.getgrgid().
10 years ago
Georg Brandl
4b5b06203e
Fix indentation of continuation lines.
10 years ago
Stefan Krah
5f6ccc787e
Issue #26139 : libmpdec: disable /W4 warning (non-standard dllimport behavior).
10 years ago
Brett Cannon
56aae8f304
Issue #17633 : Improve support for namespace packages with zipimport.
Previously zipimport mistakenly limited namespace support to only the
top-level of the zipfile when it should have supported an arbitrary
depth.
Thanks to Phil Connel for the bug report and initial patch and Mike
Romberg for the final patch.
10 years ago
Brett Cannon
45adb3100b
Issue #26114 : Remove a reference to 'Numerical Recipes'.
While no copyright violation occurred, the license which
'Numerical Recipes' operates under is not amenable to Python,
so to prevent confusion it's easier to simply remove its mention.
10 years ago
Benjamin Peterson
3b1a8b3bbe
enable SSL_MODE_RELEASE_BUFFERS
Patch by Cory Benfield.
10 years ago
Serhiy Storchaka
576f132b98
Issue #20440 : Cleaning up the code by using Py_SETREF.
10 years ago
Benjamin Peterson
0e617e22f0
remove some copyright notices supserseded by the toplevel ones
10 years ago
Serhiy Storchaka
1ba01615de
Fixed formatting comman-line usage message.
10 years ago
Zachary Ware
bffa73e582
Issue #25972 , #20440 : Fix compilation on Windows
10 years ago
Stefan Krah
53f2e0ad45
Issue #25928 : Add Decimal.as_integer_ratio(). Python parts and docs by
Mark Dickinson.
10 years ago
Serhiy Storchaka
e4d65e3aab
Issue #25447 : Copying the lru_cache() wrapper object now always works,
independedly from the type of the wrapped object (by returning the original
object unchanged).
10 years ago
Serhiy Storchaka
1ed017ae92
Issue #20440 : Cleaning up the code by using Py_SETREF and Py_CLEAR.
Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner.
This patch doesn't fix bugs and hence there is no need to backport it.
10 years ago
Serhiy Storchaka
191321d11b
Issue #20440 : More use of Py_SETREF.
This patch is manually crafted and contains changes that couldn't be handled
automatically.
10 years ago
Serhiy Storchaka
4a1e70fc31
Issue #20440 : Applied yet one patch for using Py_SETREF.
The patch is automatically generated, it replaces the code that uses Py_CLEAR.
10 years ago
Serhiy Storchaka
ef1585eb9a
Issue #25923 : Added more const qualifiers to signatures of static and private functions.
10 years ago
Serhiy Storchaka
2d06e84455
Issue #25923 : Added the const qualifier to static constant arrays.
10 years ago
Serhiy Storchaka
bc4ded9537
Issue #24103 : Fixed possible use after free in ElementTree.XMLPullParser.
10 years ago
Serhiy Storchaka
5a57ade58e
Issue #20440 : Massive replacing unsafe attribute setting code with special
macro Py_SETREF.
10 years ago
Serhiy Storchaka
060ed718ce
Issue #25869 : Optimized deepcopying ElementTree; it is now 20 times faster.
10 years ago
Serhiy Storchaka
22adf2ac02
Issue #25873 : Optimized iterating ElementTree.
Iterating elements Element.iter() is now 40% faster,
iterating text Element.itertext() is now up to 2.5 times faster.
10 years ago
Serhiy Storchaka
66c08d90f6
Issue #25902 : Fixed various refcount issues in ElementTree iteration.
10 years ago
Serhiy Storchaka
5c4064e8bd
Issue #25421 : __sizeof__ methods of builtin types now use dynamic basic size.
This allows sys.getsize() to work correctly with their subclasses with
__slots__ defined.
10 years ago
Serhiy Storchaka
8bc2b4d522
Issue #25890 : Removed yet one unused variable.
10 years ago
Serhiy Storchaka
9b3a2eec1c
Issues #25890 , #25891 , #25892 : Removed unused variables in Windows code.
Reported by Alexander Riccio.
10 years ago