sync to Atlas repo

This commit is contained in:
Luciano Ramalho
2014-12-06 15:38:22 -02:00
parent 2f495627fb
commit b38e6fc5f2
7 changed files with 72 additions and 43 deletions

View File

@@ -1,17 +1,12 @@
from abc import ABC, abstractmethod
import abc
class Tombola(abc.ABC): # <1>
class Tombola(ABC): # <1>
@abstractmethod
def __init__(self, iterable): # <2>
"""New instance is loaded from an iterable."""
@abstractmethod
def load(self, iterable):
@abc.abstractmethod
def load(self, iterable): # <2>
"""Add items from an iterable."""
@abstractmethod
@abc.abstractmethod
def pick(self): # <3>
"""Remove item at random, returning it.