I love how the story is revealing itself. I am not planning much, but many possibilities are popping into my head as I start to make connections in the story. Partly i wonder if i should avoid them, maybe they are too obvious since i thought of them just from what i’ve written? I don’t know. I’ll probably run with it, I need the material, after all.
What is Roshyn after, anyway?
Daily Goal: 1666
Today: 2028
Total: 4038
Remaining: 45962
Remaining Daily: 1584
At a small suggestion in #python, I wrote up a simple module that allows the use of many python statements in places requiring statements. This post serves as the announcement and documentation. You can find the release here . The pattern is the statement's keyword appended with a single underscore, so the first, of course, is print_. The example writes 'some+text' to an IOString for a URL query string. This mostly follows what it seems the print function will be in py3k. print_("some", "text", outfile=query_iostring, sep="+", end="") An obvious second choice was to wrap if statements. They take a condition value, and expect a truth value or callback an an optional else value or callback. Values and callbacks are named if_true, cb_true, if_false, and cb_false. if_(raw_input("Continue?")=="Y", cb_true=play_game, cb_false=quit) Of course, often your else might be an error case, so raising an exception could be useful
Comments