[{"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674824.8602891, "message": "(since comprehended tuples are generator-built, and aren't indexable naturally).", "group_id": 292, "id": 211940}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674893.187475, "message": "That is just a generator expression", "group_id": 292, "id": 211955}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674901.5549979, "message": "just like (1) isn't a tuple either", "group_id": 292, "id": 211957}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674998.24246, "message": "the tuple() constructor just accepts any iterable", "group_id": 292, "id": 211969}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298675003.162106, "message": "which includes a generator expr", "group_id": 292, "id": 211970}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674883.68292, "message": "(x for x in xrange(5))", "group_id": 292, "id": 211952}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674923.118346, "message": "oh, that's an interesting point. I guess my mental model has been flawed.", "group_id": 292, "id": 211959}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298675020.599175, "message": "but the model breaks down when I try to index into it.. I suppose the tuple() constructor makes perfect sense.. since it'll use the generator, so it's not like it's creating a list and then copying it.", "group_id": 292, "id": 211973}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674853.0269439, "message": "right.. but now I've copied the list twice, no?", "group_id": 292, "id": 211949}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298675026.9892399, "message": "perfect. I'm a doofus. thanks, sir :)", "group_id": 292, "id": 211974}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674969.9889729, "message": "you just have to wrap the expr in () to resolve syntax ambiguity", "group_id": 292, "id": 211964}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674842.2324669, "message": "tuple(x for x in xrange(5))?", "group_id": 292, "id": 211944}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298675104.5972879, "message": "its just more generic than that now", "group_id": 292, "id": 211978}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298675097.8645959, "message": "it is somewhat confusing since generator exprs grew out of the list comprehension syntax", "group_id": 292, "id": 211977}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674788.7732539, "message": "This is more of a SO question, but I thought I'd try having a more real-time conversation here... so my question is.. is there a nice way to create an indexable tuple via comprehension?", "group_id": 292, "id": 211936}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674972.334708, "message": "I take (x for x in range(5)) as a comprehension that gives me an immutable sequence... which a generator expression I suppose does exactly.. I guess I got that confused with the idea of a comprehension-created-tuple", "group_id": 292, "id": 211966}, {"user_id": 3580, "stars": [], "topic_id": 9164, "date_created": 1298674846.3783989, "message": "I know I could always wrap a list comprehension in a...", "group_id": 292, "id": 211945}, {"user_id": 1736, "stars": [], "topic_id": 9164, "date_created": 1298674871.2524979, "message": "Not sure what you mean by \"tuple comprehension\".", "group_id": 292, "id": 211951}]