pysyncobj/batteries.py
def put(self, item):
        """Put an item into the queue.
        True - if item placed in queue.
        False - if queue is full and item can not be placed."""
        if self.__maxsize and len(self.__data) >= self.__maxsize:
            return False
        self.__data.append(item)
        return True
def put(self, item):
        if self.__maxsize and len(self.__data) >= self.__maxsize:
            return False
        self.__data.append(item)
        return True
def put ( self , item ) : if self . __maxsize and len ( self . __data ) >= self . __maxsize : return False self . __data . append ( item ) return True
Put an item into the queue.
        True - if item placed in queue.
        False - if queue is full and item can not be placed.
Put an item into the queue . True - if item placed in queue . False - if queue is full and item can not be placed .