The command line usage from 'python -h' certainly strongly suggests there is no such equivalent. Perl tends to make extensive use of '$_' . I don't think Python supports any similar concept, thereby making Python equivalents of the Perl one-liners much harder.