top | item 3582254

(no title)

ackdesha | 14 years ago

I like the idea, but what version of Python is supported? It seems that some operations are not supported. On the first challenge it didn't like the `sorted` built-in or allow iteration over a str object. I ended up solving the challenge, but in a way that I would never use in real application, i.e., not idiomatic Python. It should be clearer what language features are allowed.

discuss

order

abhaga|14 years ago

It didn't like the xrange function. Also doesn't seem to like the generator expressions.

bytesong|14 years ago

It doesn't seem to like the map function either. List comprehensions, which seem to work, could be used instead but it would be nice to know which features are disabled/not supported before starting to code.

resurrection|14 years ago

List comprehensions worked but reduce did not. Had to resort to for loops.