Perhaps you could explain what you mean by "$ does the right thing".wtf is wrong with you?
(I mean, you do know under what circumstances $ matches a newline character when used without modifiers, right? So why do you keep behaving like a reddit commenter?)
-- http://mail.python.org/mailman/listinfo/python-list