Did I find the right examples for you? yes no

All Samples(10)  |  Call(6)  |  Derive(0)  |  Import(4)

src/c/o/cogent-1.5.3/cogent/seqsim/searchpath.py   cogent(Download)
 
from random import shuffle
from cogent.util.misc import toString, makeNonnegInt
 
__author__ = "Amanda Birmingham"
    def __str__(self):
        """Create a human-readable representation of object."""
        return toString(self)
    #end __str__
 
    def __str__(self):
        """Create a human-readable representation of object."""
        return toString(self)
    #end __str__ 
 

src/p/y/pycogent-HEAD/cogent/seqsim/searchpath.py   pycogent(Download)
 
from random import shuffle
from cogent.util.misc import toString, makeNonnegInt
 
__author__ = "Amanda Birmingham"
    def __str__(self):
        """Create a human-readable representation of object."""
        return toString(self)
    #end __str__
 
    def __str__(self):
        """Create a human-readable representation of object."""
        return toString(self)
    #end __str__ 
 

src/c/o/cogent-1.5.3/tests/test_util/test_misc.py   cogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,
                self.bar = 5
        exp = 'bar: 5'
        obs = toString(foo())
        self.assertEqual(obs, exp)
 

src/p/y/pycogent-HEAD/tests/test_util/test_misc.py   pycogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,
                self.bar = 5
        exp = 'bar: 5'
        obs = toString(foo())
        self.assertEqual(obs, exp)