2008-7-20
| 23:40 | Gulopine | as far as i can tell, just the test |
| 23:40 | Alex_Gaynor | If it's just the test, why not create the 2 strings seperately and than combine them |
| 23:41 | Gulopine | hrm, that's a definite idea |
| 23:42 | empty | or make the first arg self and pass a None. ewww |
| 23:42 | Alex_Gaynor | I'd just go with the string concatation |
| 23:42 | empty | :D |
| 23:42 | Gulopine | yeah, i'm testing that now |
| 23:44 | Gulopine | what the hell |
| 23:46 | Gulopine | oh |
| 23:46 | Gulopine | right |
| 23:46 | Gulopine | wait, no |
| 23:46 | Gulopine | not right |
| 23:46 | Gulopine does more digging | |
| 23:51 | Gulopine | hehe |
| 23:51 | Gulopine | explicit is better than implicit :) |
| 23:51 | Gulopine | i had it mostly fixed, but i was expecting if you returned a unicode from __str__, it'd coerce it to a str |
| 23:51 | Gulopine | since if you return a str from __unicode__, it coerces it to a unicode |
| 23:52 | Gulopine | so it turns out "data" was fine all along, and my own instance.data was producing the unicode object |
| 23:53 | Gulopine | hahahah, so now the whole thing works just fine |
| 23:53 | Gulopine | without having to do the string concatenation thing |
| 23:53 | Gulopine sighs | |
| 23:53 | Gulopine | thanks, you've been a great audience |
| 23:53 | Gulopine runs the full test suite again to see where he stands | |
Page 2 of 2
← Previous
(123 total)