
| Key: |
BOO-446
|
| Type: |
Improvement
|
| Status: |
Open
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Arron Washington
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
Allow for functionality like,
def foo(a, b):
print a, b
vars = (1, 2)
foo(*vars)
#prints 1, 2
Also allow for functionality like:
def foo(a, b, *args):
print "${a}, ${b} were simple arguments"
print "${join(args)} were variable arguments!"
vars = (1, 2, 3, 4)
foo(*vars)
#prints 1, 2 were simple arguments
#print 3, 4 were variable arguments!
|
|
Description
|
Allow for functionality like,
def foo(a, b):
print a, b
vars = (1, 2)
foo(*vars)
#prints 1, 2
Also allow for functionality like:
def foo(a, b, *args):
print "${a}, ${b} were simple arguments"
print "${join(args)} were variable arguments!"
vars = (1, 2, 3, 4)
foo(*vars)
#prints 1, 2 were simple arguments
#print 3, 4 were variable arguments! |
Show » |
| There are no comments yet on this issue.
|
|