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
763557ea
Kaydet (Commit)
763557ea
authored
May 20, 2017
tarafından
csabella
Kaydeden (comit)
terryjreedy
May 20, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-17188: DOC: Document 'from None' in raise statement (#1671)
Original patch by Dennis Mårtensson.
üst
d896985b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
simple_stmts.rst
Doc/reference/simple_stmts.rst
+20
-2
ACKS
Misc/ACKS
+1
-0
No files found.
Doc/reference/simple_stmts.rst
Dosyayı görüntüle @
763557ea
...
...
@@ -587,7 +587,7 @@ printed::
...
Traceback (most recent call last):
File "<stdin>", line 2, in <module>
ZeroDivisionError:
int division or modulo
by zero
ZeroDivisionError:
division
by zero
The above exception was the direct cause of the following exception:
...
...
@@ -606,7 +606,7 @@ attached as the new exception's :attr:`__context__` attribute::
...
Traceback
(
most
recent
call
last
):
File
"<stdin>"
,
line
2
,
in
<
module
>
ZeroDivisionError
:
int
division
or
modulo
by
zero
ZeroDivisionError
:
division
by
zero
During
handling
of
the
above
exception
,
another
exception
occurred
:
...
...
@@ -614,9 +614,27 @@ attached as the new exception's :attr:`__context__` attribute::
File
"<stdin>"
,
line
4
,
in
<
module
>
RuntimeError
:
Something
bad
happened
Exception
chaining
can
be
explicitly
suppressed
by
specifying
:
const
:`
None
`
in
the
``
from
``
clause
::
>>>
try
:
...
print
(
1
/
0
)
...
except
:
...
raise
RuntimeError
(
"Something bad happened"
)
from
None
...
Traceback
(
most
recent
call
last
):
File
"<stdin>"
,
line
4
,
in
<
module
>
RuntimeError
:
Something
bad
happened
Additional
information
on
exceptions
can
be
found
in
section
:
ref
:`
exceptions
`,
and
information
about
handling
exceptions
is
in
section
:
ref
:`
try
`.
..
versionchanged
::
3.3
:
const
:`
None
`
is
now
permitted
as
``
Y
``
in
``
raise
X
from
Y
``
..
versionadded
::
3.3
The
``
__suppress_context__
``
attribute
to
suppress
automatic
display
of
the
exception
context
..
_break
:
...
...
Misc/ACKS
Dosyayı görüntüle @
763557ea
...
...
@@ -965,6 +965,7 @@ David Marek
Doug Marien
Sven Marnach
Alex Martelli
Dennis Mårtensson
Anthony Martin
Owen Martin
Sidney San Martín
...
...
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