getopt code NameError exception on

Michael Torrie torriem at
Sat Jul 18 06:49:52 CEST 2009

LoD MoD wrote:
> In this instance the trackback was somewhat unhelpful.There problem was
> here:
>            file = open(filename, 'r')
> should be
>            file = open(a, 'r')
> args should be passed within the getopt riff

Well given the code you posted, this little "problem" you mention has
nothing to do with the traceback.  The code (as you posted it) still
does not define "process" anywhere.  Seems helpful enough to me.  If
you're not importing it from somewhere, then saying "it's defined
elsewhere" is still an error!

More information about the Python-list mailing list