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
Gwenaël Samain
cython
Commits
4ae79ddc
Commit
4ae79ddc
authored
Jul 14, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
git+ssh://github.com/cython/cython
parents
f0cd9b55
58b37a83
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
CHANGES.rst
CHANGES.rst
+9
-1
Cython/Compiler/Main.py
Cython/Compiler/Main.py
+2
-1
No files found.
CHANGES.rst
View file @
4ae79ddc
...
@@ -8,6 +8,8 @@ Cython Changelog
...
@@ -8,6 +8,8 @@ Cython Changelog
Features added
Features added
--------------
--------------
* The cython-mode.el script for Emacs was updated.
Bugs fixed
Bugs fixed
----------
----------
...
@@ -33,7 +35,13 @@ Bugs fixed
...
@@ -33,7 +35,13 @@ Bugs fixed
* Calling the unbound method dict.keys/value/items() in dict subtypes could
* Calling the unbound method dict.keys/value/items() in dict subtypes could
call the bound object method instead of the unbound supertype method.
call the bound object method instead of the unbound supertype method.
* "yield" wasn't supported in "return" value expressions
* "yield" wasn't supported in "return" value expressions.
* Using the "bint" type in memory views lead to unexpected results.
It is now an error.
* Assignments to global/closure variables could catch them in an illegal state
while deallocating the old value.
Other changes
Other changes
-------------
-------------
...
...
Cython/Compiler/Main.py
View file @
4ae79ddc
...
@@ -290,6 +290,7 @@ class Context(object):
...
@@ -290,6 +290,7 @@ class Context(object):
source_filename
=
source_desc
.
filename
source_filename
=
source_desc
.
filename
scope
.
cpp
=
self
.
cpp
scope
.
cpp
=
self
.
cpp
# Parse the given source file and return a parse tree.
# Parse the given source file and return a parse tree.
num_errors
=
Errors
.
num_errors
try
:
try
:
f
=
Utils
.
open_source_file
(
source_filename
,
"rU"
)
f
=
Utils
.
open_source_file
(
source_filename
,
"rU"
)
try
:
try
:
...
@@ -321,7 +322,7 @@ class Context(object):
...
@@ -321,7 +322,7 @@ class Context(object):
"Decoding error, missing or incorrect coding=<encoding-name> "
"Decoding error, missing or incorrect coding=<encoding-name> "
"at top of source (cannot decode with encoding %r: %s)"
%
(
encoding
,
msg
))
"at top of source (cannot decode with encoding %r: %s)"
%
(
encoding
,
msg
))
if
Errors
.
num_errors
>
0
:
if
Errors
.
num_errors
>
num_errors
:
raise
CompileError
()
raise
CompileError
()
return
tree
return
tree
...
...
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