Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Fix silly doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
jdemeyer committed Sep 5, 2014
1 parent cae4023 commit 3a21668
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/doc/en/developer/coding_in_cython.rst
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,11 @@ it will be caught by the next ``sig_check()``, the next ``sig_on()``
or possibly the next Python statement.
With the latter we mean that certain Python statements also
check for interrupts, an example of this is the ``print`` statement.
The following loop *can* be interrupted::
The following loop *can* be interrupted:

sage: cython('print "Hello"')
.. code-block:: python
sage: cython('while True: print "Hello"')
The typical use case for ``sig_check()`` is within tight loops doing
complicated stuff
Expand Down

0 comments on commit 3a21668

Please sign in to comment.