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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
c42ad917
Commit
c42ad917
authored
Jul 10, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '0.29.x'
parents
0b4207a2
343262ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
CHANGES.rst
CHANGES.rst
+10
-0
Cython/Compiler/Builtin.py
Cython/Compiler/Builtin.py
+1
-1
tests/run/cython3.pyx
tests/run/cython3.pyx
+8
-0
No files found.
CHANGES.rst
View file @
c42ad917
...
...
@@ -456,6 +456,16 @@ Other changes
*
Support
for
Python
2.6
was
removed
.
0.29.22
(
2020
-??-??)
====================
Bugs
fixed
----------
*
``
repr
()``
was
assumed
to
return
``
str
``
instead
of
``
unicode
``
with
``
language_level
=
3
``.
(
Github
issue
#
3736
)
0.29.21
(
2020
-
07
-
09
)
====================
...
...
Cython/Compiler/Builtin.py
View file @
c42ad917
...
...
@@ -205,7 +205,7 @@ builtin_function_table = [
#('raw_input', "", "", ""),
#('reduce', "", "", ""),
BuiltinFunction
(
'reload'
,
"O"
,
"O"
,
"PyImport_ReloadModule"
),
BuiltinFunction
(
'repr'
,
"O"
,
"O"
,
"PyObject_Repr"
,
builtin_return_type
=
'str'
),
BuiltinFunction
(
'repr'
,
"O"
,
"O"
,
"PyObject_Repr"
),
# , builtin_return_type='str'), # add in Cython 3.1
#('round', "", "", ""),
BuiltinFunction
(
'setattr'
,
"OOO"
,
"r"
,
"PyObject_SetAttr"
),
#('sum', "", "", ""),
...
...
tests/run/cython3.pyx
View file @
c42ad917
...
...
@@ -654,3 +654,11 @@ async def async_def_annotations(x: 'int') -> 'float':
u'int'
"""
return
float
(
x
)
def
repr_returns_str
(
x
)
->
str
:
"""
>>> repr_returns_str(123)
'123'
"""
return
repr
(
x
)
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