[Tutor] spitshell for python

Alan Gauld alan.gauld at blueyonder.co.uk
Thu Sep 2 23:47:58 CEST 2004


> mapping in vi[m] that does ``:!sh -x %'' to test scripts, and I
would like
> to have the same think work for python as it now does for shell and
perl.
>
> The perl version starts out something like:
>
> #!/usr/local/bin/perl
> eval ' exec /usr/local/bin/perl -....'

I'm no perl hacker but does execfile() do what you need?

Alan G



More information about the Tutor mailing list