Month: January 2006

  • Fun with python

    Fun python snippets Here is a short list of python WTF’s i often come across in my own code, debugging those is quite hard.. Tuples are immutable ? a = ([],[]) try: # Modifying a tuple ? a[0] += [1] except: pass print a Weird list references: a = [[None]*4]*3 a[0][0] = 1 print a…

  • Stock Trading, yay !

    On stock trading Stock trading is fun.. well, when you make money of course. There are days when you wish you didn’t buy that crappy stock, today it’s intel. They released apparently bad numbers yesterday and took the plunge: Uh oh ! Invest Applet This leads me to the introduction of Invest, a replacement/companion for…