Serhiy Storchaka
0a58f72762
bpo-24821: Fixed the slowing down to 25 times in the searching of some ( #505 )
...
unlucky Unicode characters.
2017-03-30 09:11:10 +03:00
Xiang Zhang
794623bdb2
bpo-28699: fix abnormal behaviour of pools in multiprocessing.pool (GH-693)
...
an exception raised at the very first of an iterable would cause pools behave abnormally
(swallow the exception or hang)
2017-03-29 11:58:54 +08:00
Garvit Khatri
1cf93a76c2
bpo-10379: add 'monetary' to format_string, deprecate format
...
Add the 'monetary' parameter to format_string so that all
uses of format can be converted to format_string. Adjust
the documentation accordingly, and add a deprecation
warning when format is used.
2017-03-28 11:43:38 -04:00
INADA Naoki
c8fa45bac2
NEWS: remove duplicated "Build" section (GH-872)
2017-03-29 00:24:30 +09:00
Barry Warsaw
9f74deba78
Improve the documentation for template strings ( #856 )
...
bpo-19824
bpo-20314
bpo-12518
2017-03-28 10:02:07 -04:00
Alex Wang
8cea5929f5
bpo-29643: Fix check for --enable-optimizations (GH-129)
...
The presence of the ``--enable-optimizations`` flag is indicated by the
value of ``$enableval``, but the configure script was checking ``$withval``,
resulting in the ``--enable-optimizations`` flag being effectively ignored.
2017-03-28 21:50:51 +09:00
Victor Stinner
bbd3cf8f1e
Fix ref cycles in TestCase.assertRaises() ( #193 )
...
bpo-23890: unittest.TestCase.assertRaises() now manually breaks a
reference cycle to not keep objects alive longer than expected.
2017-03-28 00:56:28 +02:00
Michael Seifert
5fb278fd58
Fixes sphinx warning in "changelog" misc/NEWS ( #829 )
2017-03-26 21:25:57 -04:00
Serhiy Storchaka
4aec9a8be2
bpo-29901: Improve support of path-like objects in zipapp. ( #815 )
...
Now general path-like objects are supported, not just pathlib.Path.
2017-03-25 13:05:23 +02:00
Serhiy Storchaka
671079ef60
bpo-29894: Deprecate returning an instance of complex subclass from __complex__. ( #798 )
...
In a future versions of Python this can be an error.
2017-03-24 21:28:43 +02:00
Serhiy Storchaka
af7b9ec5c8
bpo-25803: Avoid incorrect errors raised by Path.mkdir(exist_ok=True) ( #805 )
...
when the OS gives priority to errors such as EACCES over EEXIST.
2017-03-24 20:51:53 +02:00
Antoine Pitrou
8988945cdc
bpo-29861: release references to multiprocessing Pool tasks ( #743 )
...
* bpo-29861: release references to multiprocessing Pool tasks
Release references to tasks, their arguments and their results as soon
as they are finished, instead of keeping them alive until another task
arrives.
* Comments in test
2017-03-24 13:52:11 +01:00
Serhiy Storchaka
e304e33c16
bpo-19930: The mode argument of os.makedirs() no longer affects the file ( #799 )
...
permission bits of newly-created intermediate-level directories.
2017-03-24 13:27:42 +02:00
Christophe Zeitouny
20fbf8accd
faulthandler: Restore the old sigaltstack during teardown ( #777 )
2017-03-23 18:14:29 +01:00
Serhiy Storchaka
aefa7ebf0f
bpo-6532: Make the thread id an unsigned integer. ( #781 )
...
* bpo-6532: Make the thread id an unsigned integer.
From C API side the type of results of PyThread_start_new_thread() and
PyThread_get_thread_ident(), the id parameter of
PyThreadState_SetAsyncExc(), and the thread_id field of PyThreadState
changed from "long" to "unsigned long".
* Restore a check in thread_get_ident().
2017-03-23 14:48:39 +01:00
Nathaniel J. Smith
1e2147b9d7
bpo-29728: Provide socket.TCP_NOTSENT_LOWAT ( #477 )
...
* Provide socket.TCP_NOTSENT_LOWAT
* New TCP option available on recent MacOS and Linux.
* Document addition of TCP_NOTSENT_LOWAT
2017-03-22 20:56:55 -07:00
Daniel Birnstiel
d7fa6b259e
bpo-29859: Fix error messages from return codes for pthread_* calls (GH-741)
2017-03-21 22:06:06 +09:00
Xiang Zhang
4830f581af
bpo-29849: fix a memory leak in import_from (GH-712)
2017-03-21 11:13:42 +08:00
Benjamin Peterson
df8280838f
bpo-20087: Revert "make the glibc alias table take precedence over the X11 one ( #422 )" ( #713 )
...
This reverts commit 02371e0ed1
.
2017-03-19 23:49:43 -07:00
4kir4
e46fb86118
bpo-28876: bool of large range raises OverflowError ( #699 )
2017-03-20 08:44:46 +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
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
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
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
Nikolay Kim
2b27e2e6a3
bpo-29742: asyncio get_extra_info() throws exception ( #525 )
2017-03-12 15:23:30 -04: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
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
202fda55c2
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. ( #485 )
2017-03-12 10:10:47 +02: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
Victor Stinner
0f6d73343d
bpo-29619: Convert st_ino using unsigned integer ( #557 )
...
bpo-29619: os.stat() and os.DirEntry.inodeo() now convert inode
(st_ino) using unsigned integers.
2017-03-09 17:34:28 +01:00
orenmn
964281af59
bpo-28298: make array 'Q', 'L' and 'I' accept big intables as elements ( #570 )
2017-03-09 11:35:28 +02:00
Serhiy Storchaka
a7cba27aea
bpo-29645: Speed up importing the webbrowser module. ( #484 )
2017-03-08 17:15:54 +02:00
Serhiy Storchaka
8606e9524a
bpo-28231: The zipfile module now accepts path-like objects for external paths. ( #511 )
2017-03-08 14:37:51 +02:00
Benjamin Peterson
21a74312f2
Revert "bpo-29571: Use correct locale encoding in test_re ( #149 )" ( #554 )
...
This reverts commit ace5c0fdd9
.
2017-03-07 22:48:09 -08:00
Benjamin Peterson
02371e0ed1
make the glibc alias table take precedence over the X11 one ( #422 )
...
bpo-20087
2017-03-07 22:03:13 -08:00
Serhiy Storchaka
9f8ad3f39e
bpo-29568: Disable any characters between two percents for escaped percent "%%" in the format string for classic string formatting. (GH-513)
2017-03-08 11:51:19 +08:00
Xiang Zhang
d5d3249e8a
bpo-26915: Test identity first in membership operation in index() and count() methods of collections.abc.Sequence (GH-503)
2017-03-08 11:04:24 +08:00
Serhiy Storchaka
8f6b344d36
bpo-28682: Added support for bytes paths in os.fwalk(). ( #489 )
2017-03-07 14:33:21 +02:00
Serhiy Storchaka
2e5642422f
bpo-29695: Remove bad keyword parameters in int(), bool(), float(), list() and tuple(). ( #518 )
2017-03-06 17:01:06 +02:00
Xiang Zhang
b76ad5121e
bpo-29714: Fix a regression that bytes format may fail when containing zero bytes inside. (GH-499)
2017-03-06 17:17:05 +08:00
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
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
Zachary Ware
fc64c351c7
bpo-29572: Update Windows build to OpenSSL 1.0.2k (GH-439)
2017-03-03 16:07:07 -06:00
David Ellis
85b8d01c91
bpo-29623: Make PathLike objects work with ConfigParser.read() ( #242 )
2017-03-03 20:14:27 +03:00
Aviv Palivoda
86a670543f
bpo-9303: Migrate sqlite3 module to _v2 API to enhance performance ( #359 )
2017-03-03 13:58:17 +03: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
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
Brian Coleman
6a9122ce69
bpo-29683 - Fixes to _PyCode_SetExtra when co_extra->ce->extras is ( #376 )
...
allocated.
On PyMem_Realloc failure, _PyCode_SetExtra should free co_extra if
co_extra->ce_extras could not be allocated.
On PyMem_Realloc success, _PyCode_SetExtra should set all unused slots in
co_extra->ce_extras to NULL.
2017-03-02 11:32:18 +01: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
INADA Naoki
3824cd8fd4
bpo-29684: Fix regression of PyEval_CallObjectWithKeywords (GH-87)
...
It should raise TypeError when kwargs is not a dict.
2017-03-01 20:41:03 +09: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
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
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
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
Mariatta
e3bf4cdd3d
bpo-28929: Add to Misc/NEWS (GH-112)
...
mention bpo-28929 in the Documentation section of
What's New in Python 3.7.0 alpha 1
2017-02-24 18:09:22 -08:00
Barry Warsaw
fba79dc568
bpo-25008: Deprecate smtpd and point to aiosmtpd ( #274 )
...
* bpo-25008: Deprecate smtpd and point to aiosmtpd.
* Simplify the aiosmtpd URL.
2017-02-24 20:05:59 +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
Matthieu Dartiailh
3a9ac827c7
bpo-29607: Fix stack_effect computation for CALL_FUNCTION_EX ( #202 )
2017-02-21 15:25:22 +02: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
Xiang Zhang
d0e8212ed7
bpo-29347: Fix possibly dereferencing undefined pointers when creating weakref objects ( #128 )
2017-02-20 12:25:16 +08:00
Steve Dower
52a7e92e3d
bpo-29579: Removes readme.txt from the installer. ( #160 )
2017-02-18 16:12:02 -08: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
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
Mariatta
85064db281
bpo-29521 update Misc/ACKS ( #106 )
2017-02-16 00:16:24 +01:00
Matthias Bussonnier
bc4bed4405
bpo-29546: Set 'path' on ImportError for ``from ... import ...`` (GH-91)
2017-02-14 16:05:25 -08:00
Mark Dickinson
996c3874fd
Issue #29534 : move Misc/NEWS entry to correct section; add Misc/ACS entry for Andrew Nester. ( #99 )
2017-02-14 19:18:54 +00: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
INADA Naoki
2294f3aee1
bpo-29438: fixed use-after-free in key sharing dict ( #17 )
2017-02-12 13:51:30 +09:00
Ryan Gonzalez
e7ffb99f84
Fix some sphinx warnings ( #9 )
...
* Fix some deprecation warnings in Doc/conf.py
* Fix an rst error in Misc/NEWS
2017-02-11 13:47:37 +09: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
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
Nick Coghlan
c7a24a7330
Merge issue #26355 fix from 3.6
2017-02-09 16:09:03 +01:00
Nick Coghlan
e1857579f8
Merge issue #26355 fix from Python 3.5
2017-02-09 16:08:17 +01:00
Nick Coghlan
e66244521c
Issue #26355 : Specify canonical URLs in docs pages
...
Add canonical header link on each page to corresponding major
version of the documentation.
Patch by Matthias Bussonnier.
2017-02-09 16:03:59 +01:00
Victor Stinner
193ee0a0e8
Prohibit implicit C function declarations
...
Issue #27659 : use -Werror=implicit-function-declaration when possible (GCC and
Clang, but it depends on the compiler version).
Patch written by Chi Hsuan Yen.
2017-02-06 14:24:00 +01:00
Steve Dower
49226e23f6
Issue #29319 : Prevent RunMainFromImporter overwriting sys.path[0].
2017-02-04 15:41:12 -08:00
Steve Dower
c008ddeb21
Issue #29319 : Prevent RunMainFromImporter overwriting sys.path[0].
2017-02-04 15:39:38 -08:00
Steve Dower
6d46ae7d12
Issue #29319 : Prevent RunMainFromImporter overwriting sys.path[0].
2017-02-04 15:39:21 -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