I guess what you're trying to do is split a date and put it in a list. This is what works for me:
>>> date = "28-08-2011".split("-")
>>> for i, num in enumerate(date):
... date[i] = int(num, 10) # changes octal to decimal, thus losing the prefix 0
...
>>> date
[28, 8, 2011]