Serhiy Storchaka
58d23e6806
bpo-29695: Deprecated using bad named keyword arguments in builtings: ( #486 )
...
int(), bool(), float(), list() and tuple(). Specify the value as a
positional argument instead.
2017-03-06 00:53:39 +02:00
Ivan Levkivskyi
7acffa23c9
bpo-29638: Fix spurious refleaks after typing is imported ( #469 )
2017-03-05 20:15:20 +02:00
Dillon Brock
c6b448b36d
Change assertRaises to assertRaisesRegex in test_xmlrpc ( #481 )
2017-03-05 19:27:06 +02:00
Ned Deily
de04644627
bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS. ( #462 )
...
* bpo-28087: Skip test_asyncore and test_eintr poll failures on macOS
Skip some tests of select.poll when running on macOS due to unresolved
issues with the underlying system poll function on some macOS versions.
2017-03-04 06:00:37 -05:00
Ned Deily
5c4b0d063a
bpo-27593: Get SCM build info from git instead of hg. ( #446 )
...
sys.version and the platform module python_build(),
python_branch(), and python_revision() functions now use
git information rather than hg when building from a repo.
Based on original patches by Brett Cannon and Steve Dower.
2017-03-04 00:19:55 -05:00
David Ellis
85b8d01c91
bpo-29623: Make PathLike objects work with ConfigParser.read() ( #242 )
2017-03-03 20:14:27 +03:00
Anish Shah
15aa4c88f6
bpo-29693: Fix for DeprecationWarning in test_import ( #421 )
...
Patch by Anish Shah.
2017-03-03 10:12:03 +02:00
Yury Selivanov
902e9c50e3
asyncio: Optimize _get_running_loop() to call getpid() only when there's a loop
2017-03-02 23:58:07 -05:00
Yury Selivanov
84af903f3b
bpo-28963: Fix out of bound iteration in asyncio.Future.remove_done_callback/C ( #408 )
2017-03-02 23:46:56 -05:00
Yury Selivanov
2f15645785
asyncio: Fix trailing whitespace/code style
2017-03-02 23:25:31 -05:00
Seth M. Larson
481cb70a72
bpo-29704: Fix asyncio.SubprocessStreamProtocol closing ( #405 )
2017-03-02 23:21:18 -05:00
Yury Selivanov
398ff91ac0
bpo-28893: Set __cause__ for errors in async iteration protocol ( #407 )
2017-03-02 22:20:00 -05:00
Yury Selivanov
8d26aa930c
bpo-29271: Fix Task.current_task and Task.all_tasks to accept None. ( #406 )
2017-03-02 22:16:33 -05:00
Yury Selivanov
ba7e1f9a4e
bpo-29703: asyncio: Fix creating new event loops in child processes. ( #404 )
2017-03-02 20:07:11 -05:00
orenmn
1bea762d9e
bpo-28129: fix ctypes crashes ( #386 )
...
* init commit, with initial tests for from_param and fields __set__ and __get__, and some additions to from_buffer and from_buffer_copy
* added the rest of tests and patches. probably only a first draft.
* removed trailing spaces
* replace ctype with ctypes in error messages
* change back from ctypes instance to ctype instance
2017-03-02 18:42:40 +01:00
Matthias Bussonnier
c643a967dd
Add Python version since deprecation in base64 methods. ( #33 )
...
Allow developers to not have to either test on N Python versions or
looked through multiple versions of the docs to know whether they can
easily update.
2017-03-02 17:21:26 +03:00
Benjamin Peterson
cb90f26122
fix subprocess on Windows ( #391 )
2017-03-02 00:03:41 -08:00
Benjamin Peterson
afbb5d1cbd
require uuid_generate_time_safe for all tests of it ( #390 )
...
The way mocking is written in these tests, we need to have the underlying function around.
2017-03-01 23:34:19 -08:00
Benjamin Peterson
f52279257e
allow path-like objects to be cwd on windows ( #389 )
...
#157 added the test, but it's currently (correctly) broken on windows.
2017-03-01 23:04:03 -08:00
Benjamin Peterson
0b8432538a
correct check for _uuid_generate_time ( #388 )
...
If ctypes is not available, _uuid_generate_time will be None not its restype attribute.
2017-03-01 21:53:14 -08:00
Benjamin Peterson
1e68716fd5
Revert "make the locale_flag fallback code work again ( #375 )" ( #387 )
...
This reverts commit 43f5df5bfa
.
2017-03-01 21:53:00 -08:00
Petr Motejlek
3c6314c08d
bpo-29615: SimpleXMLRPCDispatcher no longer chains KeyError ( #260 )
...
(or any other exception) to exception(s) raised in the dispatched methods.
Patch by Petr Motejlek.
2017-03-01 19:21:28 +02:00
Benjamin Peterson
43f5df5bfa
make the locale_flag fallback code work again ( #375 )
2017-02-28 23:59:12 -08:00
Benjamin Peterson
371963daba
use select instead of _opcode for import test ( #372 )
2017-02-28 23:14:09 -08:00
Benjamin Peterson
bee93f2d04
weaken test_from_import_missing_attr_has_name_and_path regular expression ( #371 )
...
Windows uses backslashes for separators.
2017-02-28 22:35:00 -08:00
amosonn
680e20beee
Clarify exception handler scope in contextlib
...
Moved explicit raise from inside try to try...else.
2017-03-01 16:18:27 +10:00
Xiang Zhang
267b9d2fa8
bpo-7769: enable xmlrpc.server.SimpleXMLRPCDispatcher.register_function used as decorator (GH-231)
2017-02-28 17:12:52 +08:00
Xiang Zhang
ecf39bbc97
bpo-29661: fix contradiction in timeit.Timer.autorange's docstring (GH-331)
2017-02-28 11:06:07 +08:00
Xiang Zhang
f3a9faba4b
bpo-29376: Fix assertion error in threading._DummyThread.is_alive() (GH-236)
2017-02-27 11:01:30 +08:00
Sayan Chowdhury
d5c11f7ace
bpo-28624: Add a test that checks that cwd parameter of Popen() accepts PathLike objects ( #157 )
2017-02-26 20:06:10 +03:00
Berker Peksag
4a926caf8e
bpo-28518: Start a transaction implicitly before a DML statement ( #245 )
...
Patch by Aviv Palivoda.
2017-02-26 18:22:38 +03:00
INADA Naoki
5dc33eea53
bpo-29110: add test for Aifc_write. (GH-293)
...
follow up of GH-162
2017-02-26 21:11:58 +09:00
Berker Peksag
5aa3856b4f
bpo-28961: Address my comments from earlier code review ( #305 )
2017-02-26 15:04:11 +03:00
Subhendu Ghosh
ae160bba20
bpo-26128: Added __init__to subprocess.STARTUPINFO ( #171 )
...
The Windows-specific subprocess.STARTUPINFO class now accepts
keyword-only arguments to its constructor to set the various
data attributes.
Patch by Subhendu Ghosh.
2017-02-26 00:59:05 +10:00
Ratnadeep Debnath
21024f0662
bpo-16285: Update urllib quoting to RFC 3986 ( #173 )
...
* bpo-16285: Update urllib quoting to RFC 3986
urllib.parse.quote is now based on RFC 3986, and hence
includes `'~'` in the set of characters that is not escaped
by default.
Patch by Christian Theune and Ratnadeep Debnath.
2017-02-25 19:00:28 +10:00
Nick Coghlan
140792bd51
bpo-29644: suppress subprocess output from webbrowser ( #289 )
...
When checking for the default X web browser, xdg-settings
may emit messages on stderr if some components (such as
kreadconfig5) are unavailable. These messages aren't of
interest to Python, so we just ignore them.
2017-02-25 18:40:07 +10:00
Nick Coghlan
56a8eccc43
bpo-24241: Add dedicated webbrowser.register test case ( #288 )
2017-02-25 18:14:07 +10:00
David Steele
e3ce69522f
bpo-24241: Improve preferred webbrowser handling ( #85 )
...
- Add 'preferred' argument to webbrowser.register
- Use xdg-settings to specify preferred X browser
The first change replaces the existing undocumented tri-state
'try_order' parameter with the documented boolean keyword-only
'preferred' parameter. Setting it to True places the browser at the
front of the list, preferring it as the return to a subsequent get() call.
The second change adds a private `_os_preferred_browser` setting
and then uses that to make the default browser reported by
`xdg-settings` first in the try list when running under X (or
another environment that sets the `DISPLAY` variable).
This avoids the problem where the first entry in the tryorder
queue otherwise defaults to xdg-open, which doesn't support
the "new window" option.
2017-02-25 14:47:38 +10:00
Ivan Levkivskyi
365cb5bb90
bpo-28556: Fix regression that sneaked into recent typing updates (GH-270)
2017-02-24 09:28:26 -08:00
Matthias Bussonnier
6059ce45aa
bpo-27788 : synchronise platform.py version number ( #246 )
...
Was bumped in the docstring by b9f4feab1b
but not in `__version__`
2017-02-24 11:47:34 +01:00
Matthias Bussonnier
41cea70aa3
bpo-29637: clean docstring only if not None (GH-267)
2017-02-24 15:44:19 +09:00
Ivan Levkivskyi
abb3b8ad94
Update to typing: treat subscripted generics as proxies ( #265 )
2017-02-23 19:03:28 -08:00
INADA Naoki
4c78c527d2
bpo-29622: Make AST constructor to accept less than enough number of positional arguments (GH-249)
...
bpo-29463 added optional "docstring" field to 4 AST types.
While it is optional, it breaks backward compatibility because AST constructor
requires number of positional argument is same to number of fields.
AST types accepts empty arguments, and incomplete keyword arguments.
But it's not big problem because field can be filled after creation, and checked when compiling.
So stop requiring complete set of fields for positional arguments too.
2017-02-24 02:48:17 +09:00
Arne de Laat
324c5d8ca6
bpo-28911: Clarify the behaviour of assert_called_once_with. ( #251 )
2017-02-23 15:57:25 +01:00
Martijn Pieters
d7e64337ef
bpo-28598: Support __rmod__ for RHS subclasses of str in % string formatting operations ( #51 )
...
When you use `'%s' % SubClassOfStr()`, where `SubClassOfStr.__rmod__` exists, the reverse operation is ignored as normally such string formatting operations use the `PyUnicode_Format()` fast path. This patch tests for subclasses of `str` first and picks the slow path in that case.
Patch by Martijn Pieters.
2017-02-23 15:38:04 +02:00
INADA Naoki
cb41b2766d
bpo-29463: Add docstring field to some AST nodes. ( #46 )
...
* bpo-29463: Add docstring field to some AST nodes.
ClassDef, ModuleDef, FunctionDef, and AsyncFunctionDef has docstring
field for now. It was first statement of there body.
* fix document. thanks travis!
* doc fixes
2017-02-22 16:31:59 +01:00
Matthias Bussonnier
1bc156430b
bpo-29546: Improve from-import error message with location ( #103 )
...
bpo-29546: Improve from-import error message with location
2017-02-22 10:06:50 -05:00
Anthony Zhang
03f68b60e1
bpo-29110: Fix file object leak in `aifc.open` when given invalid AIFF file. (GH-162)
2017-02-22 16:23:30 +09:00
Matthias Bussonnier
8fb1f6e039
bpo-29554: Improve docs for pstat module and profile. ( #88 )
...
Clarify that methods take a string which is interpreted as a regex,
not a regex object.
Also clarify what the old `-1`, `0`, `1` and `2` options were.
2017-02-21 08:30:00 +03:00
Mark Dickinson
112ec38c15
bpo-29602: fix signed zero handling in complex constructor. ( #203 )
...
* Fix incorrect handling of signed zeros for complex-related classes.
* Add Misc/NEWS entry.
2017-02-20 20:28:15 +00:00
Serhiy Storchaka
9639e4ab6d
bpo-29532: Altering a kwarg dictionary passed to functools.partial() ( #190 )
...
no longer affects a partial object after creation.
2017-02-20 14:04:30 +02:00
Vinay Sajip
a86339b83f
Fixed bpo-29565: Corrected ctypes passing of large structs by value on Windows AMD64. ( #168 )
...
* Fixed bpo-29565: Corrected ctypes passing of large structs by value.
Added code and test to check that when a structure passed by value
is large enough to need to be passed by reference, a copy of the
original structure is passed. The callee updates the passed-in value,
and the test verifies that the caller's copy is unchanged. A similar
change was also added to the test added for bpo-20160 (that test was
passing, but the changes should guard against regressions).
* Reverted unintended whitespace changes.
2017-02-20 00:16:33 +00:00
Barry Warsaw
8c130d7f81
bpo-22807: Expose platform UUID generation safety information. ( #138 )
...
bpo-22807: Expose platform UUID generation safety information.
2017-02-18 15:45:49 -05:00
Nick Coghlan
ace5c0fdd9
bpo-29571: Use correct locale encoding in test_re ( #149 )
...
``local.getlocale(locale.LC_CTYPE)`` and
``locale.getpreferredencoding(False)`` may give different answers
in some cases (such as the ``en_IN`` locale).
``re.LOCALE`` uses the latter, so update the test case to match.
2017-02-18 15:01:22 +05:30
Senthil Kumaran
b2ee40ed9c
Change some mercurial/ hg.python.org references. ( #8 )
2017-02-16 07:18:42 -08:00
matejcik
9764c151c5
update test_socket AEAD test for kernel 4.9 and up ( #133 )
2017-02-16 14:41:31 +01:00
Matthias Bussonnier
1d4601c2c6
bpo-29576: add explicit deprecation for importlib.abc.find_loader() and find_module() (GH-32)
2017-02-15 18:00:32 -08:00
Matthias Bussonnier
bc4bed4405
bpo-29546: Set 'path' on ImportError for ``from ... import ...`` (GH-91)
2017-02-14 16:05:25 -08:00
Andrew Nester
6d1dece06d
Fixed #29534 - _decimal difference with _pydecimal ( #65 )
2017-02-14 18:22:55 +00:00
Ivan Levkivskyi
b692dc8475
bpo-28556: Various updates to typing ( #28 )
...
various updates from upstream python/typing repo:
- Added typing.Counter and typing.ChainMap generics
- More flexible typing.NamedTuple
- Improved generic ABC caching
- More tests
- Bugfixes
- Other updates
* Add Misc/NEWS entry
* Add issue number
2017-02-13 13:50:14 -08:00
MRMillon
baf7bb30a0
getpass: update docstrings ( #49 )
...
EasyDialogs was removed in 3.x. fallback_getpass will always be the answer here.
ff47a133e1
2017-02-12 23:10:48 +01:00
Nathaniel J. Smith
af88e7eda4
bpo-27122: Fix comment to point to correct issue number ( #47 )
...
It took me quite a bit to figure out what this was referring to,
since the given issue number is wrong, and the original commit
message I found through git blame lists a different, also wrong
issue number... see https://bugs.python.org/issue27122#msg279449
2017-02-12 14:37:24 +03:00
Victor Stinner
109a9fe796
Merge 3.6
2017-02-10 12:38:02 +01:00
Victor Stinner
2a35c939cc
Fix test_datetime on Windows
...
Issue #29100 : On Windows, datetime.datetime.fromtimestamp(min_ts) fails with an
OSError in test_timestamp_limits().
2017-02-10 12:37:21 +01:00
Victor Stinner
07547cdad3
Merge 3.6
2017-02-10 11:45:28 +01:00
Victor Stinner
6f37e3645d
Fix test_datetime on system with 32-bit time_t
...
Issue #29100 : Catch OverflowError in the new test_timestamp_limits() test.
2017-02-10 11:45:14 +01:00
Victor Stinner
05e218c37d
Merge 3.6
2017-02-10 10:34:37 +01:00
Victor Stinner
b67f096738
Fix datetime.fromtimestamp(): check bounds
...
Issue #29100 : Fix datetime.fromtimestamp() regression introduced in Python
3.6.0: check minimum and maximum years.
2017-02-10 10:34:02 +01:00
Łukasz Langa
40ee824d1d
Merge 3.6 ( fix #29519 )
2017-02-10 00:20:16 -08:00
Łukasz Langa
57fe245e8c
Merge 3.5 ( fix #29519 )
2017-02-10 00:16:10 -08:00
Łukasz Langa
9cd7e17640
Fix #29519 : weakref spewing exceptions during interp finalization
2017-02-10 00:14:55 -08:00
Victor Stinner
331bbe6aaa
Issue #29507 : Update test_exceptions
...
test_unraisable() of test_exceptions expects that PyErr_WriteUnraisable(method)
fails on repr(method).
Before the previous change (7b8df4a5d81d), slot_tp_finalize() called
PyErr_WriteUnraisable() with a PyMethodObject. In this case, repr(method) calls
repr(self) which is BrokenRepr.__repr__() and the calls raises a new exception.
After the previous change, slot_tp_finalize() uses an unbound method: repr() is
called on a regular __del__() method which doesn't call repr(self). repr()
doesn't fail anymore.
PyErr_WriteUnraisable() doesn't call __repr__() anymore, so remove BrokenRepr
unit test.
2017-02-09 23:49:50 +01:00
Victor Stinner
3722f1f483
support: temp_dir() and change_cwd() uses repr() in error message
...
Serhiy Storshaka pointed me that str(path) can emit a BytesWarning: use
repr(path) instead.
2017-02-08 15:49:10 +01:00
Victor Stinner
17a63e2169
Fix regrtest -j0 -R output
...
Write also dots into stderr, instead of stdout.
2017-02-08 13:06:08 +01:00
Victor Stinner
04054d9ac2
Update test_support for my temp_dir/change_cwd changes
2017-02-08 12:49:02 +01:00
Victor Stinner
edb4881441
support: add more info on temp_dir() and change_cwd() failure
...
Log the OSError exception message.
2017-02-08 12:25:00 +01:00
Mariatta Wijaya
189413dcfe
Issue #29314 : Merge with 3.6
2017-02-06 22:06:04 -08:00
Mariatta Wijaya
6138432e59
Issue #29314 : Merge with 3.5
2017-02-06 22:05:10 -08:00
Mariatta Wijaya
4e7ff8b1a3
Issue #29314 : Set the stacklevel to two in asyncio.async() Deprecation Warning
2017-02-06 22:03:00 -08:00
Steve Dower
18d2c934e3
Issue #28164 : Improves test on Windows 7
2017-02-06 14:53:21 -08:00
Steve Dower
2dfa6cb9ff
Issue #28164 : Improves test on Windows 7
2017-02-06 14:50:17 -08:00
Victor Stinner
5bad70def6
regrtest: don't fail immediately if a child does crash
...
Issue #29362 : Catch a crash of a worker process as a normal failure and
continue to run next tests. It allows to get the usual test summary: single
line result (OK/FAIL), total duration, etc.
2017-02-06 12:42:00 +01:00
Xiang Zhang
6aee6fbce8
Issue #29405 : Make total calculation in _guess_delimiter more accurate.
2017-02-06 10:50:09 +08:00
Steve Dower
64a2f9e882
Merge from 3.6
2017-02-04 16:46:53 -08:00
Steve Dower
0c8ee60e91
Updates test_winconsoleio to better show the source of its issues.
2017-02-04 16:46:34 -08:00
Steve Dower
824c6fdfaa
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:46 -08:00
Steve Dower
5f9193a6ed
Issue #29326 : Ignores blank lines in ._pth files (Patch by Alexey Izbyshev)
2017-02-04 15:19:29 -08:00
Steve Dower
43fec9b419
Merge issue #28164 and issue #29409
2017-02-04 15:14:18 -08:00
Steve Dower
722e3e2705
Issue #28164 : Correctly handle special console filenames (patch by Eryk Sun)
2017-02-04 15:07:46 -08:00
Steve Dower
479d96c694
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:56:57 -08:00
Steve Dower
1add96f1b6
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:55:16 -08:00
Steve Dower
d3c4853b78
Issue #29416 : Prevent infinite loop in pathlib.Path.mkdir
2017-02-04 14:54:56 -08:00
Steve Dower
eacee98679
Issue #29409 : Implement PEP 529 for io.FileIO (Patch by Eryk Sun)
2017-02-04 14:38:11 -08:00
Serhiy Storchaka
ef5176769d
Issue #29444 : Fixed out-of-bounds buffer access in the group() method of
...
the match object. Based on patch by WGH.
2017-02-04 22:57:44 +02:00
Serhiy Storchaka
86e42376c2
Issue #29444 : Fixed out-of-bounds buffer access in the group() method of
...
the match object. Based on patch by WGH.
2017-02-04 22:55:40 +02:00
Serhiy Storchaka
7e10dbbd45
Issue #29444 : Fixed out-of-bounds buffer access in the group() method of
...
the match object. Based on patch by WGH.
2017-02-04 22:53:57 +02:00
INADA Naoki
5566bbb8d5
Issue #29263 : LOAD_METHOD support for C methods
...
Calling builtin method is at most 10% faster.
2017-02-03 07:43:03 +09:00
Vinay Sajip
144fff8b90
Closes #29213 : Merged fix from 3.6.
2017-02-02 19:33:43 +00:00
Vinay Sajip
3746619b84
Fixes #29213 : merged fix from 3.5.
2017-02-02 19:26:48 +00:00
Vinay Sajip
db38b6c9a9
Fixes #29213 : regularised EOLs of venv scripts.
2017-02-02 19:25:24 +00:00
Vinay Sajip
7601d780a7
Closes #24875 : Merged fix from 3.6.
2017-02-02 19:17:51 +00:00
Vinay Sajip
993f535ae9
Fixes #24875 : Merged fix from 3.5.
2017-02-02 19:17:02 +00:00
Vinay Sajip
db6322cb8a
Fixes #24875 : pip can now be installed in a venv with --system-site-packages.
2017-02-02 19:05:19 +00:00
Victor Stinner
c0f59ad145
Rename struct.unpack() 2nd parameter to "buffer"
...
Issue #29300 : Rename struct.unpack() second parameter from "inputstr" to
"buffer", and use the Py_buffer type.
Fix also unit tests on struct.unpack() which passed a Unicode string instead of
a bytes string as struct.unpack() second parameter. The purpose of
test_trailing_counter() is to test invalid format strings, not to test the
buffer parameter.
2017-02-02 14:24:16 +01:00
Victor Stinner
64e91275e3
Merge 3.5
2017-02-02 14:18:43 +01:00
Victor Stinner
a5917d1d15
Issue #29300 : test_struct tests unpack_from() with keywords
...
Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
2017-02-02 14:18:18 +01:00
Victor Stinner
3f2d10132d
Issue #29300 : Convert _struct module to Argument Clinic
...
* The struct module now requires contiguous buffers.
* Convert most functions and methods of the _struct module to Argument Clinic
* Use "Py_buffer" type for the "buffer" argument. Argument Clinic is
responsible to create and release the Py_buffer object.
* Use "PyStructObject *" type for self to avoid explicit conversions.
* Add an unit test on the _struct.Struct.unpack_from() method to test passing
arguments as keywords.
* Rephrase docstrings.
* Rename "fmt" argument to "format" in docstrings and the documentation.
As a side effect, functions and methods which used METH_VARARGS calling
convention like struct.pack() now use the METH_FASTCALL calling convention
which avoids the creation of temporary tuple to pass positional arguments and
so is faster. For example, struct.pack("i", 1) becomes 1.56x faster (-36%)::
$ ./python -m perf timeit \
-s 'import struct; pack=struct.pack' 'pack("i", 1)' \
--compare-to=../default-ref/python
Median +- std dev: 119 ns +- 1 ns -> 76.8 ns +- 0.4 ns: 1.56x faster (-36%)
Significant (t=295.91)
Patch co-written with Serhiy Storchaka.
2017-02-02 12:09:30 +01:00
Serhiy Storchaka
bee09aecc2
Issue #29368 : The extend() method is now called instead of the append()
...
method when unpickle collections.deque and other list-like objects.
This can speed up unpickling to 2 times.
2017-02-02 11:12:47 +02:00
Guido van Rossum
934aba66ef
Issue #29377 : Add three new wrappers to types.py (Manuel Krebber).
2017-02-01 10:55:58 -08:00
Victor Stinner
72268ae1c0
Fix test_gdb.test_wrapper_call() on Python 2
...
Issue #29367 . On Python 2, __init__ name is render as u'__init__'.
2017-02-01 18:26:14 +01:00
Victor Stinner
f94b68a025
Make test_gdb.test_wrapper_call() make reliable
...
Issue #29367 . Use two break points to prevent breakpoint during Python
initialization.
2017-02-01 17:00:32 +01:00
Victor Stinner
611083331d
python-gdb.py supports method-wrapper
...
Issue #29367 : python-gdb.py now supports also method-wrapper (wrapperobject)
objects.
2017-02-01 16:29:54 +01:00
Berker Peksag
ef158c3ced
Issue #29218 : Remove unused install_misc command
...
It has been documented as unused since 6c6844a2fa30 (2000-05-25)
Patch by Eric N. Vander Weele.
2017-02-01 04:42:48 +03:00
Berker Peksag
7964d2b22e
Issue #29283 : Merge from 3.6
2017-01-30 13:56:20 +03:00
Berker Peksag
236fc60986
Issue #29283 : Delete accidentally added Lib/site-packages/README
...
It was renamed to README.txt in d90a65014c42 and it was
back by a merge commit accidentally.
2017-01-30 13:55:49 +03:00
Vinay Sajip
61fda05b82
Closes #29308 : Merged fix from 3.6.
2017-01-27 12:43:41 +00:00
Vinay Sajip
dbb5686e7e
Fixes #29308 : Merged fix from 3.5.
2017-01-27 12:42:45 +00:00
Vinay Sajip
3ac504289a
Fixes #29308 : Respect VIRTUAL_ENV_DISABLE_PROMPT in Activate.ps1.
2017-01-27 12:41:27 +00:00
Serhiy Storchaka
78d9e58f20
Issues #29311 , #29289 : Fixed and improved docstrings for dict and OrderedDict
...
methods.
2017-01-25 00:30:04 +02:00
Ethan Furman
0105606f55
issue29167: fix race condition in (Int)Flag
2017-01-24 12:13:34 -08:00
Ethan Furman
28cf663ff0
closes issue29167: fix race condition in (Int)Flag
2017-01-24 12:12:06 -08:00
Serhiy Storchaka
067cbd02bf
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:54:07 +02:00
Serhiy Storchaka
4102d25b7e
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:52:43 +02:00
Serhiy Storchaka
713640c4c9
Issue #29337 : Fixed possible BytesWarning when compare the code objects.
...
Warnings could be emitted at compile time.
2017-01-24 20:49:26 +02:00
Serhiy Storchaka
90f6332382
Issue #29338 : Fix test_enum.
2017-01-24 09:06:22 +02:00
Martin Panter
c05032c4ab
Issues #29273 : Merge test___all__ from 3.6
2017-01-23 23:15:19 +00:00
Martin Panter
9cf20a664c
Issues #29273 : Merge test___all__ from 3.5
2017-01-23 22:59:03 +00:00
Martin Panter
b1b985da12
Issue #29273 : Remove unneeded workaround to restore locale
...
The “readline” module already has a workaround using setlocale(LC_CTYPE,
NULL). The code in test___all__ calls getlocale(), which can subtly alter
the locale string and cause the test framework to complain.
2017-01-23 22:11:09 +00:00
Serhiy Storchaka
213f229fbd
Issue #29338 : Don't output an empty signature for class constructor.
2017-01-23 14:02:35 +02:00
Serhiy Storchaka
ccb5f3cee9
Issue #29338 : The help of a builtin or extension class now includes the
...
constructor signature if __text_signature__ is provided for the class.
2017-01-23 12:37:00 +02:00
Gregory P. Smith
60e6e962ba
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:20:04 -08:00
Gregory P. Smith
9358a6e62b
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:19:51 -08:00
Gregory P. Smith
1fa08bcbbb
Skip the test requiring ctypes if ctypes is unavailable.
...
prevents http://buildbot.python.org/all/builders/x86%20Ubuntu%20Shared%203.x/builds/240/steps/test/logs/stdio
2017-01-22 22:19:38 -08:00
Gregory P. Smith
773a8c4f8d
typo fix, extra '.' on MacOS :)
2017-01-22 20:55:20 -08:00
Gregory P. Smith
21a9b1dfc6
typo fix, extra '.' on MacOS :)
2017-01-22 20:55:02 -08:00
Gregory P. Smith
21d333b703
typo fix, extra '.' :)
2017-01-22 20:54:42 -08:00
Guido van Rossum
4d5097a7da
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 ) (3.6->3.7)
2017-01-22 17:47:22 -08:00
Guido van Rossum
744cd63df9
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 ) (3.5->3.6)
2017-01-22 17:47:21 -08:00
Guido van Rossum
95919c096c
Issue #28556 : Allow defining methods in NamedTuple class syntax ( #362 )
2017-01-22 17:47:20 -08:00
Guido van Rossum
62f82a9306
Issue #28556 : various style fixes for typing.py (3.6->3.7)
2017-01-22 17:43:57 -08:00
Guido van Rossum
0c5f47fbf4
Issue #28556 : various style fixes for typing.py (3.5->3.6)
2017-01-22 17:43:56 -08:00
Guido van Rossum
d7adfe129c
Issue #28556 : various style fixes for typing.py
2017-01-22 17:43:53 -08:00
Gregory P. Smith
5c8706c04a
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:30:28 -08:00
Gregory P. Smith
78034c81fb
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:29:44 -08:00
Gregory P. Smith
50e16e33af
Issue #29335 : Fix subprocess.Popen.wait() when the child process has
...
exited to a stopped instead of terminated state (ex: when under ptrace).
2017-01-22 17:28:38 -08:00
Xiang Zhang
d528791096
Issue #29290 : Merge 3.6.
2017-01-22 14:41:42 +08:00
Xiang Zhang
b1681189af
Issue #29290 : Merge 3.5.
2017-01-22 14:39:20 +08:00
Xiang Zhang
7fe28ad837
Issue #29290 : argparse help messages won't wrap at non-breaking spaces.
2017-01-22 14:37:22 +08:00
Serhiy Storchaka
19dea2c726
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:17:25 +02:00
Serhiy Storchaka
a203360836
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:15:18 +02:00
Serhiy Storchaka
362f058a89
Issue #28735 : Fixed the comparison of mock.MagickMock with mock.ANY.
2017-01-21 23:12:58 +02:00
Mark Dickinson
5e65cd39df
Issue #29282 : Backed out changeset b33012ef1417
2017-01-21 13:10:52 +00:00
Mark Dickinson
d1b230e48b
Issue #29282 : add fused multiply-add function, math.fma.
2017-01-21 12:35:30 +00:00
Serhiy Storchaka
299dc239fe
Issue #29327 : Fixed a crash when pass the iterable keyword argument to sorted().
2017-01-20 08:35:18 +02:00
Serhiy Storchaka
398ef5c08f
Issue #29327 : Fixed a crash when pass the iterable keyword argument to sorted().
2017-01-20 08:33:06 +02:00
Guido van Rossum
38a49bec7a
Issue #29198 : add AsyncGenerator (Jelle Zijlstra) (3.5->3.6)
2017-01-18 13:10:34 -08:00
Guido van Rossum
e9ed560fce
Issue #29198 : add AsyncGenerator (Jelle Zijlstra)
2017-01-18 13:10:31 -08:00
Guido van Rossum
c75340a8fd
Issue #29198 : add AsyncGenerator (Jelle Zijlstra) (3.6->3.7)
2017-01-18 13:10:36 -08:00
Victor Stinner
fa025f112f
Update and enhance python-gdb.py
...
Issue #29259 :
* Detect PyCFunction is the current frame, not only in the older frame
* Ignore PyCFunction_Call() since it now calls _PyCFunction_FastCallDict(), and
_PyCFunction_FastCallDict() is already detected
2017-01-18 17:20:01 +01:00
Guido van Rossum
e69f0e6111
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra (3.6->3.7)
2017-01-18 08:03:54 -08:00
Guido van Rossum
49f08a2c26
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra (3.5->3.6)
2017-01-18 08:03:52 -08:00
Guido van Rossum
3c268be885
Issue #28556 : allow default values in class form of NamedTuple -- Jelle Zijlstra
2017-01-18 08:03:50 -08:00
Martin Panter
9722d7f142
Issue 29274: Merge doc fixes from 3.6
2017-01-18 12:11:42 +00:00
Martin Panter
4710935b11
Issue 29274: Merge doc fixes from 3.5
2017-01-18 12:11:12 +00:00
Martin Panter
37f183d43d
Issue #29274 : tests cases → test cases
2017-01-18 12:06:38 +00:00
Guido van Rossum
52f29591bc
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 ) (3.6->3.7)
2017-01-17 20:43:31 -08:00
Guido van Rossum
043a8bc72a
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 ) (3.5->3.6)
2017-01-17 20:43:30 -08:00
Guido van Rossum
83ec302e52
Issue #28556 : merge 5 more typing changes from upstream ( #340 , #344 , #348 , #349 , #350 )
2017-01-17 20:43:28 -08:00
Raymond Hettinger
e12c313f5e
merge
2017-01-16 22:43:43 -08:00
Raymond Hettinger
80490525e0
Issue #29011 : Fix an important omission by adding Deque to the typing module.
2017-01-16 22:42:37 -08:00
Raymond Hettinger
f6b96c7bb5
merge
2017-01-16 22:44:14 -08:00
Vinay Sajip
fc4b438163
Closes #29132 : Merged fix from 3.6.
2017-01-15 10:07:56 +00:00
Vinay Sajip
61eda7260a
Fixed #29132 : Updated shlex to work better with punctuation chars in POSIX mode.
...
Thanks to Evan_ for the report and patch.
2017-01-15 10:06:52 +00:00
Martin Panter
5644729aa6
Issue #29145 : Merge test from 3.6
2017-01-14 06:29:32 +00:00
Martin Panter
758c7d044b
Merge tests from 3.5
2017-01-14 06:26:51 +00:00
Serhiy Storchaka
9ed707eb4c
Issue #29197 : Removed deprecated function ntpath.splitunc().
2017-01-13 20:55:05 +02:00
Serhiy Storchaka
4f76fb16b7
Issue #29210 : Removed support of deprecated argument "exclude" in
...
tarfile.TarFile.add().
2017-01-13 13:25:24 +02:00
Serhiy Storchaka
6196ac4186
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:44:00 +02:00
Serhiy Storchaka
4c4ff5f4d4
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:42:17 +02:00
Serhiy Storchaka
4b318f8be9
Issue #29219 : Fixed infinite recursion in the repr of uninitialized
...
ctypes.CDLL instances.
2017-01-13 09:37:56 +02:00
Serhiy Storchaka
cc283378d6
Issue #29192 : Removed deprecated features in the http.cookies module.
2017-01-13 09:23:15 +02:00
Serhiy Storchaka
009b0a1fac
Issue #29193 : A format string argument for string.Formatter.format()
...
is now positional-only.
2017-01-13 09:10:51 +02:00
Serhiy Storchaka
97bf592925
Null merge
2017-01-12 19:43:15 +02:00
Serhiy Storchaka
cc03ab6c4f
Null merge
2017-01-12 19:43:06 +02:00
Serhiy Storchaka
cb19aeb550
Merge heads
2017-01-12 19:42:44 +02:00
Serhiy Storchaka
617c7753ce
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 19:42:20 +02:00
Serhiy Storchaka
42e1ea9a10
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 19:12:21 +02:00
Vinay Sajip
98a74413b9
Issue #22343 : Made bash activate script available on Windows.
2017-01-12 17:12:10 +00:00
Serhiy Storchaka
67796521dd
Issue #28969 : Fixed race condition in C implementation of functools.lru_cache.
...
KeyError could be raised when cached function with full cache was
simultaneously called from differen threads with the same uncached arguments.
2017-01-12 18:34:33 +02:00
Martin Panter
b71c0956d0
Issues #1621 , #29145 : Test for str.join() overflow
2017-01-12 11:54:59 +00:00
Martin Panter
52e29072e1
Issue #22980 : Skip a sysconfig test if _ctypes is not available.
...
Extracted from revision a1daf2d289ad by Zachary Ware.
2017-01-13 10:38:09 +00:00
Victor Stinner
798ad2742b
Merge 3.6
2017-01-12 11:53:20 +01:00
Victor Stinner
12c4aba1a0
Merge 3.5
2017-01-12 11:53:09 +01:00
Victor Stinner
9b8dcc6b1c
Fix script_helper.run_python_until_end(): copy SYSTEMROOT
...
Windows requires at least the SYSTEMROOT environment variable to start Python.
If run_python_until_end() doesn't copy SYSTEMROOT, the function always fail on
Windows.
2017-01-12 11:51:46 +01:00
Victor Stinner
de383289ea
Issue #25591 : Fix test_imaplib if ssl miss
2017-01-12 11:51:31 +01:00
Serhiy Storchaka
d9c956fb23
Issue #20804 : The unittest.mock.sentinel attributes now preserve their
...
identity when they are copied or pickled.
2017-01-11 20:13:03 +02:00
Vinay Sajip
d4f5001bac
Issue #29220 : Merged fixes from 3.6.
2017-01-11 17:44:07 +00:00
Vinay Sajip
a861d48817
Issue #292Merged fixes from 3.5.
2017-01-11 17:41:28 +00:00
Vinay Sajip
924aaae4c2
Issue #29220 : Improved fix and test.
2017-01-11 17:35:36 +00:00
Vinay Sajip
8b866d5429
Closes #29220 : Fixed regression in logging.getLevelName().
2017-01-11 06:57:55 +00:00
Vinay Sajip
9ebb245db8
Closes #29177 : Merged fix from 3.6.
2017-01-09 16:55:24 +00:00
Vinay Sajip
1e6499c19c
Fixes #29177 : Improved resilience of logging tests which use socket servers.
...
Thanks to Xavier de Gaye for the report and patch improvements.
2017-01-09 16:54:12 +00:00
Raymond Hettinger
605a4476f8
Add test for ea064ff3c10f
2017-01-09 07:50:19 -08:00
Xiang Zhang
04c15d5bdc
Issue #29142 : Merge 3.6.
2017-01-09 11:52:10 +08:00
Xiang Zhang
c44d58a77a
Issue #29142 : Merge 3.5.
2017-01-09 11:50:02 +08:00
Xiang Zhang
959ff7f1c6
Issue #29142 : Fix suffixes in no_proxy handling in urllib.
...
In urllib.request, suffixes in no_proxy environment variable with
leading dots could match related hostnames again (e.g. .b.c matches a.b.c).
Patch by Milan Oberkirch.
2017-01-09 11:47:55 +08:00
Raymond Hettinger
19c7238560
Sync-up with 3.7 by backporting minor lru_cache code beautification
2017-01-08 18:22:24 -08:00
Raymond Hettinger
ac7c5acf9b
merge
2017-01-08 17:29:21 -08:00
Raymond Hettinger
4ee39141e8
Issue #29203 : functools.lru_cache() now respects PEP 468
2017-01-08 17:28:20 -08:00
Raymond Hettinger
bd41e0b3f1
merge
2017-01-08 00:37:32 -08:00
Raymond Hettinger
ec53b07ef1
Add OrderedDict test for PEP 468 (guaranteed ordered of kwargs)
2017-01-08 00:37:13 -08:00
Raymond Hettinger
5eed36fab4
Issue #29200 : Fix test to use self.assertEqual instead of py.test style tests
2017-01-07 20:53:09 -08:00
Raymond Hettinger
d191ef25c1
Issue #29200 : Add test for lru cache only calling __hash__ once
2017-01-07 20:44:48 -08:00
Martin Panter
4f5c6a27d8
Issue #28815 : Merge test tweak from 3.6
2017-01-08 01:06:48 +00:00
Martin Panter
625fb648f7
Issue #28815 : Merge test tweak from 3.5
2017-01-08 01:06:18 +00:00
Martin Panter
8cbd46f19f
Issue #28815 : Use new exception subclasses
2017-01-08 00:46:25 +00:00
Victor Stinner
cd992bbe73
Merge 3.6
2017-01-06 18:16:07 +01:00
Victor Stinner
84b6fb0eea
Fix unittest.mock._Call: don't ignore name
...
Issue #28961 : Fix unittest.mock._Call helper: don't ignore the name parameter
anymore.
Patch written by Jiajun Huang.
2017-01-06 18:15:51 +01:00
Victor Stinner
1459ca64fc
Merge 3.6
2017-01-06 10:49:32 +01:00
Victor Stinner
9505b03bb0
Fix subprocess.Popen.__del__() fox Python shutdown
...
Issue #29174 , #26741 : subprocess.Popen.__del__() now keeps a strong reference
to warnings.warn() function.
2017-01-06 10:44:44 +01:00
Xavier de Gaye
94a1239ef8
test_curses - substitute self.skip() with self.skipTest()
2017-01-06 09:52:19 +01:00
Xavier de Gaye
94d1bfa2ef
test_curses - substitute self.skip() with self.skipTest()
2017-01-06 09:51:22 +01:00
Xavier de Gaye
645bc80918
test_curses - substitute self.skip() with self.skipTest()
2017-01-06 09:50:27 +01:00
INADA Naoki
7ed28a8914
Merge 3.6
2017-01-06 17:44:43 +09:00
INADA Naoki
a634e23209
Issue #29159 : Fix regression in bytes(x) when x.__index__() raises Exception.
2017-01-06 17:32:01 +09:00
Terry Jan Reedy
85c1c94178
Merge with 3.6
2017-01-04 23:18:01 -05:00
Terry Jan Reedy
e16265d367
Issue #29162 : Don't depend on 'from tkinter import *' importing sys.
...
Fix error in format string.
2017-01-04 23:17:47 -05:00
Serhiy Storchaka
150257e313
Issue #29156 : Remove superfluous pow test.
...
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
2017-01-04 18:53:28 +02:00
Serhiy Storchaka
4fd9cc14b4
Issue #29156 : Remove superfluous pow test.
...
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
2017-01-04 18:53:00 +02:00
Serhiy Storchaka
1d54b114c5
Issue #29156 : Remove superfluous pow test.
...
test_powlong is the same as test_powint.
Patch by Lukas Schwaighofer.
2017-01-04 18:52:40 +02:00
Victor Stinner
11edf29025
Merge 3.6
2017-01-04 12:02:30 +01:00
Victor Stinner
51b90d28e2
Issue #24773 : fix datetime.time constructor docstring
...
The default value of fold is zero, not True. Fix the docstring of the Python
implementation.
2017-01-04 12:01:16 +01:00
Larry Hastings
31f9d9d340
Merge Python 3.5.3rc1 release changes back into the main branch.
2017-01-02 18:32:30 -08:00
Berker Peksag
b03beefb24
Issue #15812 : Merge from 3.6
2017-01-03 03:48:55 +03:00
Berker Peksag
3f988744b0
Issue #15812 : Merge from 3.5
2017-01-03 03:48:34 +03:00
Berker Peksag
225b01b840
Issue #15812 : Delete redundant max(start, 0)
...
Noticed by Serhiy Storchaka.
2017-01-03 03:48:04 +03:00
Victor Stinner
e8cfec5abc
Issue #29035 : Simplify a regex in libregrtest
...
regrtest: simplify the regex used to match test names for the --fromfile
command line option.
2017-01-03 01:38:58 +01:00
Larry Hastings
e562a95003
Regenerated pydoc topics for 3.5.3rc1.
2017-01-01 22:09:56 -08:00
Steve Dower
ea74f0cd4a
Issue #24932 : Use proper command line parsing in _testembed
2017-01-01 20:25:03 -08:00
Berker Peksag
6215e524a2
Issue #15812 : Merge from 3.6
2017-01-02 07:00:29 +03:00
Berker Peksag
01debaccdd
Issue #15812 : Merge from 3.5
2017-01-02 06:59:12 +03:00
Berker Peksag
ff0e3b7a54
Issue #15812 : inspect.getframeinfo() now correctly shows the first line of a context
...
Patch by Sam Breese.
2017-01-02 06:57:43 +03:00
Terry Jan Reedy
bade830a21
Merge with 3.6
2017-01-01 21:21:54 -05:00
Terry Jan Reedy
0e10243d64
Issue #29071 : Use local flags for IDLE colorizer string prefix matcher.
...
Revised re by Serhiy Storchaka.
2017-01-01 21:21:39 -05:00
Serhiy Storchaka
67e1aa0b58
Issue #29094 : Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-02 01:43:02 +02:00
Serhiy Storchaka
e465a9af8e
Issue #29094 : Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-01 19:05:29 +02:00
Serhiy Storchaka
34cba33403
Issue #29094 : Offsets in a ZIP file created with extern file object and modes
...
"w" and "x" now are relative to the start of the file.
2017-01-01 19:00:30 +02:00
Berker Peksag
06c0dca5a6
Issue #29123 : Merge from 3.6
2016-12-31 22:49:56 +03:00
Berker Peksag
75d9016530
Issue #29123 : Merge from 3.5
2016-12-31 22:49:31 +03:00
Berker Peksag
b47913f54f
Issue #29123 : Make CheckSqlTimestamp more robust
2016-12-31 22:48:55 +03:00