Did I find the right examples for you? yes no

All Samples(3)  |  Call(0)  |  Derive(0)  |  Import(3)
list() -> new empty list
list(iterable) -> new list initialized from iterable's items

src/p/y/pypi-mirrors-HEAD/daily.py   pypi-mirrors(Download)
from mirrorlib import find_out_of_date_mirrors
from config import MIRRORS
from notification import (update_twitter_status, send_warning_email,
                         send_status_email)
 
def daily_out_of_date_mirror_check():
    """ run everything """
    results = find_out_of_date_mirrors(mirrors=MIRRORS)
 
    if results:

src/p/y/pypi-mirrors-HEAD/pypi_mirrors.py   pypi-mirrors(Download)
                   get_location_for_mirror, store_json_data)
 
from config import MIRRORS
 
def process_results(results):
def run():
    """ run everything """
    results = mirror_statuses(mirrors=MIRRORS)
    if results:
        time_now = results[0].get('time_now', None)

src/p/y/pypi-mirrors-HEAD/test_run.py   pypi-mirrors(Download)
from utils import (find_number_of_packages)
 
from config import MIRRORS
 
def process_results(results):
def run():
    """ run everything """
    results = mirror_statuses(mirrors=MIRRORS)
    if results:
        time_now = results[0].get('time_now', None)