Push item to the chain.
14070
def push(self, item, *, index=None):
        
        if index is None:
            self.__list.append(item)
        else:
            self.__list.insert(index, item)
        name = getattr(item, 'name', None)
        if name is not None:
            self.__dict[name] = item
264554
def move_up(self):
        """"""
        if self.current_item.parent is not None:
            self.current_item = self.current_item.parent

        for f in self._hooks["up"]:
            f(self)
        if self.current_item is self.root:
            for f in self._hooks["top"]:
                f(self)
        return self
476095
def push(self, x):
        
        if isinstance(x, Frame):
            frame = x
        else:
            frame = Frame(x)
        self.stack.append(frame)
        log.debug('push: (%s)\n%s', Repr(frame), Repr(self.stack))
        return frame
466371
def add(self, item):
        """"""
        if item in self._set:
            self._fifo.remove(item)
        elif len(self._set) == self.max_items:
            self._set.remove(self._fifo.pop(0))
        self._fifo.append(item)
        self._set.add(item)
595475
def push(item, remote_addr, trg_queue, protocol=u'jsonrpc'):
    '''  '''
    if protocol == u'jsonrpc':
        try:
            server = Server(remote_addr, encoding=_c.FSQ_CHARSET)
            return server.enqueue(item.id, trg_queue, item.item.read())
        except Exception, e:
            raise FSQPushError(e)

    raise ValueError('Unknown protocol: {0}'.format(protocol))
1137312
function ensureArrayAndPush(object, key, value) {
            if (!Array.isArray(object[key])) {
                object[key] = [];
            }
            object[key].push(value);
        }
429412
def push(self, item, priority=None):
        
        priority = item if priority is None else priority
        node = PriorityQueueNode(item, priority)
        for index, current in enumerate(self.priority_queue_list):
            if current.priority < node.priority:
                self.priority_queue_list.insert(index, node)
                return
        # when traversed complete queue
        self.priority_queue_list.append(node)
362458
def put (self, item):
        
        with self.mutex:
            self._put(item)
            self.not_empty.notify()
1374360
def append(self, item):
        
        return self._client.rpush(self.key_prefix, self._dumps(item))
2130
public synchronized void push(@Nullable T item) {
        if( waiting == null ) {
            throw new IllegalStateException("Invalid attempt to add an item to a completed list.");
        }
        if( filter != null ) {
            try {
                if( !filter.filter(item) ) {
                    return;
                }
            }
            catch( Throwable t ) {
                logger.error("[" + this + "] Error filtering " + item + ": " + t.getMessage());
                Exception e;
                
                if( t instanceof Exception ) {
                    e = (Exception)t;
                }
                else {
                    e = new RuntimeException(t);
                }
                setLoadException(e);
                return;
            }
        }
        waiting.add(item);
        lastTouch = System.currentTimeMillis();
        notifyAll();
    }
61766
private void pushState(Node<K,V>[] t, int i, int n) {
            TableStack<K,V> s = spare;  // reuse if possible
            if (s != null)
                spare = s.next;
            else
                s = new TableStack<K,V>();
            s.tab = t;
            s.length = n;
            s.index = i;
            s.next = stack;
            stack = s;
        }
1246689
def do(self, fn, message=None, *args, **kwargs):
        
        self.items.put(ChainItem(fn, self.do, message, *args, **kwargs))
        return self
433960
function put(item, force) {
				if (!callback) {
						if (max >= 0 && q.length >= max && !force) return false;
						q.push(item);
					} else {
						var cb = callback;
						callback = null;
						exports.setImmediate(function () {
							cb(err, item);
						});
					}
				return true;
			}
523289
def add(self, item):
        ""
        for pos in self._hashes(item):
            self.hash |= (2 ** pos)
784098
public function push($key, $value = null)
    {
        if (is_null($value)) {
            $this->items[] = $key;

            return;
        }

        $items = $this->get($key);

        if (is_array($items) || is_null($items)) {
            $items[] = $value;
            $this->set($key, $items);
        }
    }
1316366
def push(self, stream, value):
        

        if not self.matches(stream):
            raise ArgumentError("Attempting to push reading to stream walker that does not match", selector=self.selector, stream=stream)

        self.reading = value
925672
def push(node)
      node = Node(node)
      @head ||= node

      if @tail
        @tail.next = node
        node.prev = @tail
      end

      @tail = node

      @length += 1
      self
    end