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
badc7abc
Kaydet (Commit)
badc7abc
authored
Ara 05, 2008
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use :samp: role.
üst
d3c827b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
3.0.rst
Doc/whatsnew/3.0.rst
+6
-7
No files found.
Doc/whatsnew/3.0.rst
Dosyayı görüntüle @
badc7abc
...
...
@@ -369,7 +369,7 @@ New Syntax
(a, *rest, b) = range(5)
This sets *a* to ``0``, *b* to ``4``, and
\*rest
to ``[1, 2, 3]``.
This sets *a* to ``0``, *b* to ``4``, and
*rest*
to ``[1, 2, 3]``.
* Dictionary comprehensions: ``{k: v for k, v in stuff}`` means the
same thing as ``dict(stuff)`` but is more flexible. (This is
...
...
@@ -393,7 +393,7 @@ Changed Syntax
--------------
* :pep:`3109` and :pep:`3134`: new :keyword:`raise` statement syntax:
``raise [expr [from expr]]`
`. See below.
:samp:`raise [{expr} [from {expr}]]
`. See below.
* :keyword:`as` and :keyword:`with` are now reserved words. (Since
2.6, actually.)
...
...
@@ -422,8 +422,8 @@ Changed Syntax
:class:`object`.)
* List comprehensions no longer support the syntactic form
``[... for var in item1, item2, ...]`
`. Use
``[... for var in (item1, item2, ...)]`
` instead.
:samp:`[... for {var} in {item1}, {item2}, ...]
`. Use
:samp:`[... for {var} in ({item1}, {item2}, ...)]
` instead.
Also note that list comprehensions have different semantics: they
are closer to syntactic sugar for a generator expression inside a
:func:`list` constructor, and in particular the loop control
...
...
@@ -457,9 +457,8 @@ Removed Syntax
* The :keyword:`from` *module* :keyword:`import` ``*`` syntax is only
allowed at the module level, no longer inside functions.
* The only acceptable syntax for relative imports is :keyword:`from`
``.`` [*module*] :keyword:`import` *name*.
All :keyword:`import` forms not starting with ``.`` are
* The only acceptable syntax for relative imports is :samp:`from .[{module}]
import {name}`. All :keyword:`import` forms not starting with ``.`` are
interpreted as absolute imports. (:pep:`0328`)
* Classic classes are gone.
...
...
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