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

All Samples(7)  |  Call(3)  |  Derive(0)  |  Import(4)
xrange(stop) -> xrange object
xrange(start, stop[, step]) -> xrange object

Like range(), but instead of returning a list, returns an object that
generates the numbers in the range on demand.  For looping, this is 
slightly faster than range() and more memory efficient.

src/b/a/bag-0.4.2/bag/show_progress.py   bag(Download)
                        unicode_literals)
from datetime import datetime, timedelta
from nine import range
 
 
def test_percentage():
    from time import sleep
    for index, item in ShowingPercentage(range(100), max=100, granularity=4):
        sleep(.5)
 
 
def test_progress():
    from time import sleep
    for index, item in ShowingProgress(range(100), seconds=4):

src/b/a/bag-0.4.2/bag/text.py   bag(Download)
import re
from datetime import datetime
from nine import basestring, str, range
 
 
def random_string(length, chars='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
                                'abcdefghijklmnopqrstuvwxyz'
                                '0123456789'):
    '''Returns a random string of some `length`.'''
    return ''.join((random.choice(chars) for i in range(length)))

src/n/i/nine-0.3.3/nine/test_nine.py   nine(Download)
    def test_import(self):
        from nine import (IS_PYTHON2, str, basestring, native_str,
            integer_types, class_types, range, range_list, reraise,
            iterkeys, itervalues, iteritems, map, zip, filter, input,
            implements_iterator, implements_to_string, implements_repr, nine,

src/n/i/nine-HEAD/nine/test_nine.py   nine(Download)
    def test_import(self):
        from nine import (IS_PYTHON2, str, basestring, native_str,
            integer_types, class_types, range, range_list, reraise,
            iterkeys, itervalues, iteritems, map, zip, filter, input,
            implements_iterator, implements_to_string, implements_repr, nine,