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
5b78dd9f
Kaydet (Commit)
5b78dd9f
authored
Ara 02, 2008
tarafından
Guido van Rossum
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Another checkpoint to switch machines.
üst
eab34c95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
3 deletions
+65
-3
3.0.rst
Doc/whatsnew/3.0.rst
+65
-3
No files found.
Doc/whatsnew/3.0.rst
Dosyayı görüntüle @
5b78dd9f
...
...
@@ -333,10 +333,72 @@ Changes Already Present In Python 2.6
This section reminds the reader of new features that were originally
designed for Python 3.0 but that were already introduced in Python
2.6. The descriptions in "What's New in Python 2.6" are hereby
included by reference.
2.6. The descriptions in "What's New in Python 2.6" should be
consulted for longer descriptions.
XXX How to cross-link?
* PEP 343: The :keyword:`with` statement is now a standard feature and
no longer needs to be imported from the ``__future__``.
* PEP 366: Explicit relative imports from a main module inside a package.
This enhances the usefulness of the :option:`-m` option.
* PEP 370: Per-user ``site-packages`` directory.
* PEP 371: The ``multiprocessing`` package. XXX Did anything change here?
* PEP 3101: Advanced string formatting. Note: the 2.6 description
mentions the :method:`format` method for both 8-bit and Unicode
strings. In 3.0, only the :class:`str` type (text strings with
Unicode support) supports this method; the :class:`bytes` type does
not.
* PEP 3105: Print as a function. This is now a standard feature and
no longer needs to be imported from the ``__future__``.
* PEP 3110: Exception-handling changes. The ``except exc as var:``
syntax is now standard and ``except exc, var:`` is no longer supported.
(Of course, the ``as var`` part is still optional.)
* PEP 3112: Byte literals. The ``b"..."`` string literal notation
(and its variants like ``b'...'``, ``b"""...""", and ``br'...`'')
now produces a literal of type :class:`bytes`. More about :class:`bytes`
below.
* PEP 3116: New I/O library. The :module:`io` module is now the
standard way of doing file I/O, and the initial values of
``sys.stdin``, ``sys.stdout`` and ``sys.stderr`` are now instances
of :class:`io.TextIOBase`. The builtin :func:`open` function is
now an alias for ``io.open`` and has additional keyword arguments:
``encoding``, ``errors``, ``newline`` and ``closefd``.
* PEP 3118: Revised buffer protocol. The old builtin
:function:`buffer` is no more; the new builtin
:function:`memoryview` provides (mostly) similar functionality.
* PEP 3119: Abstract Base Classes (ABCs). These play a slightly more
prominent role in the language now, and builtin collection types like
:class:`dict` and :class:`list` conform to the :class:`Mapping` and
:class:`Sequence` protocol, correspondingly.
* PEP 3127: Integer literal suport and syntax. As mentioned above,
the new octal literal notation is the only one supported, and binary
literals have been added.
* PEP 3129: Class decorators. This speaks for itself.
* PEP 3141: A type hierarchy for numbers. This is another new use of
ABCs, defining Python's "numeric tower".
* XXX More.
Library Changes
===============
XXX Brief overview of what's changed in the library.
* XXX List each of those briefly.
Strings And Bytes
=================
...
...
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