On May 25, 3:07 am, Nirnimesh <[EMAIL PROTECTED]> wrote:
> I'm using optparse.OptionParser for parsing command line arguments.
>
> parser = optparse.OptionParser()
> parser.add_option("-x", "--xample", help="example",
> default="not
and would require
eliminating the "unwanted" variables.
print dir(options)
['__doc__', '__eq__', '__init__', '__module__', '__ne__', '__repr__',
'__str__', '_update', '_update_careful', '_update_loose',
'ensure_value', 'ex', 'read_file', 'read_module']
Any help would be greatly appreciated.
Nirnimesh
--
http://mail.python.org/mailman/listinfo/python-list
I'm using urllib2 module to fetch a URL from a server which understands
HTTP/1.1 only (no HTTP/1.0).
urllib2.urlopen() results in "urllib2.HTTPError: HTTP Error 505: HTTP
Version not supported".
How do I force urllib2 to use HTTP v1.1?
Regards,
Nirnimesh
--
http://mail.pyt
I want to extract emails from an mbox-type file which contains a number
of individual emails.
I tried the python mailbox and email modules individually, but I'm
unable to combine them to get what I want. Mailbox allows me to iterate
over all the mails but doesn't give me access the individual mess