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
05b35703
Commit
05b35703
authored
Mar 22, 2016
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More small fixes
parent
05edd7f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
from_cpython/Lib/_abcoll.py
from_cpython/Lib/_abcoll.py
+3
-1
src/runtime/str.cpp
src/runtime/str.cpp
+1
-0
src/runtime/types.h
src/runtime/types.h
+1
-1
No files found.
from_cpython/Lib/_abcoll.py
View file @
05b35703
...
...
@@ -23,7 +23,9 @@ __all__ = ["Hashable", "Iterable", "Iterator",
def
_hasattr
(
C
,
attr
):
try
:
return
any
(
attr
in
B
.
__dict__
for
B
in
C
.
__mro__
)
# Pyston temporary workaround: make this a list comprehension instead of generator comprehension,
# since any() can exit without exhausting the iterable.
return
any
([
attr
in
B
.
__dict__
for
B
in
C
.
__mro__
])
except
AttributeError
:
# Old-style class
return
hasattr
(
C
,
attr
)
...
...
src/runtime/str.cpp
View file @
05b35703
...
...
@@ -2590,6 +2590,7 @@ extern "C" void PyString_Concat(register PyObject** pv, register PyObject* w) no
extern
"C"
void
PyString_ConcatAndDel
(
register
PyObject
**
pv
,
register
PyObject
*
w
)
noexcept
{
PyString_Concat
(
pv
,
w
);
Py_XDECREF
(
w
);
}
static
PyObject
*
string_expandtabs
(
PyStringObject
*
self
,
PyObject
*
args
)
noexcept
{
...
...
src/runtime/types.h
View file @
05b35703
...
...
@@ -1385,7 +1385,7 @@ inline BORROWED(Box*) Box::getattrString(const char* attr) {
inline
void
ExcInfo
::
clear
()
{
Py_DECREF
(
type
);
Py_DECREF
(
value
);
Py_
DECREF
(
traceback
);
// XDECREF?
Py_
XDECREF
(
traceback
);
}
}
// namespace pyston
...
...
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