Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(1)  |  Derive(0)  |  Import(2)

src/t/u/turnout_election_schemes-0.3/turnout_election_schemes/schemes/singletransferablevote/stv_round.py   turnout_election_schemes(Download)
from turnout_election_schemes.schemes.errors import FailedElectionError
from .candidate import Candidate
from .vote import Vote
 
class _Random(object):
    def choice(self, sequence):
        raise FailedElectionError()

src/t/u/turnout_election_schemes-0.3/turnout_election_schemes/schemes/singletransferablevote/scheme.py   turnout_election_schemes(Download)
from turnout_election_schemes.schemes.errors import FailedElectionError
from .candidate import Candidate
from .stv_round import Round, _Random
from .vote import Vote