List of commits:
Subject Hash Author Date (UTC)
bpo-30021: Add examples for re.escape(). (#1048) 8fc7bc2b7631ee819ee614e47b6f44bacebe1574 Serhiy Storchaka 2017-04-13 16:17:36
bpo-27200: Fix pathlib, ssl, turtle and weakref doctests (GH-616) 7b2491a6aa5cdc1f8f9e3fd9df91f29ee69aa982 Marco Buttu 2017-04-13 14:17:59
Blacklist myself from mention-bot (#1114) d1dc65dc820649e59633142a88eaf97f930963a9 Berker Peksag 2017-04-13 14:14:37
bpo-29791: Clarify that flush is keyword-only argument (#1093) 61b9ac93712df8092a25223cd56fa6528359792b Berker Peksag 2017-04-13 12:48:18
bpo-30055: add testcleanup to leave a fresh context (#1094) 2c0b5c664ba7d36dc09788d3778d5b33e3fa1bd0 Marco Buttu 2017-04-13 11:30:25
convert from long long to PyLong loselessly (#1106) 2c134c31252612ed4729fd05df6ab0e96de8d0b1 Benjamin Peterson 2017-04-13 08:44:54
bpo-26985: Add missing info of code object in inspect documentation (GH-1090) a6902e662c18dc837d40664eaafe50a44aae6366 Xiang Zhang 2017-04-13 02:38:28
bpo-30017: Allowed calling the close() method of the zip entry writer object (#1041) 4c0d9ea995da595e90e08813b89510de59907802 Serhiy Storchaka 2017-04-12 13:03:23
bpo-30047: Fix a typo in Doc/library/select.rst (#1086) 3e0f1fc4e0ffcfcc706015fa3d67c262948ef171 NAKAMURA Osamu 2017-04-12 10:30:40
Remove two legacy constants which hopefully have no consumers (#1087) c7cc14a825ec156c76329f65bed0d0bd6e03d035 Alex Gaynor 2017-04-12 02:41:42
Reimplement tempfile._RandomNameSequence using a generator function. (#1075) f50354adaaafebe95ad09d09b825804a686ea843 Serhiy Storchaka 2017-04-11 19:45:59
bpo-29692: Add missing ACKS entry (#1079) e8a6bb4f3936123f3eca0b6cea05e2875a2722bc Nick Coghlan 2017-04-11 09:47:39
bpo-29692: contextlib.contextmanager may incorrectly unchain RuntimeError (GH-949) 00c75e9a45ff0366c185e9e8a2e23af5a35481b0 svelankar 2017-04-11 09:11:13
Remove superfluous comment in urllib.error. (#1076) 6fab78e9027f9ebd6414995580781b480433e595 Senthil Kumaran 2017-04-11 04:08:35
Remove OSError related comment in urllib.request. (#1070) 6dfcc81f6b1c82a71a1c876e14424fb8b3573447 Senthil Kumaran 2017-04-10 02:49:34
bpo-29506: Clarify deep copy note in copy module 19e04942562a980ad2519f6ff79c455a7472783b Sanyam Khurana 2017-04-09 10:22:30
bpo-26187: Test that set_trace_callback() is not called multiple times (GH-461) 0e6cb2ea624570ed08c354f1ed1f595dab4192d6 Aviv Palivoda 2017-04-09 09:11:59
Issue #29798: Handle git worktree in patchcheck (#1058) 2abfdf5a81383d3b1ed6b7321903a9a168c373c5 Nick Coghlan 2017-04-09 08:33:03
bpo-29951: Include function name for some error messages in `PyArg_ParseTuple*` (#916) 64c8f705c0121a4b45ca2c3bc7b47b282e9efcd8 Michael Seifert 2017-04-09 07:47:12
Remove invalid comment in urllib.request. (#1054) a2a9ddd923a849124bdd1c484f70f02df6fde0e9 Senthil Kumaran 2017-04-09 06:27:25
Commit 8fc7bc2b7631ee819ee614e47b6f44bacebe1574 - bpo-30021: Add examples for re.escape(). (#1048)
And fix the parameter name.
Author: Serhiy Storchaka
Author date (UTC): 2017-04-13 16:17
Committer name: GitHub
Committer date (UTC): 2017-04-13 16:17
Parent(s): 7b2491a6aa5cdc1f8f9e3fd9df91f29ee69aa982
Signer:
Signing key:
Signing status: N
Tree: f965d27fbb8969301156bdda33b97ef631bf87d3
File Lines added Lines deleted
Doc/library/re.rst 14 3
Doc/tools/susp-ignored.csv 2 0
File Doc/library/re.rst changed (mode: 100644) (index 323854a299..3213daf6cf)
... ... form.
784 784 Unmatched groups are replaced with an empty string. Unmatched groups are replaced with an empty string.
785 785
786 786
787 .. function:: escape(string)
787 .. function:: escape(pattern)
788 788
789 Escape all the characters in pattern except ASCII letters, numbers and ``'_'``.
789 Escape all the characters in *pattern* except ASCII letters, numbers and ``'_'``.
790 790 This is useful if you want to match an arbitrary literal string that may This is useful if you want to match an arbitrary literal string that may
791 have regular expression metacharacters in it.
791 have regular expression metacharacters in it. For example::
792
793 >>> print(re.escape('python.exe'))
794 python\.exe
795
796 >>> legal_chars = string.ascii_lowercase + string.digits + "!#$%&'*+-.^_`|~:"
797 >>> print('[%s]+' % re.escape(legal_chars))
798 [abcdefghijklmnopqrstuvwxyz0123456789\!\#\$\%\&\'\*\+\-\.\^_\`\|\~\:]+
799
800 >>> operators = ['+', '-', '*', '/', '**']
801 >>> print('|'.join(map(re.escape, sorted(operators, reverse=True))))
802 \/|\-|\+|\*\*|\*
792 803
793 804 .. versionchanged:: 3.3 .. versionchanged:: 3.3
794 805 The ``'_'`` character is no longer escaped. The ``'_'`` character is no longer escaped.
File Doc/tools/susp-ignored.csv changed (mode: 100644) (index 51edb66238..df67f7590d)
... ... whatsnew/3.2,,:feed,>>> urllib.parse.urlparse('http://[dead:beef:cafe:5417:affe:
302 302 whatsnew/3.2,,:gz,">>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:" whatsnew/3.2,,:gz,">>> with tarfile.open(name='myarchive.tar.gz', mode='w:gz') as tf:"
303 303 whatsnew/3.2,,:location,zope9-location = ${zope9:location} whatsnew/3.2,,:location,zope9-location = ${zope9:location}
304 304 whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf whatsnew/3.2,,:prefix,zope-conf = ${custom:prefix}/etc/zope.conf
305 library/re,,`,!#$%&'*+-.^_`|~:
306 library/re,,`,\!\#\$\%\&\'\*\+\-\.\^_\`\|\~\:
305 307 library/tarfile,,:xz,'x:xz' library/tarfile,,:xz,'x:xz'
306 308 library/xml.etree.elementtree,,:sometag,prefix:sometag library/xml.etree.elementtree,,:sometag,prefix:sometag
307 309 library/xml.etree.elementtree,,:fictional,"<actors xmlns:fictional=""http://characters.example.com""" library/xml.etree.elementtree,,:fictional,"<actors xmlns:fictional=""http://characters.example.com"""
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