Creating stateful blocks from Python classes
============================================

|towrite|


.. literalinclude:: tutorial10_blocks.py
   :language: python

.. literalinclude:: tutorial10_stateful_blocks.pg
   :language: ruby
