Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Boxiang Sun
Pyston
Commits
d7853f86
Commit
d7853f86
authored
Apr 07, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A couple small fixes
parent
53c223d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/runtime/list.cpp
src/runtime/list.cpp
+1
-1
test/tests/finalizer_cycle.py
test/tests/finalizer_cycle.py
+2
-1
test/tests/finalizer_fallback.py
test/tests/finalizer_fallback.py
+0
-1
No files found.
src/runtime/list.cpp
View file @
d7853f86
...
...
@@ -622,7 +622,7 @@ extern "C" Box* listSetitem(BoxedList* self, Box* slice, Box* v) {
Py_ssize_t
i
=
PyNumber_AsSsize_t
(
slice
,
PyExc_IndexError
);
if
(
i
==
-
1
&&
PyErr_Occurred
())
throwCAPIException
();
listSetitemUnboxed
(
self
,
i
,
v
);
_listSetitem
(
self
,
i
,
v
);
Py_RETURN_NONE
;
}
else
if
(
slice
->
cls
==
slice_cls
)
{
return
listSetitemSlice
(
self
,
static_cast
<
BoxedSlice
*>
(
slice
),
v
);
...
...
test/tests/finalizer_cycle.py
View file @
d7853f86
# expected: reffail
# skip-if: True
# - This test is now meaningless now that we use refcounting, since the behavior isn't desired anymore
import
gc
finalized_at_least_once
=
False
...
...
test/tests/finalizer_fallback.py
View file @
d7853f86
# expected: reffail
from
testing_helpers
import
test_gc
# __del__ does not get called because it doesn't fallback to getattr
...
...
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