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
ae45714e
Kaydet (Commit)
ae45714e
authored
Agu 31, 2001
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add various and sundry news items -- most mine, one Barry's, one
Michael Hudson's.
üst
97741a30
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
0 deletions
+44
-0
NEWS
Misc/NEWS
+44
-0
No files found.
Misc/NEWS
Dosyayı görüntüle @
ae45714e
...
@@ -3,6 +3,43 @@ What's New in Python 2.2a3?
...
@@ -3,6 +3,43 @@ What's New in Python 2.2a3?
Core
Core
+ Overflowing operations on plain ints now return a long int rather
than raising OverflowError. This is a partial implementation of PEP
237. You can use -Wdefault::OverflowWarning to enable a warning for
this situation, and -Werror::OverflowWarning to revert to the old
OverflowError exception.
+ A new command line option, -D<arg>, is added to control run-time
warnings for the use of classic division. (See PEP 238.) Possible
values are -Dold, -Dwarn, and -Dnew. The default is -Dold, meaning
the / operator has its classic meaning and no warnings are issued.
Using -Dwarn issues a run-time warning about all uses of classic
division for int, long, float and complex arguments. Using -Dnew is
questionable; it turns on new division by default, but only in the
__main__ module. You can usefully combine -Dwarn and -Dnew: this
gives the __main__ module new division, and warns about classic
division everywhere else.
+ Many built-in types can now be subclassed. This applies to int,
long, float, str, unicode, and tuple. (The types complex, list and
dictionary can also be subclassed; this was introduced earlier.)
Note that restrictions apply when subclassing immutable built-in
types: you can only affect the value of the instance by overloading
__new__. You can add mutable attributes, and the subclass instances
will have a __dict__ attribute, but you cannot change the "value"
(as implemented by the base class) of an immutable subclass instance
once it is created.
+ A new built-in type, super, has been added. This facilitates making
"cooperative super calls" in a multiple inheritance setting. For an
explanation, see http://www.python.org/2.2/descrintro.html#cooperation
+ A new built-in type, getset, has been added. This enables the
creation of "computed attributes". Such attributes are implemented
by getter and setter functions (or only one of these for read-only
or write-only attributes), without the need to override
__getattr__. See http://www.python.org/2.2/descrintro.html#getset
+ The syntax of floating-point and imaginary literals has been
+ The syntax of floating-point and imaginary literals has been
liberalized, to allow leading zeroes. Examples of literals now
liberalized, to allow leading zeroes. Examples of literals now
legal that were SyntaxErrors before:
legal that were SyntaxErrors before:
...
@@ -22,6 +59,9 @@ Library
...
@@ -22,6 +59,9 @@ Library
When read on a box where Python ints are 4 bytes, such values are
When read on a box where Python ints are 4 bytes, such values are
converted to Python longs.
converted to Python longs.
+ In restricted execution mode (using the rexec module), unmarshalling
code objects is no longer allowed. This plugs a security hole.
Tools
Tools
Build
Build
...
@@ -44,6 +84,10 @@ API
...
@@ -44,6 +84,10 @@ API
- remove calls to PyObject_AS_GC and PyObject_FROM_GC
- remove calls to PyObject_AS_GC and PyObject_FROM_GC
+ Two new functions: PyString_FromFormat() and PyString_FromFormatV().
These can be used safely to construct string objects from a
sprintf-style format string (similar to the format string supported
by PyErr_Format()).
New platforms
New platforms
...
...
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