Skip to main content
13 events
when toggle format what by license comment
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Jan 7, 2015 at 4:59 comment added undergroundmonorail @ale reverse a list with [::-1]. it's [start:stop:step]
Nov 14, 2014 at 7:14 comment added Alex Van Liew @Vi. Ah, indeed. [6:12] would do it. What I haven't gotten the hang of is extended slicing; you can do some really weird stuff like [::6] and I have no idea what it does but you can do it. I think you can do [-1:] to reverse a list, although reverse() is a lot clearer.
Nov 14, 2014 at 2:13 comment added Vi. 12 is for [6:12]. I'm not too Pythonic yet... Original solutions are now mentioned in the question.
Nov 14, 2014 at 2:05 comment added Vi. Congratulations: from __future__ import braces is the answer.
Nov 13, 2014 at 20:24 history edited Alex Van Liew CC BY-SA 3.0
deleted 36 characters in body
Nov 13, 2014 at 20:17 history edited Alex Van Liew CC BY-SA 3.0
deleted 36 characters in body
Nov 13, 2014 at 20:10 history edited Alex Van Liew CC BY-SA 3.0
added 308 characters in body
Nov 13, 2014 at 5:10 comment added Alex Van Liew Yeah, me too. I tried a lot of other things, like except StandardError (two too many ds, and one too many rs) and I managed to get an extra x removed by switching to compile() instead of exec(). I also tried stuff like sys.last_value or sys.exc_info() but still nothing.
Nov 13, 2014 at 2:31 comment added Sp3000 That's about what I had too :/ pretty sure from __future__ import braces was the intended idea.
Nov 13, 2014 at 2:17 history edited Alex Van Liew CC BY-SA 3.0
added 51 characters in body
Nov 13, 2014 at 1:42 review First posts
Nov 13, 2014 at 5:35
Nov 13, 2014 at 1:41 history answered Alex Van Liew CC BY-SA 3.0