Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
817672d5
Commit
817672d5
authored
Apr 14, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
461e45fe
b6077b23
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
11 deletions
+21
-11
CHANGES.rst
CHANGES.rst
+12
-2
tests/run/test_unicode.pyx
tests/run/test_unicode.pyx
+9
-9
No files found.
CHANGES.rst
View file @
817672d5
...
@@ -578,14 +578,24 @@ Other changes
...
@@ -578,14 +578,24 @@ Other changes
..
_
`
PEP
-
479
`:
https
://
www
.
python
.
org
/
dev
/
peps
/
pep
-
0479
..
_
`
PEP
-
479
`:
https
://
www
.
python
.
org
/
dev
/
peps
/
pep
-
0479
0.29.23
(
2021
-
04
-
1
1
)
0.29.23
(
2021
-
04
-
1
4
)
====================
====================
Bugs
fixed
Bugs
fixed
----------
----------
*
Some
problems
with
Python
3.10
were
resolved
.
*
Some
problems
with
Python
3.10
were
resolved
.
Patches
by
Victor
Stinner
and
David
Woods
.
(
Github
issues
#
3919
,
#
4046
)
Patches
by
Victor
Stinner
and
David
Woods
.
(
Github
issues
#
4046
,
#
4100
)
*
An
incorrect
"optimisation"
was
removed
that
allowed
changes
to
a
keyword
dict
to
leak
into
keyword
arguments
passed
into
a
function
.
Patch
by
Peng
Weikang
.
(
Github
issue
#
3227
)
*
Multiplied
str
constants
could
end
up
as
bytes
constants
with
language_level
=
2.
Patch
by
Alphadelta14
and
David
Woods
.
(
Github
issue
#
3951
)
*
``
PY_SSIZE_T_CLEAN
``
does
not
get
defined
any
more
if
it
is
already
defined
.
Patch
by
Andrew
Jones
.
(
Github
issue
#
4104
)
0.29.22
(
2021
-
02
-
20
)
0.29.22
(
2021
-
02
-
20
)
...
...
tests/run/test_unicode.pyx
View file @
817672d5
...
@@ -1469,19 +1469,19 @@ class UnicodeTest(CommonTest,
...
@@ -1469,19 +1469,19 @@ class UnicodeTest(CommonTest,
class
Str
(
str
,
enum
.
Enum
):
class
Str
(
str
,
enum
.
Enum
):
ABC
=
'abc'
ABC
=
'abc'
# Testing Unicode formatting strings...
# Testing Unicode formatting strings...
self
.
assertEqual
(
"%s, %s"
%
(
Str
.
ABC
,
Str
.
ABC
),
self
.
assertEqual
(
(
"%s, %s"
%
(
Str
.
ABC
,
Str
.
ABC
)).
replace
(
"Str."
,
""
),
'
Str.ABC, Str.
ABC'
)
'
ABC,
ABC'
)
self
.
assertEqual
(
"%s, %s, %d, %i, %u, %f, %5.2f"
%
self
.
assertEqual
(
(
"%s, %s, %d, %i, %u, %f, %5.2f"
%
(
Str
.
ABC
,
Str
.
ABC
,
(
Str
.
ABC
,
Str
.
ABC
,
Int
.
IDES
,
Int
.
IDES
,
Int
.
IDES
,
Int
.
IDES
,
Int
.
IDES
,
Int
.
IDES
,
Float
.
PI
,
Float
.
PI
),
Float
.
PI
,
Float
.
PI
)
).
replace
(
"Str."
,
""
)
,
'
Str.ABC, Str.
ABC, 15, 15, 15, 3.141593, 3.14'
)
'
ABC,
ABC, 15, 15, 15, 3.141593, 3.14'
)
# formatting jobs delegated from the string implementation:
# formatting jobs delegated from the string implementation:
self
.
assertEqual
(
'...%(foo)s...'
%
{
'foo'
:
Str
.
ABC
}
,
self
.
assertEqual
(
(
'...%(foo)s...'
%
{
'foo'
:
Str
.
ABC
}).
replace
(
"Str."
,
""
)
,
'...
Str.
ABC...'
)
'...ABC...'
)
self
.
assertEqual
(
'...%(foo)s...'
%
{
'foo'
:
Int
.
IDES
}
,
self
.
assertEqual
(
(
'...%(foo)s...'
%
{
'foo'
:
Int
.
IDES
}).
replace
(
"Int."
,
""
)
,
'...I
nt.I
DES...'
)
'...IDES...'
)
self
.
assertEqual
(
'...%(foo)i...'
%
{
'foo'
:
Int
.
IDES
},
self
.
assertEqual
(
'...%(foo)i...'
%
{
'foo'
:
Int
.
IDES
},
'...15...'
)
'...15...'
)
self
.
assertEqual
(
'...%(foo)d...'
%
{
'foo'
:
Int
.
IDES
},
self
.
assertEqual
(
'...%(foo)d...'
%
{
'foo'
:
Int
.
IDES
},
...
...
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