If you benefit from web2py hope you feel encouraged to pay it forward by contributing back to society in whatever form you choose!


  • 0
    web2pyslices  13 years ago
    To answer my second question, it is necessary to place a blank line after the last expected input for doctest to work properly. So my simple example became:
    def simple_test():
        '''
    >>> simple_test()
    'hello world'
    
        '''
        return ('hello world')
    
    Note the blank line before the closing '''

Commented on:

Based on http://www.web2pyslices.com/slices/take_slice/67

Hosting graciously provided by:
Python Anywhere