Python is osm

May 06, 2008 13:40


This post is really only direct at Jason, so everyone who doesn't give a crap about programming can tune out, I guess.

I was writing some Python code that was parsing an xml file that had woe take data in. So each take looked like this:

I wanted to compile a list of all the guilds that had taken, so I created an array and wrote a loop. After ( Read more... )

Leave a comment

Comments 11

stuv May 6 2008, 23:34:59 UTC
IT IS SO BEAUTIFUL! :D

Too bad I can't tell what you just did D:

Reply

stuv May 6 2008, 23:41:40 UTC
PS Fix raptorsguild.com plz

Reply

rodolphe May 7 2008, 06:43:55 UTC
For contrast, the same code in php:

if( !(in_array(guild,$self->guilds)) )
array_push($self->guilds,guild);

And in javascript:

if( self.guilds.indexOf(guild) == -1)
self.guilds.push(guild);

Reply


vejiicakes May 7 2008, 00:31:57 UTC
WHAT DOES ANY OF THAT MEAN?

ARE YOU FIXING THE FORUM'S RAPTOR AIDS? (rAIDS?)

Reply

rodolphe May 7 2008, 06:45:21 UTC
see above reply to stuv :O

Reply

rodolphe May 7 2008, 06:45:41 UTC
wrt to forums, see reply to stuv and Anne.

Reply


raane May 7 2008, 02:44:51 UTC
Yeah. Fix it pls.

Reply

stuv May 7 2008, 06:22:23 UTC
We totally hijacked Rodo's post :O

Reply

rodolphe May 7 2008, 06:35:51 UTC
srsly D: I'll get to it when I'm done coding everything else I need to code D:

Reply

vejiicakes May 7 2008, 07:03:44 UTC
NO CURE FOR THE rAIDS!?? :C

Reply


Nice post! anonymous May 9 2008, 12:22:35 UTC
i am gonna show this to my friend, bro

Reply


Leave a comment

Up