General
Python |
Groovy |
|---|---|
| |
|
| |
|
| |
|
Lists
Python |
Groovy |
|---|---|
| |
|
| |
|
| |
|
Maps
Python |
Groovy |
|---|---|
| |
|
| |
|
| |
|
| |
|
| |
|
Ranges/Slices
Python |
Groovy |
|---|---|
| |
|
| |
|
| |
not represented as a data type but you can use |
| |
|
Object access
Python |
Groovy |
|---|---|
| |
|
| |
|
Labels
1 Comment
Hide/Show CommentsAug 24, 2007
Mike
These examples are wrong:
d.iterkeys()
d.itervalues()
k+1 for k,v in d.iteritems()
Should be:
d.keys()
d.values()
k for k,v in d.items()