Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(0)  |  Derive(0)  |  Import(2)
tuple() -> empty tuple
tuple(iterable) -> tuple initialized from iterable's items

If the argument is a tuple, the return value is the same object.

src/d/j/django-metasettings-0.1.3/metasettings/settings.py   django-metasettings(Download)
from django.conf import settings
 
from .choices import (CURRENCY_CHOICES as BASE_CURRENCY_CHOICES,
                      CURRENCY_LABELS as BASE_CURRENCY_LABELS,
                      CURRENCY_BY_COUNTRIES as BASE_CURRENCY_BY_COUNTRIES)
DEFAULT_CURRENCY = getattr(settings, 'METASETTINGS_DEFAULT_CURRENCY', 'EUR')
 
CURRENCY_CHOICES = getattr(settings, 'METASETTINGS_CURRENCY_CHOICES', BASE_CURRENCY_CHOICES)
 
CURRENCY_LABELS = getattr(settings, 'METASETTINGS_CURRENCY_LABELS', BASE_CURRENCY_LABELS)

src/d/j/django-metasettings-0.1.3/metasettings/context_processors.py   django-metasettings(Download)
from .choices import CURRENCY_CHOICES, CURRENCY_LABELS
 
 
def base(request):
    return {
        'CURRENCY_CHOICES': CURRENCY_CHOICES,