Did this last night, after I stayed too late at a friend's house and thought there was a night bus. Turns out there wasn't. It was only about a mile and a half and it was about 1am. Quite a lot of cars still driving around and I was walking mostly on main roads, which were lit, through non-dodgy area. I felt pretty safe.
Now wondering whether maybe it wasn't a bit reckless (my parents, e.g., would freak if they knew I'd done it) but also know that statistically I'm far more likely to be attacked by someone I know... Would you walk by yourself at night in a city?