News for hackers. Stuff that matters.
Re:Coderloop is the coder's gym by twymer on Monday November 08, 2010 @08:13PM (#1884845)
I was pretty excited to do some of this when I got home from work, but my preferred language (Python) is only supported in an ancient version (2.3.0).

I wasn't sure when this version was released so I decided to look it up, 2.3.0 dates back to 2003.

Re:Coderloop is the coder's gym by federicof on Tuesday November 09, 2010 @02:13AM (#1885683)
Hi, sorry for that! What is the most common version used currently?
Re:Coderloop is the coder's gym by twymer on Tuesday November 09, 2010 @06:07AM (#1886076)
Python 2.7 is the newest 2.x release, so it's what I imagine most people who haven't taken the plunge to Python 3 would be using.
Re:Coderloop is the coder's gym by federicof on Tuesday November 09, 2010 @09:05AM (#1886406)
Thanks, I've added the upgrade to our backlog, stay tuned!
Re:Coderloop is the coder's gym by bmelton on Tuesday November 09, 2010 @09:07AM (#1886413)
Yes, this. I was happily coding and kept failing the (very) simple "Shazoo" challenge because either 2.3 or your interpreter doesn't understand the "if __name__ == '__main__'" logic for Python portability. I'm ashamed to say that it took three tries before I just took that out and submitted a program that, while inferior, passed.
Re:Coderloop is the coder's gym by federicof on Tuesday November 09, 2010 @01:28PM (#1887396)
I'm sorry for that, we're going to add support for 2.7 very soon!
Re:Coderloop is the coder's gym by bmelton on Tuesday November 09, 2010 @06:38PM (#1888441)
Upon further reflection, it may be that you're loading the code dynamically or something (and not just running it as a command line application) or something that caused the __main__ not to trigger.

Once I understood the constraint, I was fine. It's a neat little app, and for somebody who's never had an actual job as a programmer, some of these exercises I feel are things that I should at least know the pattern.

I'm digging it.

Re:Coderloop is the coder's gym by federicof on Tuesday November 09, 2010 @06:51PM (#1888493)
Thanks! The code is executed by an "host" script with a system call, not sure if this breaks the __main__ function in python. We will look into that issue. :)