Tag: python

  • git commit / darcs record

    I’ve been working wit git lately but I have also missed the darcs user interface. I honestly think the darcs user interface is the best I’ve ever seen, it’s such a joy to record/push/pull (when darcs doesn’t eat your cpu) 🙂 I looked at git add –interactive because it had hunk-based commit, a pre-requisite for…

  • 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…