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
3b57f50e
Unverified
Kaydet (Commit)
3b57f50e
authored
Haz 01, 2019
tarafından
Pablo Galindo
Kaydeden (comit)
GitHub
Haz 01, 2019
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-36842: Pass positional only parameters to code_new audit hook (GH-13707)
üst
938d9a01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
code.rst
Doc/c-api/code.rst
+1
-1
codeobject.c
Objects/codeobject.c
+3
-3
No files found.
Doc/c-api/code.rst
Dosyayı görüntüle @
3b57f50e
...
@@ -45,7 +45,7 @@ bound into a function.
...
@@ -45,7 +45,7 @@ bound into a function.
The first parameter (*argcount*) now represents the total number of positional arguments,
The first parameter (*argcount*) now represents the total number of positional arguments,
including positional-only.
including positional-only.
.. audit-event:: code.__new__ "code filename name argcount kwonlyargcount nlocals stacksize flags"
.. audit-event:: code.__new__ "code filename name argcount
posonlyargcount
kwonlyargcount nlocals stacksize flags"
.. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno)
.. c:function:: PyCodeObject* PyCode_NewEmpty(const char *filename, const char *funcname, int firstlineno)
...
...
Objects/codeobject.c
Dosyayı görüntüle @
3b57f50e
...
@@ -390,9 +390,9 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kw)
...
@@ -390,9 +390,9 @@ code_new(PyTypeObject *type, PyObject *args, PyObject *kw)
&
PyTuple_Type
,
&
cellvars
))
&
PyTuple_Type
,
&
cellvars
))
return
NULL
;
return
NULL
;
if
(
PySys_Audit
(
"code.__new__"
,
"OOOiiiii"
,
if
(
PySys_Audit
(
"code.__new__"
,
"OOOiiiii
i
"
,
code
,
filename
,
name
,
argcount
,
kw
onlyargcount
,
code
,
filename
,
name
,
argcount
,
pos
onlyargcount
,
nlocals
,
stacksize
,
flags
)
<
0
)
{
kwonlyargcount
,
nlocals
,
stacksize
,
flags
)
<
0
)
{
goto
cleanup
;
goto
cleanup
;
}
}
...
...
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