Did I find the right examples for you? yes no

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

src/c/o/cogent-1.5.3/cogent/core/moltype.py   cogent(Download)
from cogent.core.alphabet import CharAlphabet, Enumeration, Alphabet, \
    AlphabetError, _make_complement_array
from cogent.util.misc import FunctionWrapper, add_lowercase, iterable, if_
from cogent.util.transform import allchars, keep_chars
from cogent.data.molecular_weight import DnaMW, RnaMW, ProteinMW

src/p/y/pycogent-HEAD/cogent/core/moltype.py   pycogent(Download)
from cogent.core.alphabet import CharAlphabet, Enumeration, Alphabet, \
    AlphabetError, _make_complement_array
from cogent.util.misc import FunctionWrapper, add_lowercase, iterable, if_
from cogent.util.transform import allchars, keep_chars
from cogent.data.molecular_weight import DnaMW, RnaMW, ProteinMW

src/c/o/cogent-1.5.3/cogent/app/util.py   cogent(Download)
from cogent.app.parameters import Parameter, FlagParameter, ValuedParameter,\
    MixedParameter,Parameters, _find_synonym, is_not_None, FilePath
from cogent.util.misc import if_
from cogent.util.transform import cartesian_product
from cogent.util.misc import app_path

src/p/y/pycogent-HEAD/cogent/app/util.py   pycogent(Download)
from cogent.app.parameters import Parameter, FlagParameter, ValuedParameter,\
    MixedParameter,Parameters, _find_synonym, is_not_None, FilePath
from cogent.util.misc import if_
from cogent.util.transform import cartesian_product
from cogent.util.misc import app_path

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,
    def test_if_(self):
        """implementation of c-like tertiary operator"""
        exp = 'yay'
        obs = if_(True, 'yay', 'nay')
        self.assertEqual(obs, exp)
        exp = 'nay'
        obs = if_(False, 'yay', 'nay')

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,
    def test_if_(self):
        """implementation of c-like tertiary operator"""
        exp = 'yay'
        obs = if_(True, 'yay', 'nay')
        self.assertEqual(obs, exp)
        exp = 'nay'
        obs = if_(False, 'yay', 'nay')