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
200788ce
Kaydet (Commit)
200788ce
authored
Agu 13, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Allow more docstrings to be removed during compilation in some modules
üst
5dc2a37f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
38 deletions
+40
-38
cPickle.c
Modules/cPickle.c
+16
-15
operator.c
Modules/operator.c
+2
-2
parsermodule.c
Modules/parsermodule.c
+20
-20
symtablemodule.c
Modules/symtablemodule.c
+2
-1
No files found.
Modules/cPickle.c
Dosyayı görüntüle @
200788ce
...
...
@@ -2295,12 +2295,12 @@ Pickler_dump(Picklerobject *self, PyObject *args)
static
struct
PyMethodDef
Pickler_methods
[]
=
{
{
"dump"
,
(
PyCFunction
)
Pickler_dump
,
METH_VARARGS
,
"dump(object) --
"
"Write an object in pickle format to the object's pickle stream"
},
PyDoc_STR
(
"dump(object) --
"
"Write an object in pickle format to the object's pickle stream"
)
},
{
"clear_memo"
,
(
PyCFunction
)
Pickle_clear_memo
,
METH_NOARGS
,
"clear_memo() -- Clear the picklers memo"
},
PyDoc_STR
(
"clear_memo() -- Clear the picklers memo"
)
},
{
"getvalue"
,
(
PyCFunction
)
Pickle_getvalue
,
METH_VARARGS
,
"getvalue() -- Finish picking a list-based pickle"
},
PyDoc_STR
(
"getvalue() -- Finish picking a list-based pickle"
)
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
@@ -4301,15 +4301,16 @@ Unpickler_noload(Unpicklerobject *self, PyObject *args)
static
struct
PyMethodDef
Unpickler_methods
[]
=
{
{
"load"
,
(
PyCFunction
)
Unpickler_load
,
METH_VARARGS
,
"load() -- Load a pickle"
PyDoc_STR
(
"load() -- Load a pickle"
)
},
{
"noload"
,
(
PyCFunction
)
Unpickler_noload
,
METH_VARARGS
,
PyDoc_STR
(
"noload() -- not load a pickle, but go through most of the motions
\n
"
"
\n
"
"This function can be used to read past a pickle without instantiating
\n
"
"any objects or importing any modules. It can also be used to find all
\n
"
"persistent references without instantiating any objects or importing
\n
"
"any modules.
\n
"
"any modules.
\n
"
)
},
{
NULL
,
NULL
}
/* sentinel */
};
...
...
@@ -4648,34 +4649,34 @@ static PyTypeObject Unpicklertype = {
static
struct
PyMethodDef
cPickle_methods
[]
=
{
{
"dump"
,
(
PyCFunction
)
cpm_dump
,
METH_VARARGS
,
"dump(object, file, [binary]) --"
PyDoc_STR
(
"dump(object, file, [binary]) --"
"Write an object in pickle format to the given file
\n
"
"
\n
"
"If the optional argument, binary, is provided and is true, then the
\n
"
"pickle will be written in binary format, which is more space and
\n
"
"computationally efficient.
\n
"
"computationally efficient.
\n
"
)
},
{
"dumps"
,
(
PyCFunction
)
cpm_dumps
,
METH_VARARGS
,
"dumps(object, [binary]) --"
PyDoc_STR
(
"dumps(object, [binary]) --"
"Return a string containing an object in pickle format
\n
"
"
\n
"
"If the optional argument, binary, is provided and is true, then the
\n
"
"pickle will be written in binary format, which is more space and
\n
"
"computationally efficient.
\n
"
"computationally efficient.
\n
"
)
},
{
"load"
,
(
PyCFunction
)
cpm_load
,
METH_VARARGS
,
"load(file) -- Load a pickle from the given file"
},
PyDoc_STR
(
"load(file) -- Load a pickle from the given file"
)
},
{
"loads"
,
(
PyCFunction
)
cpm_loads
,
METH_VARARGS
,
"loads(string) -- Load a pickle from the given string"
},
PyDoc_STR
(
"loads(string) -- Load a pickle from the given string"
)
},
{
"Pickler"
,
(
PyCFunction
)
get_Pickler
,
METH_VARARGS
,
"Pickler(file, [binary]) -- Create a pickler
\n
"
PyDoc_STR
(
"Pickler(file, [binary]) -- Create a pickler
\n
"
"
\n
"
"If the optional argument, binary, is provided and is true, then
\n
"
"pickles will be written in binary format, which is more space and
\n
"
"computationally efficient.
\n
"
"computationally efficient.
\n
"
)
},
{
"Unpickler"
,
(
PyCFunction
)
get_Unpickler
,
METH_VARARGS
,
"Unpickler(file) -- Create an unpickler"
},
PyDoc_STR
(
"Unpickler(file) -- Create an unpickler"
)
},
{
NULL
,
NULL
}
};
...
...
Modules/operator.c
Dosyayı görüntüle @
200788ce
...
...
@@ -146,9 +146,9 @@ op_delslice(PyObject *s, PyObject *a)
#undef spam1
#undef spam2
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS,
DOC
},
#define spam1(OP,DOC) {#OP, OP, METH_VARARGS,
PyDoc_STR(DOC)
},
#define spam2(OP,ALTOP,DOC) {#OP, op_##OP, METH_VARARGS, DOC}, \
{#ALTOP, op_##OP, METH_VARARGS,
DOC
},
{#ALTOP, op_##OP, METH_VARARGS,
PyDoc_STR(DOC)
},
static
struct
PyMethodDef
operator_methods
[]
=
{
...
...
Modules/parsermodule.c
Dosyayı görüntüle @
200788ce
...
...
@@ -442,15 +442,15 @@ parser_issuite(PyST_Object *self, PyObject *args, PyObject *kw)
static
PyMethodDef
parser_methods
[]
=
{
{
"compile"
,
(
PyCFunction
)
parser_compilest
,
PUBLIC_METHOD_TYPE
,
"Compile this ST object into a code object."
},
PyDoc_STR
(
"Compile this ST object into a code object."
)
},
{
"isexpr"
,
(
PyCFunction
)
parser_isexpr
,
PUBLIC_METHOD_TYPE
,
"Determines if this ST object was created from an expression."
},
PyDoc_STR
(
"Determines if this ST object was created from an expression."
)
},
{
"issuite"
,
(
PyCFunction
)
parser_issuite
,
PUBLIC_METHOD_TYPE
,
"Determines if this ST object was created from a suite."
},
PyDoc_STR
(
"Determines if this ST object was created from a suite."
)
},
{
"tolist"
,
(
PyCFunction
)
parser_st2list
,
PUBLIC_METHOD_TYPE
,
"Creates a list-tree representation of this ST."
},
PyDoc_STR
(
"Creates a list-tree representation of this ST."
)
},
{
"totuple"
,
(
PyCFunction
)
parser_st2tuple
,
PUBLIC_METHOD_TYPE
,
"Creates a tuple-tree representation of this ST."
},
PyDoc_STR
(
"Creates a tuple-tree representation of this ST."
)
},
{
NULL
,
NULL
,
0
,
NULL
}
};
...
...
@@ -2816,37 +2816,37 @@ parser__pickler(PyObject *self, PyObject *args)
*/
static
PyMethodDef
parser_functions
[]
=
{
{
"ast2tuple"
,
(
PyCFunction
)
parser_st2tuple
,
PUBLIC_METHOD_TYPE
,
"Creates a tuple-tree representation of an ST."
},
PyDoc_STR
(
"Creates a tuple-tree representation of an ST."
)
},
{
"ast2list"
,
(
PyCFunction
)
parser_st2list
,
PUBLIC_METHOD_TYPE
,
"Creates a list-tree representation of an ST."
},
PyDoc_STR
(
"Creates a list-tree representation of an ST."
)
},
{
"compileast"
,
(
PyCFunction
)
parser_compilest
,
PUBLIC_METHOD_TYPE
,
"Compiles an ST object into a code object."
},
PyDoc_STR
(
"Compiles an ST object into a code object."
)
},
{
"compilest"
,
(
PyCFunction
)
parser_compilest
,
PUBLIC_METHOD_TYPE
,
"Compiles an ST object into a code object."
},
PyDoc_STR
(
"Compiles an ST object into a code object."
)
},
{
"expr"
,
(
PyCFunction
)
parser_expr
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from an expression."
},
PyDoc_STR
(
"Creates an ST object from an expression."
)
},
{
"isexpr"
,
(
PyCFunction
)
parser_isexpr
,
PUBLIC_METHOD_TYPE
,
"Determines if an ST object was created from an expression."
},
PyDoc_STR
(
"Determines if an ST object was created from an expression."
)
},
{
"issuite"
,
(
PyCFunction
)
parser_issuite
,
PUBLIC_METHOD_TYPE
,
"Determines if an ST object was created from a suite."
},
PyDoc_STR
(
"Determines if an ST object was created from a suite."
)
},
{
"suite"
,
(
PyCFunction
)
parser_suite
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from a suite."
},
PyDoc_STR
(
"Creates an ST object from a suite."
)
},
{
"sequence2ast"
,
(
PyCFunction
)
parser_tuple2st
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from a tree representation."
},
PyDoc_STR
(
"Creates an ST object from a tree representation."
)
},
{
"sequence2st"
,
(
PyCFunction
)
parser_tuple2st
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from a tree representation."
},
PyDoc_STR
(
"Creates an ST object from a tree representation."
)
},
{
"st2tuple"
,
(
PyCFunction
)
parser_st2tuple
,
PUBLIC_METHOD_TYPE
,
"Creates a tuple-tree representation of an ST."
},
PyDoc_STR
(
"Creates a tuple-tree representation of an ST."
)
},
{
"st2list"
,
(
PyCFunction
)
parser_st2list
,
PUBLIC_METHOD_TYPE
,
"Creates a list-tree representation of an ST."
},
PyDoc_STR
(
"Creates a list-tree representation of an ST."
)
},
{
"tuple2ast"
,
(
PyCFunction
)
parser_tuple2st
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from a tree representation."
},
PyDoc_STR
(
"Creates an ST object from a tree representation."
)
},
{
"tuple2st"
,
(
PyCFunction
)
parser_tuple2st
,
PUBLIC_METHOD_TYPE
,
"Creates an ST object from a tree representation."
},
PyDoc_STR
(
"Creates an ST object from a tree representation."
)
},
/* private stuff: support pickle module */
{
"_pickler"
,
(
PyCFunction
)
parser__pickler
,
METH_VARARGS
,
"Returns the pickle magic to allow ST objects to be pickled."
},
PyDoc_STR
(
"Returns the pickle magic to allow ST objects to be pickled."
)
},
{
NULL
,
NULL
,
0
,
NULL
}
};
...
...
Modules/symtablemodule.c
Dosyayı görüntüle @
200788ce
...
...
@@ -39,7 +39,8 @@ symtable_symtable(PyObject *self, PyObject *args)
static
PyMethodDef
symtable_methods
[]
=
{
{
"symtable"
,
symtable_symtable
,
METH_VARARGS
,
"Return symbol and scope dictionaries used internally by compiler."
},
PyDoc_STR
(
"Return symbol and scope dictionaries"
" used internally by compiler."
)},
{
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