def acquire(self):
        """
        Acquire an object from the pool.

        @return: An object from the pool.
        """
        try:
            reusable = self.reusables.pop()
        except IndexError:
            self._expand(self.pool_size)
            reusable = self.reusables.pop()

        return reusable

        Acquire an object from the pool.

        @return: An object from the pool.
        
pypattyrn/creational/pool.py