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
d4c2177b
Kaydet (Commit)
d4c2177b
authored
Nis 23, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add two items
üst
edb575e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+29
-0
No files found.
Doc/whatsnew/whatsnew25.tex
Dosyayı görüntüle @
d4c2177b
...
...
@@ -1340,6 +1340,30 @@ itertools.islice(iterable, s.start, s.stop, s.step)
(Contributed by Raymond Hettinger.)
\item
The
\module
{
mailbox
}
module underwent a massive rewrite to add
the capability to modify mailboxes in addition to reading them. A new
set of classes that include
\class
{
mbox
}
,
\class
{
MH
}
, and
\class
{
Maildir
}
are used to read mailboxes, and have an
\method
{
add(
\var
{
message
}
)
}
method to add messages,
\method
{
remove(
\var
{
key
}
)
}
to remove messages, and
\method
{
lock()
}
/
\method
{
unlock()
}
to lock/unlock the mailbox. The
following example converts a maildir-format mailbox into an mbox-format one:
\begin{verbatim}
import mailbox
# 'factory=None' uses email.Message.Message as the class representing
# individual messages.
src = mailbox.Maildir('maildir', factory=None)
dest = mailbox.mbox('/tmp/mbox')
for msg in src:
dest.add(msg)
\end{verbatim}
(Contributed by Gregory K. Johnson. Funding was provided by Google's
2005 Summer of Code.)
\item
The
\module
{
nis
}
module now supports accessing domains other
than the system default domain by supplying a
\var
{
domain
}
argument to
the
\function
{
nis.match()
}
and
\function
{
nis.maps()
}
functions.
...
...
@@ -1354,6 +1378,11 @@ this new feature with the \method{sort()} method's \code{key} parameter
lets you easily sort lists using multiple fields.
(Contributed by Raymond Hettinger.)
\item
The
\module
{
optparse
}
module was updated to version 1.5.1 of the
Optik library. The
\class
{
OptionParser
}
class gained an
\member
{
epilog
}
attribute, a string that will be printed after the
help message, and a
\method
{
destroy()
}
method to break reference
cycles created by the object. (Contributed by Greg Ward.)
\item
The
\module
{
os
}
module underwent several changes. The
\member
{
stat
_
float
_
times
}
variable now defaults to true, meaning that
...
...
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