Sha256: 4c7da6f41aca901b6011869a8dbbe5bd49a5094cdabfe7e0a9e71d8e90db1f87

Contents?: true

Size: 346 Bytes

Versions: 4

Compression:

Stored size: 346 Bytes

Contents

#!/usr/bin/env python

def iterate_list():
  for item in [ 1, 2, 3 ]:
    yield item

def identity(object):
  return object

def simple_callback(callback, value):
  return callback(value)

def simple_generator(callback):
  output = []
  for i in callback():
    output.append(i)
  return output

def named_args(arg1, arg2):
  return [arg1, arg2]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubypython-0.5.3 spec/python_helpers/basics.py
rubypython-0.5.2 spec/python_helpers/basics.py
rubypython-0.5.1 spec/python_helpers/basics.py
rubypython-0.5.0 spec/python_helpers/basics.py