Backslash Escapes

2011-12-25 Thread Felipe O
Hi all, Whenever I take any input (raw_input, of course!) or I read from a file, etc., any backslashes get escaped automatically. Is there any elegant way of parsing the backslashes as though they were written in a python string. The best I have so far right now goes like this: def

Property Abuse

2011-12-14 Thread Felipe O
Hi All, I was wondering what everyone's thought process was regarding properties. Lately I find I've been binging on them and have classes with 10 properties. While pylint doesn't complain (yet), it tends to be picky about keeping instance attribute counts low, so I figure there's something