List of commits:
Subject Hash Author Date (UTC)
bpo-16011 clarify that 'in' always returns a boolean value 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5 Amit Kumar 2017-03-28 14:13:01
Improve the documentation for template strings (#856) 9f74deba784fc8781d13ed564f69c02ed7c331bb Barry Warsaw 2017-03-28 14:02:07
bpo-29643: Fix check for --enable-optimizations (GH-129) 8cea5929f52801b0ce5928b46ef836e99a24321a Alex Wang 2017-03-28 12:50:51
Drop the standard gcc test build on Travis (GH-853) ad2f9e2c8a0b44b3e6aec9d28ba59e13239236f7 Brett Cannon 2017-03-27 23:39:54
Fix ref cycles in TestCase.assertRaises() (#193) bbd3cf8f1ef1e91a8d6dac6411e18b4b9084abf5 Victor Stinner 2017-03-27 22:56:28
bpo-29677: DOC: clarify documentation for `round` (#357) 6003db7db5fec545c01923c198a5fdfca5a91538 Gerrit Holl 2017-03-27 22:15:20
bpo-29924: Remove useless argument (#854) d67a103702cf57de90a62c90f7ae969c23d96218 Sylvain 2017-03-27 21:36:08
bpo-29912: Remove redundant tests in list_tests that are found in seq_tests (GH-847) d702c50049207d825c1d5925fbc7306514fa9a0a Jim Fasarakis-Hilliard 2017-03-27 19:35:52
bpo-29919: Remove unused imports found by pyflakes (#137) d6debb24e06152a827769b0cac24c47deccdeac1 Victor Stinner 2017-03-27 14:05:26
bpo-20552: Use specific asserts in bytes tests (#790) 604e74c6beb2585c81083fa85f0e5a4d46965cbc Serhiy Storchaka 2017-03-27 10:59:07
Minor test cleanup (GH-837) b8a7daf077dab18e9e3701c5380b542ae0aa9a94 Zachary Ware 2017-03-27 05:08:31
Treat Sphinx warnings as errors (GH-832) 334e9ec938ea9876baadef15edb135d6d2aff30c Zachary Ware 2017-03-27 02:31:31
import sys before we use it on line 9 (#828) 0579e81f30d00da562f021760d5b6a9c35186520 Jelle Zijlstra 2017-03-27 02:17:39
Fixes sphinx warning in "changelog" misc/NEWS (#829) 5fb278fd58688177a113755e1996cd4c9706477c Michael Seifert 2017-03-27 01:25:57
Fix small exception typos in Lib (#818) 1e73dbbc29c96d0739ffef92db36f63aa1aa30da Jim Fasarakis-Hilliard 2017-03-26 20:59:08
bpo-29888: Fix the link referring to the "Python download page" (GH-824) f8beb9831acd5cf80b9c56aea5864e16118c5400 cocoatomo 2017-03-26 17:32:24
bpo-29900: Simplify pathlib implementation. (#814) 62a99515301fa250feba1a2e0f2d8ea2a29d700e Serhiy Storchaka 2017-03-25 11:42:11
bpo-29901: Improve support of path-like objects in zipapp. (#815) 4aec9a8be2f2574f249008eb8be76c070fea37eb Serhiy Storchaka 2017-03-25 11:05:23
Simplify partial.__new__. (#813) 3c749fc867f69deac75f866d5c1ba0f60e54c1fa Serhiy Storchaka 2017-03-25 10:10:16
bpo-29862: Fix grammar in importlib.reload() exception (GH-809) 9f0aa4843f8c26937d5817f27cac4aae9c0a034f Mandeep Bhutani 2017-03-25 04:51:21
Commit 0ae7c8bd614d3aa1fcaf2d71a10ff1148c80d9b5 - bpo-16011 clarify that 'in' always returns a boolean value
Author: Amit Kumar
Author date (UTC): 2017-03-28 14:13
Committer name: R. David Murray
Committer date (UTC): 2017-03-28 14:13
Parent(s): 9f74deba784fc8781d13ed564f69c02ed7c331bb
Signer:
Signing key:
Signing status: N
Tree: 39f6440c367e5d9531e5347731feaa46f40e936e
File Lines added Lines deleted
Doc/reference/expressions.rst 10 9
File Doc/reference/expressions.rst changed (mode: 100644) (index f4a82699b0..d80768ac07)
... ... Membership test operations
1431 1431 -------------------------- --------------------------
1432 1432
1433 1433 The operators :keyword:`in` and :keyword:`not in` test for membership. ``x in The operators :keyword:`in` and :keyword:`not in` test for membership. ``x in
1434 s`` evaluates to true if *x* is a member of *s*, and false otherwise. ``x not
1435 in s`` returns the negation of ``x in s``. All built-in sequences and set types
1436 support this as well as dictionary, for which :keyword:`in` tests whether the
1437 dictionary has a given key. For container types such as list, tuple, set,
1438 frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
1434 s`` evaluates to ``True`` if *x* is a member of *s*, and ``False`` otherwise.
1435 ``x not in s`` returns the negation of ``x in s``. All built-in sequences and
1436 set types support this as well as dictionary, for which :keyword:`in` tests
1437 whether the dictionary has a given key. For container types such as list, tuple,
1438 set, frozenset, dict, or collections.deque, the expression ``x in y`` is equivalent
1439 1439 to ``any(x is e or x == e for e in y)``. to ``any(x is e or x == e for e in y)``.
1440 1440
1441 For the string and bytes types, ``x in y`` is true if and only if *x* is a
1441 For the string and bytes types, ``x in y`` is ``True`` if and only if *x* is a
1442 1442 substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty strings are substring of *y*. An equivalent test is ``y.find(x) != -1``. Empty strings are
1443 1443 always considered to be a substring of any other string, so ``"" in "abc"`` will always considered to be a substring of any other string, so ``"" in "abc"`` will
1444 1444 return ``True``. return ``True``.
1445 1445
1446 1446 For user-defined classes which define the :meth:`__contains__` method, ``x in For user-defined classes which define the :meth:`__contains__` method, ``x in
1447 y`` is true if and only if ``y.__contains__(x)`` is true.
1447 y`` returns ``True`` if ``y.__contains__(x)`` returns a true value, and
1448 ``False`` otherwise.
1448 1449
1449 1450 For user-defined classes which do not define :meth:`__contains__` but do define For user-defined classes which do not define :meth:`__contains__` but do define
1450 :meth:`__iter__`, ``x in y`` is true if some value ``z`` with ``x == z`` is
1451 :meth:`__iter__`, ``x in y`` is ``True`` if some value ``z`` with ``x == z`` is
1451 1452 produced while iterating over ``y``. If an exception is raised during the produced while iterating over ``y``. If an exception is raised during the
1452 1453 iteration, it is as if :keyword:`in` raised that exception. iteration, it is as if :keyword:`in` raised that exception.
1453 1454
1454 1455 Lastly, the old-style iteration protocol is tried: if a class defines Lastly, the old-style iteration protocol is tried: if a class defines
1455 :meth:`__getitem__`, ``x in y`` is true if and only if there is a non-negative
1456 :meth:`__getitem__`, ``x in y`` is ``True`` if and only if there is a non-negative
1456 1457 integer index *i* such that ``x == y[i]``, and all lower integer indices do not integer index *i* such that ``x == y[i]``, and all lower integer indices do not
1457 1458 raise :exc:`IndexError` exception. (If any other exception is raised, it is as raise :exc:`IndexError` exception. (If any other exception is raised, it is as
1458 1459 if :keyword:`in` raised that exception). if :keyword:`in` raised that exception).
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main