Hello,

I am searching for a mechanism for sharing data across Examples sections
in docstrings within a class.  For instance:

class Foo:

    def foo(self):
        """Method foo title

        The example generating data below may be much more laborious.

        Examples
        --------
        >>> x = list("abc")  # may be very long and tedious to generate

        """
        pass

    def bar(self):
        """Method bar title

        Examples
        --------
        >>> # do something else with x from foo Example

        """
        pass


Thanks,
-- 
Seb
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to