A little disappointed so far

Robin Munn rmunn at pobox.com
Mon May 19 11:42:38 EDT 2003


Graham Nicholls <graham at rockcons.co.uk> wrote:
> Jordan Krushen wrote:
> 
> 
>> Have you looked at Optik?
>> 
>> http://optik.sourceforge.net/
>> 
>> J.
> I am going to....

One very good reason for using Optik is that it's going into the
standard Python library starting in release 2.3 (currently in beta), as
the optparse module. So all you'll have to do is something like this:

    try:
        import optparse
    except ImportError:
        # Python 2.2 or earlier
        import optik
        optparse = optik

and you're all set.

Caution: 2.3 is still in beta, so it's (remotely) possible that some
module or function names will change before the final release. It's
possible that the API for optparse will be subtly different from that of
Optik, in which case the above code won't work as-is. Caveat lector.

-- 
Robin Munn <rmunn at pobox.com>
http://www.rmunn.com/
PGP key ID: 0x6AFB6838    50FF 2478 CFFB 081A 8338  54F7 845D ACFD 6AFB 6838




More information about the Python-list mailing list