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
32a7e7f6
Kaydet (Commit)
32a7e7f6
authored
May 31, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Change name from string to basestring
üst
9b414ac9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
NEWS
Misc/NEWS
+2
-2
stringobject.c
Objects/stringobject.c
+3
-3
bltinmodule.c
Python/bltinmodule.c
+1
-1
No files found.
Misc/NEWS
Dosyayı görüntüle @
32a7e7f6
...
...
@@ -12,10 +12,10 @@ Core and builtins
deprecations, use -Walways::PendingDeprecationWarning::
as a command line option or warnings.filterwarnings() in code.
- A new type object, 'string', is added. This is a common base type
- A new type object, '
base
string', is added. This is a common base type
for 'str' and 'unicode', and can be used instead of
types.StringTypes, e.g. to test whether something is "a string":
isinstance(x, string) is True for Unicode and 8-bit strings. This
isinstance(x,
base
string) is True for Unicode and 8-bit strings. This
is an abstract base class and cannot be instantiated directly.
- Deprecated features of xrange objects have been removed as
...
...
Objects/stringobject.c
Dosyayı görüntüle @
32a7e7f6
...
...
@@ -2859,17 +2859,17 @@ static PyObject *
basestring_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kwds
)
{
PyErr_SetString
(
PyExc_TypeError
,
"The string type cannot be instantiated"
);
"The
base
string type cannot be instantiated"
);
return
NULL
;
}
static
char
basestring_doc
[]
=
"Type string cannot be instantiated; it is the base for str and unicode."
;
"Type
base
string cannot be instantiated; it is the base for str and unicode."
;
PyTypeObject
PyBaseString_Type
=
{
PyObject_HEAD_INIT
(
&
PyType_Type
)
0
,
"string"
,
"
base
string"
,
0
,
0
,
0
,
/* tp_dealloc */
...
...
Python/bltinmodule.c
Dosyayı görüntüle @
32a7e7f6
...
...
@@ -1890,6 +1890,7 @@ _PyBuiltin_Init(void)
SETBUILTIN
(
"NotImplemented"
,
Py_NotImplemented
);
SETBUILTIN
(
"False"
,
Py_False
);
SETBUILTIN
(
"True"
,
Py_True
);
SETBUILTIN
(
"basestring"
,
&
PyBaseString_Type
);
SETBUILTIN
(
"bool"
,
&
PyBool_Type
);
SETBUILTIN
(
"classmethod"
,
&
PyClassMethod_Type
);
#ifndef WITHOUT_COMPLEX
...
...
@@ -1905,7 +1906,6 @@ _PyBuiltin_Init(void)
SETBUILTIN
(
"object"
,
&
PyBaseObject_Type
);
SETBUILTIN
(
"staticmethod"
,
&
PyStaticMethod_Type
);
SETBUILTIN
(
"str"
,
&
PyString_Type
);
SETBUILTIN
(
"string"
,
&
PyBaseString_Type
);
SETBUILTIN
(
"super"
,
&
PySuper_Type
);
SETBUILTIN
(
"tuple"
,
&
PyTuple_Type
);
SETBUILTIN
(
"type"
,
&
PyType_Type
);
...
...
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