All pastes #58331 Raw Edit

Someone

public text v1 · immutable
#58331 ·published 2006-05-23 11:21 UTC
rendered paste body
    def test_slash_add(self):
        slash = '/'
        left = 'a'
        right ='b'
        for x in range(10000):
            path = left + '/' + right

    def test_slash_join(self):
        slash = '/'
        left = 'a'
        right ='b'
        for x in range(10000):
            path = slash.join((left, right))

    def test_slash_percent(self):
        slash = '%s/%s'
        left = 'a'
        right ='b'
        for x in range(10000):
            path = slash % (left, right)