def pastes_get_recent(amount=5): """Return information dict (see `getPaste`) about the last `amount` pastes. """ amount = min(amount, 20) return [x.to_xmlrpc_dict() for x in Paste.find_all().limit(amount)]