Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)
int(x=0) -> int or long
int(x, base=10) -> int or long

Convert a number or string to an integer, or return 0 if no arguments
are given.  If x is floating point, the conversion truncates towards zero.
If x is outside the integer range, the function returns a long instead.

If x is not a number or if base is given, then x must be a string or
Unicode object representing an integer literal in the given base.  The
literal can be preceded by '+' or '-' and be surrounded by whitespace.(more...)

src/h/a/Havaiana-2.4.1/havaiana/__init__.py   Havaiana(Download)
from flask.ext.paginate import Pagination
 
from config import ITEMS_PER_PAGE, SECRET_KEY
from helpers import get_ojota_children, get_data_codes, get_form
from renderers import render_field
 
            # fiter only the items that will be shown in this page.
            first_item = (page - 1) * ITEMS_PER_PAGE
            last_item = first_item + ITEMS_PER_PAGE
            page_items = items[first_item:last_item]
            pagination = Pagination(total=len(items), page=page,
                search=False, record_name=cls.plural_name,
                per_page=ITEMS_PER_PAGE, alignment="centered")
            data_dict['pagination'] = pagination