Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4aa15a0d
Commit
4aa15a0d
authored
Jun 12, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Plain Diff
Merge heads
parents
f0ee5ccd
98e90515
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
10 deletions
+11
-10
Doc/library/re.rst
Doc/library/re.rst
+3
-3
Doc/whatsnew/2.0.rst
Doc/whatsnew/2.0.rst
+1
-1
Lib/lib2to3/tests/test_refactor.py
Lib/lib2to3/tests/test_refactor.py
+3
-2
Lib/test/test_coroutines.py
Lib/test/test_coroutines.py
+1
-1
Misc/NEWS
Misc/NEWS
+3
-3
No files found.
Doc/library/re.rst
View file @
4aa15a0d
...
@@ -321,7 +321,7 @@ The special characters are:
...
@@ -321,7 +321,7 @@ The special characters are:
The special sequences consist of ``'\'`` and a character from the list below.
The special sequences consist of ``'\'`` and a character from the list below.
If the ordinary character is not
ASCII digit or
ASCII letter, then the
If the ordinary character is not
an ASCII digit or an
ASCII letter, then the
resulting RE will match the second character. For example, ``\$`` matches the
resulting RE will match the second character. For example, ``\$`` matches the
character ``'$'``.
character ``'$'``.
...
@@ -444,7 +444,7 @@ three digits in length.
...
@@ -444,7 +444,7 @@ three digits in length.
The ``'\u'`` and ``'\U'`` escape sequences have been added.
The ``'\u'`` and ``'\U'`` escape sequences have been added.
.. versionchanged:: 3.6
.. versionchanged:: 3.6
Unknown escapes consisting of ``'\'`` and ASCII letter now are errors.
Unknown escapes consisting of ``'\'`` and
an
ASCII letter now are errors.
.. seealso::
.. seealso::
...
@@ -743,7 +743,7 @@ form.
...
@@ -743,7 +743,7 @@ form.
Unmatched groups are replaced with an empty string.
Unmatched groups are replaced with an empty string.
.. versionchanged:: 3.6
.. versionchanged:: 3.6
Unknown escapes consisting of ``'\'`` and ASCII letter now are errors.
Unknown escapes consisting of ``'\'`` and
an
ASCII letter now are errors.
.. function:: subn(pattern, repl, string, count=0, flags=0)
.. function:: subn(pattern, repl, string, count=0, flags=0)
...
...
Doc/whatsnew/2.0.rst
View file @
4aa15a0d
...
@@ -506,7 +506,7 @@ arguments and/or a dictionary of keyword arguments. In Python 1.5 and earlier,
...
@@ -506,7 +506,7 @@ arguments and/or a dictionary of keyword arguments. In Python 1.5 and earlier,
you'd use the :func:`apply` built-in function: ``apply(f, args, kw)`` calls the
you'd use the :func:`apply` built-in function: ``apply(f, args, kw)`` calls the
function :func:`f` with the argument tuple *args* and the keyword arguments in
function :func:`f` with the argument tuple *args* and the keyword arguments in
the dictionary *kw*. :func:`apply` is the same in 2.0, but thanks to a patch
the dictionary *kw*. :func:`apply` is the same in 2.0, but thanks to a patch
from Greg Ewing, ``f(*args, **kw)``
a
s a shorter and clearer way to achieve the
from Greg Ewing, ``f(*args, **kw)``
i
s a shorter and clearer way to achieve the
same effect. This syntax is symmetrical with the syntax for defining
same effect. This syntax is symmetrical with the syntax for defining
functions::
functions::
...
...
Lib/lib2to3/tests/test_refactor.py
View file @
4aa15a0d
...
@@ -8,6 +8,7 @@ import sys
...
@@ -8,6 +8,7 @@ import sys
import
os
import
os
import
codecs
import
codecs
import
io
import
io
import
re
import
tempfile
import
tempfile
import
shutil
import
shutil
import
unittest
import
unittest
...
@@ -222,8 +223,8 @@ from __future__ import print_function"""
...
@@ -222,8 +223,8 @@ from __future__ import print_function"""
actually_write
=
False
)
actually_write
=
False
)
# Testing that it logged this message when write=False was passed is
# Testing that it logged this message when write=False was passed is
# sufficient to see that it did not bail early after "No changes".
# sufficient to see that it did not bail early after "No changes".
message_regex
=
r"Not writing changes to .*%s
%s"
%
(
message_regex
=
r"Not writing changes to .*%s
"
%
\
os
.
sep
,
os
.
path
.
basename
(
test_file
))
re
.
escape
(
os
.
sep
+
os
.
path
.
basename
(
test_file
))
for
message
in
debug_messages
:
for
message
in
debug_messages
:
if
"Not writing changes"
in
message
:
if
"Not writing changes"
in
message
:
self
.
assertRegex
(
message
,
message_regex
)
self
.
assertRegex
(
message
,
message_regex
)
...
...
Lib/test/test_coroutines.py
View file @
4aa15a0d
...
@@ -1423,7 +1423,7 @@ class CoroutineTest(unittest.TestCase):
...
@@ -1423,7 +1423,7 @@ class CoroutineTest(unittest.TestCase):
with warnings.catch_warnings():
with warnings.catch_warnings():
warnings.simplefilter("
error
")
warnings.simplefilter("
error
")
# Test that __aiter__ that returns an asyncronous iterator
# Test that __aiter__ that returns an async
h
ronous iterator
# directly does not throw any warnings.
# directly does not throw any warnings.
run_async(main())
run_async(main())
self.assertEqual(I, 111011)
self.assertEqual(I, 111011)
...
...
Misc/NEWS
View file @
4aa15a0d
...
@@ -62,7 +62,7 @@ Library
...
@@ -62,7 +62,7 @@ Library
- Issue #27029: Removed deprecated support of universal newlines mode from
- Issue #27029: Removed deprecated support of universal newlines mode from
ZipFile.open().
ZipFile.open().
- Issue #27030: Unknown escapes consisting of ``'
\
'`` and ASCII letter in
- Issue #27030: Unknown escapes consisting of ``'
\
'`` and
an
ASCII letter in
regular expressions now are errors. The re.LOCALE flag now can be used
regular expressions now are errors. The re.LOCALE flag now can be used
only with bytes patterns.
only with bytes patterns.
...
@@ -3046,8 +3046,8 @@ Library
...
@@ -3046,8 +3046,8 @@ Library
writer failed in BufferedRWPair.close().
writer failed in BufferedRWPair.close().
- Issue #23622: Unknown escapes in regular expressions that consist of ``'
\
'``
- Issue #23622: Unknown escapes in regular expressions that consist of ``'
\
'``
and
ASCII letter now raise a deprecation warning and will be forbidden i
n
and
an ASCII letter now raise a deprecation warning and will be forbidde
n
Python 3.6.
in
Python 3.6.
- Issue #23671: string.Template now allows specifying the "self" parameter as
- Issue #23671: string.Template now allows specifying the "self" parameter as
a keyword argument. string.Formatter now allows specifying the "self" and
a keyword argument. string.Formatter now allows specifying the "self" and
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment