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
73eb4a8d
Commit
73eb4a8d
authored
Jun 27, 2016
by
Marius Wachtler
Committed by
GitHub
Jun 27, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1267 from Daetalus/scipy_fixing_3_nexedi
Some scipy related fixing.
parents
255e7875
76b2870f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
10 deletions
+3
-10
from_cpython/Include/methodobject.h
from_cpython/Include/methodobject.h
+2
-9
src/capi/typeobject.cpp
src/capi/typeobject.cpp
+1
-1
No files found.
from_cpython/Include/methodobject.h
View file @
73eb4a8d
...
...
@@ -32,8 +32,7 @@ PyAPI_FUNC(PyCFunction) PyCFunction_GetFunction(PyObject *) PYSTON_NOEXCEPT;
PyAPI_FUNC
(
BORROWED
(
PyObject
*
))
PyCFunction_GetSelf
(
PyObject
*
)
PYSTON_NOEXCEPT
;
PyAPI_FUNC
(
int
)
PyCFunction_GetFlags
(
PyObject
*
)
PYSTON_NOEXCEPT
;
// Pyston change: changed to function calls
#if 0
/* Macros for direct access to these values. Type checks are *not*
done, so use with care. */
#define PyCFunction_GET_FUNCTION(func) \
...
...
@@ -42,13 +41,7 @@ PyAPI_FUNC(int) PyCFunction_GetFlags(PyObject *) PYSTON_NOEXCEPT;
(((PyCFunctionObject *)func) -> m_self)
#define PyCFunction_GET_FLAGS(func) \
(((PyCFunctionObject *)func) -> m_ml -> ml_flags)
#endif
#define PyCFunction_GET_FUNCTION(func) \
PyCFunction_GetFunction((PyObject*)(func))
#define PyCFunction_GET_SELF(func) \
PyCFunction_GetSelf((PyObject*)(func))
#define PyCFunction_GET_FLAGS(func) \
PyCFunction_GetFlags((PyObject*)(func))
PyAPI_FUNC
(
PyObject
*
)
PyCFunction_Call
(
PyObject
*
,
PyObject
*
,
PyObject
*
)
PYSTON_NOEXCEPT
;
struct
PyMethodDef
{
...
...
src/capi/typeobject.cpp
View file @
73eb4a8d
...
...
@@ -1929,7 +1929,7 @@ static const slotdef* update_one_slot(BoxedClass* type, const slotdef* p) noexce
static
BoxedString
*
getattribute_str
=
getStaticString
(
"__getattribute__"
);
if
(
p
->
name_strobj
==
getattribute_str
)
{
if
(
descr
&&
descr
->
cls
==
&
PyWrapperDescr_Type
if
(
type
->
tp_getattr
==
NULL
&&
descr
&&
descr
->
cls
==
&
PyWrapperDescr_Type
&&
((
PyWrapperDescrObject
*
)
descr
)
->
d_wrapped
==
PyObject_GenericGetAttr
)
descr
=
NULL
;
}
...
...
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