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
691d4ec0
Kaydet (Commit)
691d4ec0
authored
Eki 08, 1995
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
a fe more things: apply 3rd arg, ni, ihooks, rexec
üst
8476d000
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
62 additions
and
2 deletions
+62
-2
tut.tex
Doc/tut.tex
+31
-1
tut.tex
Doc/tut/tut.tex
+31
-1
No files found.
Doc/tut.tex
Dosyayı görüntüle @
691d4ec0
...
...
@@ -3625,10 +3625,29 @@ shopkeeper : Michael Palin
sketch : Cheese Shop Sketch
\end{verbatim}
Side effect
s of this change include:
Consequence
s of this change include:
\begin{itemize}
\item
The built-in function
\code
{
apply()
}
now has an optional third
argument, which is a dictionary specifying any keyword arguments to be
passed. For example,
\begin{verbatim}
apply(parrot, (),
{
'voltage': 20, 'action': 'voomm'
}
)
\end{verbatim}
is equivalent to
\begin{verbatim}
parrot(voltage=20, action='voomm')
\end{verbatim}
\item
There is also a mechanism for functions and methods defined in an
extension module (i.e., implemented in C or C++) to receive a
dictionary of their keyword arguments. By default, such functions do
not accept keyword arguments, since the argument names are not
available to the interpreter.
\item
In the effort of implementing keyword arguments, function and
especially method calls have been sped up significantly -- for a
...
...
@@ -3748,6 +3767,17 @@ output of expression statements that evaluate to something else than
\begin{itemize}
\item
There are new module
\code
{
ni
}
and
\code
{
ihooks
}
that support
importing modules with hierarchical names such as
\code
{
A.B.C
}
. This
is enabled by writing
\code
{
import ni; ni.ni()
}
at the very top of the
main program. These modules are amply documented in the Python
source.
\item
The module
\code
{
rexec
}
has been rewritten (incompatibly) to define a
class and to use
\code
{
ihooks
}
.
\item
The
\code
{
string.split()
}
and
\code
{
string.splitfields()
}
functions
are now the same function (the presence or absence of the second
...
...
Doc/tut/tut.tex
Dosyayı görüntüle @
691d4ec0
...
...
@@ -3625,10 +3625,29 @@ shopkeeper : Michael Palin
sketch : Cheese Shop Sketch
\end{verbatim}
Side effect
s of this change include:
Consequence
s of this change include:
\begin{itemize}
\item
The built-in function
\code
{
apply()
}
now has an optional third
argument, which is a dictionary specifying any keyword arguments to be
passed. For example,
\begin{verbatim}
apply(parrot, (),
{
'voltage': 20, 'action': 'voomm'
}
)
\end{verbatim}
is equivalent to
\begin{verbatim}
parrot(voltage=20, action='voomm')
\end{verbatim}
\item
There is also a mechanism for functions and methods defined in an
extension module (i.e., implemented in C or C++) to receive a
dictionary of their keyword arguments. By default, such functions do
not accept keyword arguments, since the argument names are not
available to the interpreter.
\item
In the effort of implementing keyword arguments, function and
especially method calls have been sped up significantly -- for a
...
...
@@ -3748,6 +3767,17 @@ output of expression statements that evaluate to something else than
\begin{itemize}
\item
There are new module
\code
{
ni
}
and
\code
{
ihooks
}
that support
importing modules with hierarchical names such as
\code
{
A.B.C
}
. This
is enabled by writing
\code
{
import ni; ni.ni()
}
at the very top of the
main program. These modules are amply documented in the Python
source.
\item
The module
\code
{
rexec
}
has been rewritten (incompatibly) to define a
class and to use
\code
{
ihooks
}
.
\item
The
\code
{
string.split()
}
and
\code
{
string.splitfields()
}
functions
are now the same function (the presence or absence of the second
...
...
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