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
6720d91e
Kaydet (Commit)
6720d91e
authored
Tem 12, 2007
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Rename PyTclObject_unicode to PyTclObject_str and use this
for the tp_str slot. Drop __unicode__ method.
üst
7c1ebe33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
22 deletions
+3
-22
_tkinter.c
Modules/_tkinter.c
+3
-22
No files found.
Modules/_tkinter.c
Dosyayı görüntüle @
6720d91e
...
...
@@ -742,17 +742,6 @@ PyTclObject_dealloc(PyTclObject *self)
PyObject_Del
(
self
);
}
static
PyObject
*
PyTclObject_str
(
PyTclObject
*
self
)
{
if
(
self
->
string
&&
PyString_Check
(
self
->
string
))
{
Py_INCREF
(
self
->
string
);
return
self
->
string
;
}
/* XXX Could cache value if it is an ASCII string. */
return
PyString_FromString
(
Tcl_GetString
(
self
->
value
));
}
static
char
*
PyTclObject_TclString
(
PyObject
*
self
)
{
...
...
@@ -761,7 +750,7 @@ PyTclObject_TclString(PyObject *self)
/* Like _str, but create Unicode if necessary. */
PyDoc_STRVAR
(
PyTclObject_string__doc__
,
"the string representation of this object, either as str
ing or Unicode
"
);
"the string representation of this object, either as str
8 or str8
"
);
static
PyObject
*
PyTclObject_string
(
PyTclObject
*
self
,
void
*
ignored
)
...
...
@@ -790,10 +779,8 @@ PyTclObject_string(PyTclObject *self, void *ignored)
return
self
->
string
;
}
PyDoc_STRVAR
(
PyTclObject_unicode__doc__
,
"convert argument to unicode"
);
static
PyObject
*
PyTclObject_
unicode
(
PyTclObject
*
self
,
void
*
ignored
)
PyTclObject_
str
(
PyTclObject
*
self
,
void
*
ignored
)
{
char
*
s
;
int
len
;
...
...
@@ -840,12 +827,6 @@ static PyGetSetDef PyTclObject_getsetlist[] = {
{
0
},
};
static
PyMethodDef
PyTclObject_methods
[]
=
{
{
"__unicode__"
,
(
PyCFunction
)
PyTclObject_unicode
,
METH_NOARGS
,
PyTclObject_unicode__doc__
},
{
0
}
};
static
PyTypeObject
PyTclObject_Type
=
{
PyObject_HEAD_INIT
(
NULL
)
0
,
/*ob_size*/
...
...
@@ -876,7 +857,7 @@ static PyTypeObject PyTclObject_Type = {
0
,
/*tp_weaklistoffset*/
0
,
/*tp_iter*/
0
,
/*tp_iternext*/
PyTclObject_methods
,
/*tp_methods*/
0
,
/*tp_methods*/
0
,
/*tp_members*/
PyTclObject_getsetlist
,
/*tp_getset*/
0
,
/*tp_base*/
...
...
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