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
13300f2b
Kaydet (Commit)
13300f2b
authored
Agu 09, 2006
tarafından
Andrew M. Kuchling
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[Patch #1534027] Add notes on locale module changes
üst
b7136608
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
5 deletions
+34
-5
whatsnew25.tex
Doc/whatsnew/whatsnew25.tex
+34
-5
No files found.
Doc/whatsnew/whatsnew25.tex
Dosyayı görüntüle @
13300f2b
...
...
@@ -1503,6 +1503,29 @@ itertools.islice(iterable, s.start, s.stop, s.step)
(Contributed by Raymond Hettinger.)
\item
The
\function
{
format()
}
function in the
\module
{
locale
}
module
has been modified and two new functions were added,
\function
{
format
_
string()
}
and
\function
{
currency()
}
.
The
\function
{
format()
}
function's
\var
{
val
}
parameter could
previously be a string as long as no more than one
\%
char specifier
appeared; now the parameter must be exactly one
\%
char specifier with
no surrounding text. An optional
\var
{
monetary
}
parameter was also
added which, if
\code
{
True
}
, will use the locale's rules for
formatting currency in placing a separator between groups of three
digits.
To format strings with multiple
\%
char specifiers, use the new
\function
{
format
_
string()
}
function that works like
\function
{
format()
}
but also supports mixing
\%
char specifiers with
arbitrary text.
A new
\function
{
currency()
}
function was also added that formats a
number according to the current locale's settings.
(Contributed by Georg Brandl.)
% Patch 1180296
\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
...
...
@@ -2405,6 +2428,12 @@ fields. If your files contain newlines embedded within fields, the
input should be split into lines in a manner which preserves the
newline characters.
\item
Library: the
\module
{
locale
}
module's
\function
{
format()
}
function's would previously
accept any string as long as no more than one
\%
char specifier
appeared. In Python 2.5, the argument must be exactly one
\%
char
specifier with no surrounding text.
\item
Library: The
\module
{
pickle
}
and
\module
{
cPickle
}
modules no
longer accept a return value of
\code
{
None
}
from the
\method
{__
reduce
__
()
}
method; the method must return a tuple of
...
...
@@ -2440,10 +2469,10 @@ freed with the corresponding family's \cfunction{*_Free()} function.
The author would like to thank the following people for offering
suggestions, corrections and assistance with various drafts of this
article:
Nick Coghlan, Phillip J. Eby, Lars Gust
\"
abel, Raymond Hettinger, Ralf
W. Grosse-Kunstleve, Kent Johnson, Martin von~L
\"
owis, Fredrik Lundh
,
Andrew McNamara, Skip Montanaro,
Gustavo Niemeyer, Paul Prescod, James Pryor, Mike Rovner, Scott
Weikart, Barry
Warsaw, Thomas Wouters.
article:
Georg Brandl, Nick Coghlan, Phillip J. Eby, Lars Gust
\"
abel,
Raymond Hettinger, Ralf W. Grosse-Kunstleve, Kent Johnson, Iain Lowe
,
Martin von~L
\"
owis, Fredrik Lundh,
Andrew McNamara, Skip Montanaro,
Gustavo Niemeyer, Paul Prescod, James Pryor, Mike Rovner, Scott
W
eikart, Barry W
arsaw, Thomas Wouters.
\end{document}
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