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
2efa3698
Kaydet (Commit)
2efa3698
authored
Mar 31, 2000
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use modern PyArg_ParseTuple style, with function names.
üst
6a973c71
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
marshal.c
Python/marshal.c
+8
-8
No files found.
Python/marshal.c
Dosyayı görüntüle @
2efa3698
...
...
@@ -713,7 +713,7 @@ marshal_dump(self, args)
WFILE
wf
;
PyObject
*
x
;
PyObject
*
f
;
if
(
!
PyArg_Parse
(
args
,
"(OO)
"
,
&
x
,
&
f
))
if
(
!
PyArg_Parse
Tuple
(
args
,
"OO:dump
"
,
&
x
,
&
f
))
return
NULL
;
if
(
!
PyFile_Check
(
f
))
{
PyErr_SetString
(
PyExc_TypeError
,
...
...
@@ -741,7 +741,7 @@ marshal_load(self, args)
RFILE
rf
;
PyObject
*
f
;
PyObject
*
v
;
if
(
!
PyArg_Parse
(
args
,
"O
"
,
&
f
))
if
(
!
PyArg_Parse
Tuple
(
args
,
"O:load
"
,
&
f
))
return
NULL
;
if
(
!
PyFile_Check
(
f
))
{
PyErr_SetString
(
PyExc_TypeError
,
...
...
@@ -766,7 +766,7 @@ marshal_dumps(self, args)
PyObject
*
args
;
{
PyObject
*
x
;
if
(
!
PyArg_Parse
(
args
,
"O
"
,
&
x
))
if
(
!
PyArg_Parse
Tuple
(
args
,
"O:dumps
"
,
&
x
))
return
NULL
;
return
PyMarshal_WriteObjectToString
(
x
);
}
...
...
@@ -780,7 +780,7 @@ marshal_loads(self, args)
PyObject
*
v
;
char
*
s
;
int
n
;
if
(
!
PyArg_Parse
(
args
,
"s#
"
,
&
s
,
&
n
))
if
(
!
PyArg_Parse
Tuple
(
args
,
"s#:loads
"
,
&
s
,
&
n
))
return
NULL
;
rf
.
fp
=
NULL
;
rf
.
str
=
args
;
...
...
@@ -796,10 +796,10 @@ marshal_loads(self, args)
}
static
PyMethodDef
marshal_methods
[]
=
{
{
"dump"
,
marshal_dump
},
{
"load"
,
marshal_load
},
{
"dumps"
,
marshal_dumps
},
{
"loads"
,
marshal_loads
},
{
"dump"
,
marshal_dump
,
1
},
{
"load"
,
marshal_load
,
1
},
{
"dumps"
,
marshal_dumps
,
1
},
{
"loads"
,
marshal_loads
,
1
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
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