Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 18a499d

Browse files
committed
Two nits.
1 parent 9a37159 commit 18a499d

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

Doc/library/constants.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ A small number of constants live in the built-in namespace. They are:
88
.. note::
99

1010
:data:`None`, :data:`False`, :data:`True` and :data:`__debug__` cannot be
11-
reassigned, so they can be considered "true" constants.
11+
reassigned (assignments to them raise :exc:`SyntaxError`), so they can be
12+
considered "true" constants.
1213

1314
.. XXX False, True, None are keywords too
1415

Doc/reference/simple_stmts.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ The simple form, ``assert expression``, is equivalent to ::
290290
The extended form, ``assert expression1, expression2``, is equivalent to ::
291291

292292
if __debug__:
293-
if not expression1: raise AssertionError, expression2
293+
if not expression1: raise AssertionError(expression2)
294294

295295
.. index::
296296
single: __debug__

0 commit comments

Comments
 (0)