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
bc0b260a
Kaydet (Commit)
bc0b260a
authored
Ock 18, 2001
tarafından
Fred Drake
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Minor markup cleaning, and one required fix in the unistr() description.
üst
697a0b0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libfuncs.tex
Doc/lib/libfuncs.tex
+7
-7
No files found.
Doc/lib/libfuncs.tex
Dosyayı görüntüle @
bc0b260a
...
...
@@ -19,12 +19,11 @@ this, see the standard library modules
operations out of which you can build your own
\function
{__
import
__
()
}
function.
For example, the statement
`
\code
{
import
}
\code
{
spam
}
'
results in the
For example, the statement
\samp
{
import spam
}
results in the
following call:
\code
{__
import
__
('spam',
}
\code
{
globals(),
}
\code
{
locals(), [])
}
;
the statement
\code
{
from
}
\code
{
spam.ham import
}
\code
{
eggs
}
results
in
\code
{__
import
__
('spam.ham',
}
\code
{
globals(),
}
\code
{
locals(),
}
\code
{
['eggs'])
}
.
the statement
\samp
{
from spam.ham import eggs
}
results
in
\samp
{__
import
__
('spam.ham', globals(), locals(), ['eggs'])
}
.
Note that even though
\code
{
locals()
}
and
\code
{
['eggs']
}
are passed
in as arguments, the
\function
{__
import
__
()
}
function does not set the
local variable named
\code
{
eggs
}
; this is done by subsequent code that
...
...
@@ -695,9 +694,10 @@ to decode UTF-8 in strict mode, meaning that encoding errors raise
\end{funcdesc}
\begin{funcdesc}
{
unistr
}{
object
}
Return a Unicode string containing a nicely printable representation of an
object. For Unicode, this returns the Unicode string itself. For
all other objects, it tries to convert
\code
{
str(
\var
{
object
}
)] to Unicode.
Return a Unicode string containing a nicely printable representation
of an object. For Unicode, this returns the Unicode string itself.
For all other objects, it tries to convert
\code
{
str(
\var
{
object
}
)
}
to
Unicode.
\end{funcdesc}
\begin{funcdesc}
{
vars
}{
\optional
{
object
}}
...
...
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