Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
d8cf382e
Kaydet (Commit)
d8cf382e
authored
Haz 01, 2015
tarafından
Yury Selivanov
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue 24017: Make PyEval_(Set|Get)CoroutineWrapper private
üst
0969a9f8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
ceval.h
Include/ceval.h
+2
-2
ceval.c
Python/ceval.c
+3
-3
sysmodule.c
Python/sysmodule.c
+3
-3
No files found.
Include/ceval.h
Dosyayı görüntüle @
d8cf382e
...
@@ -23,8 +23,8 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
...
@@ -23,8 +23,8 @@ PyAPI_FUNC(PyObject *) PyEval_CallMethod(PyObject *obj,
#ifndef Py_LIMITED_API
#ifndef Py_LIMITED_API
PyAPI_FUNC
(
void
)
PyEval_SetProfile
(
Py_tracefunc
,
PyObject
*
);
PyAPI_FUNC
(
void
)
PyEval_SetProfile
(
Py_tracefunc
,
PyObject
*
);
PyAPI_FUNC
(
void
)
PyEval_SetTrace
(
Py_tracefunc
,
PyObject
*
);
PyAPI_FUNC
(
void
)
PyEval_SetTrace
(
Py_tracefunc
,
PyObject
*
);
PyAPI_FUNC
(
void
)
PyEval_SetCoroutineWrapper
(
PyObject
*
wrapper
);
PyAPI_FUNC
(
void
)
_
PyEval_SetCoroutineWrapper
(
PyObject
*
wrapper
);
PyAPI_FUNC
(
PyObject
*
)
PyEval_GetCoroutineWrapper
(
void
);
PyAPI_FUNC
(
PyObject
*
)
_
PyEval_GetCoroutineWrapper
(
void
);
#endif
#endif
struct
_frame
;
/* Avoid including frameobject.h */
struct
_frame
;
/* Avoid including frameobject.h */
...
...
Python/ceval.c
Dosyayı görüntüle @
d8cf382e
...
@@ -3936,7 +3936,7 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals,
...
@@ -3936,7 +3936,7 @@ _PyEval_EvalCodeWithName(PyObject *_co, PyObject *globals, PyObject *locals,
return
NULL
;
return
NULL
;
if
(
co
->
co_flags
&
(
CO_COROUTINE
|
CO_ITERABLE_COROUTINE
))
{
if
(
co
->
co_flags
&
(
CO_COROUTINE
|
CO_ITERABLE_COROUTINE
))
{
coroutine_wrapper
=
PyEval_GetCoroutineWrapper
();
coroutine_wrapper
=
_
PyEval_GetCoroutineWrapper
();
if
(
coroutine_wrapper
!=
NULL
)
{
if
(
coroutine_wrapper
!=
NULL
)
{
PyObject
*
wrapped
=
PyObject
*
wrapped
=
PyObject_CallFunction
(
coroutine_wrapper
,
"N"
,
gen
);
PyObject_CallFunction
(
coroutine_wrapper
,
"N"
,
gen
);
...
@@ -4390,7 +4390,7 @@ PyEval_SetTrace(Py_tracefunc func, PyObject *arg)
...
@@ -4390,7 +4390,7 @@ PyEval_SetTrace(Py_tracefunc func, PyObject *arg)
}
}
void
void
PyEval_SetCoroutineWrapper
(
PyObject
*
wrapper
)
_
PyEval_SetCoroutineWrapper
(
PyObject
*
wrapper
)
{
{
PyThreadState
*
tstate
=
PyThreadState_GET
();
PyThreadState
*
tstate
=
PyThreadState_GET
();
...
@@ -4401,7 +4401,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper)
...
@@ -4401,7 +4401,7 @@ PyEval_SetCoroutineWrapper(PyObject *wrapper)
}
}
PyObject
*
PyObject
*
PyEval_GetCoroutineWrapper
(
void
)
_
PyEval_GetCoroutineWrapper
(
void
)
{
{
PyThreadState
*
tstate
=
PyThreadState_GET
();
PyThreadState
*
tstate
=
PyThreadState_GET
();
return
tstate
->
coroutine_wrapper
;
return
tstate
->
coroutine_wrapper
;
...
...
Python/sysmodule.c
Dosyayı görüntüle @
d8cf382e
...
@@ -655,10 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper)
...
@@ -655,10 +655,10 @@ sys_set_coroutine_wrapper(PyObject *self, PyObject *wrapper)
Py_TYPE
(
wrapper
)
->
tp_name
);
Py_TYPE
(
wrapper
)
->
tp_name
);
return
NULL
;
return
NULL
;
}
}
PyEval_SetCoroutineWrapper
(
wrapper
);
_
PyEval_SetCoroutineWrapper
(
wrapper
);
}
}
else
{
else
{
PyEval_SetCoroutineWrapper
(
NULL
);
_
PyEval_SetCoroutineWrapper
(
NULL
);
}
}
Py_RETURN_NONE
;
Py_RETURN_NONE
;
}
}
...
@@ -672,7 +672,7 @@ Set a wrapper for coroutine objects."
...
@@ -672,7 +672,7 @@ Set a wrapper for coroutine objects."
static
PyObject
*
static
PyObject
*
sys_get_coroutine_wrapper
(
PyObject
*
self
,
PyObject
*
args
)
sys_get_coroutine_wrapper
(
PyObject
*
self
,
PyObject
*
args
)
{
{
PyObject
*
wrapper
=
PyEval_GetCoroutineWrapper
();
PyObject
*
wrapper
=
_
PyEval_GetCoroutineWrapper
();
if
(
wrapper
==
NULL
)
{
if
(
wrapper
==
NULL
)
{
wrapper
=
Py_None
;
wrapper
=
Py_None
;
}
}
...
...
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