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
8940fafa
Kaydet (Commit)
8940fafa
authored
Eki 25, 2000
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Additions from Marc-Andre Lemburg <mal@lemburg.com>, documenting
getdefaultencoding() and setdefaultencoding().
üst
1491cace
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
libsys.tex
Doc/lib/libsys.tex
+21
-1
No files found.
Doc/lib/libsys.tex
Dosyayı görüntüle @
8940fafa
...
...
@@ -142,6 +142,12 @@ way to exit a program when an error occurs.
fatal internal error is detected, or when
\code
{
os.
_
exit()
}
is called.
\end{datadesc}
\begin{funcdesc}
{
getdefaultencoding
}{}
Return the name of the current default string encoding used by the
Unicode implementation.
\versionadded
{
2.0
}
\end{funcdesc}
\begin{funcdesc}
{
getrefcount
}{
object
}
Return the reference count of the
\var
{
object
}
. The count returned is
generally one higher than you might expect, because it includes the
...
...
@@ -254,7 +260,7 @@ files (all except \file{config.h}) are stored in \code{prefix +
Strings specifying the primary and secondary prompt of the
interpreter. These are only defined if the interpreter is in
interactive mode. Their initial values in this case are
\code
{
'>
>
> '
}
and
\code
{
'... '
}
. If a non-string object is assigned
\code
{
'>
\code
{
>
}
> '
}
and
\code
{
'... '
}
. If a non-string object is assigned
to either variable, its
\function
{
str()
}
is re-evaluated each time
the interpreter prepares to read a new interactive command; this can
be used to implement a dynamic prompt.
...
...
@@ -270,6 +276,20 @@ threads. Setting it to a value \code{<=} 0 checks every virtual instruction,
maximizing responsiveness as well as overhead.
\end{funcdesc}
\begin{funcdesc}
{
setdefaultencoding
}{
name
}
Set the current default string encoding used by the Unicode
implementation. If
\var
{
name
}
does not match any available
encoding,
\exception
{
LookupError
}
is raised. This function is only
intended to be used by the
\refmodule
{
site
}
module implementation
and, where needed, by
\module
{
sitecustomize
}
. Once used by the
\refmodule
{
site
}
module, it is removed from the
\module
{
sys
}
module's namespace.
% Note that \refmodule{site} is not imported if
% the \programopt{-S} option is passed to the interpreter, in which
% case this function will remain available.
\versionadded
{
2.0
}
\end{funcdesc}
\begin{funcdesc}
{
setprofile
}{
profilefunc
}
Set the system's profile function, which allows you to implement a
Python source code profiler in Python. See the chapter on the
...
...
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