Serhiy Storchaka
004e03fb0c
bpo-29116: Improve error message for concatenating str with non-str. ( #710 )
2017-03-19 19:38:42 +02:00
Serhiy Storchaka
80ec8364f1
bpo-29748: Added the slice index converter in Argument Clinic. ( #549 )
2017-03-19 19:37:40 +02:00
Serhiy Storchaka
a5af6e1af7
bpo-25455: Fixed crashes in repr of recursive buffered file-like objects. ( #514 )
2017-03-19 19:25:29 +02:00
Brett Cannon
77ed11552d
Drop C++ header compatibility test ( #718 )
...
The $CXX environment variable is not exported under the 'c' language on Travis.
2017-03-19 09:49:55 -07:00
Serhiy Storchaka
18b250f844
bpo-29793: Convert some builtin types constructors to Argument Clinic. ( #615 )
2017-03-19 08:51:07 +02:00
Serhiy Storchaka
0b5615926a
bpo-20186: Convert tuple object implementation to Argument Clinic. ( #614 )
2017-03-19 08:47:58 +02:00
Serhiy Storchaka
5c643a028e
bpo-20185: Convert typeobject.c to Argument Clinic. ( #544 )
...
Based on patch by Vajrasky Kok.
2017-03-19 08:46:44 +02:00
Serhiy Storchaka
bdf6b910f9
bpo-29776: Use decorator syntax for properties. ( #585 )
2017-03-19 08:40:32 +02:00
Serhiy Storchaka
c85a26628c
bpo-28749: Fixed the documentation of the mapping codec APIs. ( #487 )
...
Added the documentation for PyUnicode_Translate().
2017-03-19 08:15:17 +02:00
Marco Buttu
909a6f626f
bpo-27200: Fix doctests in programming.rst and datetime.rst ( #401 )
2017-03-18 19:59:33 +03:00
Brett Cannon
993d4b3440
Combine the C++ header CI build into the main C build (GH-697)
...
This will eliminate one of the builds in Travis, allowing for CI overall to complete faster.
2017-03-17 15:29:27 -07:00
Jim Fasarakis-Hilliard
cb5297a9e6
bpo-29836: Remove nturl2path from test_sundry and amend the module docstring (GH-694)
...
The module is implicitly tested through test_urllib.
2017-03-17 11:16:20 -07:00
Коренберг Марк
1b038e0738
bpo-29808: SysLogHandler: Do not fail if initial connect to syslog failed ( #663 ) ( #663 )
2017-03-17 15:25:05 +00:00
Marco Buttu
3f2155ffe6
bpo-16355: Clarify when inspect.getcomments() returns None ( #428 )
...
Initial patch by Vajrasky Kok.
2017-03-17 11:50:23 +03:00
Marco Buttu
1bb0f3762e
bpo-29820: othergui.rst: Remove outdated information (GH-685)
2017-03-16 19:50:40 -07:00
Steve Dower
3286123532
Takes vcruntime140.dll from the correct source. ( #679 )
2017-03-16 10:19:18 -07:00
Nate
bd583ef985
bpo-29581: Make ABCMeta.__new__ pass **kwargs to type.__new__ ( #527 )
...
Many metaclasses in the standard library don't play nice with
__init_subclass__. This bug makes ABCMeta in particular with
__init_subclass__, which is an 80/20 solution for me personally.
AFAICT, a general solution to this problem requires updating all
metaclasses in the standard library to make sure they pass **kwargs to
type.__new__, whereas this PR only fixes ABCMeta. For context, see
https://bugs.python.org/issue29581 .
* added a test combining ABCMeta and __init_subclass__
* Added NEWS item
2017-03-15 11:39:22 -07:00
Daniel Himmelstein
b4e9087e7b
Fix stderr bug in json.tool test ( #346 )
...
See https://github.com/python/cpython/pull/201#discussion_r103229425 .
2017-03-15 17:31:06 +03:00
Michael Seifert
6c3d527468
bpo-29800: Fix crashes in partial.__repr__ if the keys of partial.keywords are not strings ( #649 )
2017-03-15 07:26:33 +02:00
Donald Stufft
024b4fdc4a
Use the default number of reviewers (3) for mention-bot ( #667 )
2017-03-14 18:20:55 -04:00
Victor Stinner
0f7b0b397e
bpo-29735: Optimize partial_call(): avoid tuple ( #516 )
...
* Add _PyObject_HasFastCall()
* partial_call() now avoids temporary tuple to pass positional
arguments if the callable supports the FASTCALL calling convention
for positional arguments.
* Fix also a performance regression in partial_call() if the callable
doesn't support FASTCALL.
2017-03-14 21:37:20 +01:00
Jim Fasarakis-Hilliard
d4914e9041
Add ELLIPSIS and RARROW. Add tests ( #666 )
2017-03-14 21:16:15 +01:00
Ivan Levkivskyi
9135275cba
bpo-28810: Update lnotab_notes.txt ( #665 )
2017-03-14 21:42:09 +02:00
INADA Naoki
2e4e011795
bpo-29592: site: skip abs_paths() when it's redundant (GH-167)
...
Call abs_paths() only if removeduppaths() changed sys.path
2017-03-15 00:52:19 +09:00
INADA Naoki
aa289a59ff
bpo-29548: Recommend PyObject_Call APIs over PyEval_Call APIs. (GH-75)
...
PyEval_Call* APIs are not documented and they doesn't respect PY_SSIZE_T_CLEAN.
So add comment block which recommends PyObject_Call* APIs to ceval.h.
This commit also changes PyEval_CallMethod and PyEval_CallFunction
implementation same to PyObject_CallMethod and PyObject_CallFunction
to reduce future maintenance cost. Optimization to avoid temporary
tuple are copied too.
PyEval_CallFunction(callable, "i", (int)i) now calls callable(i) instead of
raising TypeError. But accepting this edge case is backward compatible.
2017-03-14 18:00:59 +09:00
Xiang Zhang
7e2a54cdd9
bpo-28856: Let %b format for bytes support objects that follow the buffer protocol (GH-546)
2017-03-14 15:07:15 +08:00
Jelle Zijlstra
9e52c907b5
ftplib.FTP.retrbinary callback gets a bytes, not a str (GH-652)
2017-03-13 10:51:27 +08:00
Jelle Zijlstra
7bb6ac76b2
fix the name of argument to ftplib.FTP.set_pasv and fix wording (GH-653)
2017-03-13 10:19:00 +08:00
Xiang Zhang
b2d77175d1
bpo-29756: Improve documentation for list methods that compare items by equality (GH-572)
2017-03-13 10:09:16 +08:00
Oren Milman
004251059b
bpo-29730: replace some calls to PyNumber_Check and improve some error messages ( #650 )
2017-03-13 00:37:05 +02:00
Yury Selivanov
b7c9150b68
Fix wrapping into StopIteration of return values in generators and coroutines ( #644 )
2017-03-12 15:53:07 -04:00
Nikolay Kim
2b27e2e6a3
bpo-29742: asyncio get_extra_info() throws exception ( #525 )
2017-03-12 15:23:30 -04:00
Serhiy Storchaka
783d0c1a1c
bpo-28667: Fix a compile warning on FreeBSD when compare with FD_SETSIZE. ( #501 )
...
FreeBSD is the only platforms with unsigned FD_SETSIZE.
2017-03-12 14:43:12 +02:00
Serhiy Storchaka
bc44f045e6
bpo-15695: Add PyAPI_FUNC() to _PyDict_SizeOf() declaration. ( #639 )
2017-03-12 14:15:54 +02:00
Serhiy Storchaka
4125e5c60e
bpo-26121: Revert to using the own implementations of lgamma and gamma on all platforms. ( #637 )
2017-03-12 14:08:06 +02:00
Serhiy Storchaka
c2cf128571
bpo-8256: Fixed possible failing or crashing input() ( #517 )
...
if attributes "encoding" or "errors" of sys.stdin or sys.stdout
are not set or are not strings.
2017-03-12 13:50:36 +02:00
Serhiy Storchaka
4dadcd4ed7
bpo-26121: Use C library implementation for math functions erf() and erfc() on Windows. ( #632 )
2017-03-12 13:39:22 +02:00
Nick Coghlan
27abb0e533
bpo-29723: Add missing NEWS entry ( #638 )
2017-03-12 21:34:32 +10:00
Serhiy Storchaka
f6595983e0
bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. ( #507 )
2017-03-12 13:15:01 +02:00
Serhiy Storchaka
1989763f0d
bpo-20185: Convert the resource moduel to Argument Clinic. ( #545 )
...
Based on patch by Vajrasky Kok.
2017-03-12 13:08:30 +02:00
Nick Coghlan
d2977a3ae2
bpo-29723: Consistently configure sys.path[0] ( #575 )
...
Directory and zipfile execution previously added
the parent directory of the directory or zipfile
as sys.path[0] and then subsequently overwrote
it with the directory or zipfile itself.
This caused problems in isolated mode, as it
overwrote the "stdlib as a zip archive" entry
in sys.path, as the parent directory was
never added.
The attempted fix to that issue in bpo-29319
created the opposite problem in *non*-isolated
mode, by potentially leaving the parent
directory on sys.path instead of overwriting it.
This change fixes the root cause of the problem
by removing the whole "add-and-overwrite" dance
for sys.path[0], and instead simply never adds
the parent directory to sys.path in the first
place.
2017-03-12 20:38:32 +10:00
Nick Coghlan
6a6d090612
bpo-29798: Handle git worktree in `make patchcheck` ( #629 )
...
In git worktree directories, `.git` is a configuration
file rather than a subdirectory
2017-03-12 19:37:09 +10:00
Serhiy Storchaka
8999caeb00
bpo-15695: Implemented StgDict.__sizeof__(). ( #509 )
2017-03-12 11:12:30 +02:00
Serhiy Storchaka
202fda55c2
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. ( #485 )
2017-03-12 10:10:47 +02:00
Serhiy Storchaka
0767ad40bf
bpo-20185: Convert the marshal module to Argument Clinic. ( #541 )
...
Based on patch by Vajrasky Kok.
2017-03-12 09:20:15 +02:00
Serhiy Storchaka
c611a5b1d4
bpo-29746: Update marshal docs to Python 3. ( #547 )
2017-03-12 08:53:22 +02:00
Zachary Ware
93710c152e
bpo-29763: Use support.unlink instead of os.unlink (GH-624)
...
support.unlink waits for the files to be removed before returning
2017-03-11 22:10:07 -06:00
Nick Coghlan
482f7a274f
bpo-29656: Handle PR branches in 'make patchcheck' ( #302 )
2017-03-12 13:19:08 +10:00
Serhiy Storchaka
97553fdf9d
bpo-26121: Use C library implementation for math functions: ( #515 )
...
* bpo-26121: Use C library implementation for math functions:
tgamma(), lgamma(), erf() and erfc().
* Don't use tgamma() and lgamma() from libc on OS X.
2017-03-11 21:37:16 +00:00
Zachary Ware
c5d3bfea0b
Only trigger AppVeyor on code or config changes (GH-611)
2017-03-11 14:55:35 -06:00