Re: Fwd:Re: ANNOUNCE: Optik 1.4.1

Greg Ward <[email protected]> Sun, 27 Apr 2003 18:16:24 -0400
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
On 27 April 2003, John Machin said:
> What is the intended future relationship between Optik and 
> optparse?
> I have grabbed optparse (and textwrap) out of the Python 2.3 
> alpha distribution and started using optparse with Python 
> 2.2 
> [and am quite happy with it]. Would I be better off using 
> Optik?

If you install Optik 1.4.1 under Python 2.1.x or 2.2.x, these should be
exactly equivalent and behave exactly the same:

  from optik import OptionParser, ...
  from optparse import OptionParser, ...

because Optik 1.4.1 includes a dummy optparse.py module.

And, as of Python 2.3b1, this:

  from optparse import OptionParser, ...

should have exactly the same effect/behaviour as it does with Optik
1.4.1 under Python 2.1/2.2, because Python 2.3b1 shipped with an
optparse.py derived from Optik 1.4.1.

Therefore, I think the right thing to do is import from 'optparse' in
your code, and list "either Optik 1.4.1 or greater, or Python 2.3 or
greater" as one of your requirements.

Currently, there's no reason to install Optik separately under Python
2.3.

        Greg
-- 
Greg Ward <[email protected]>                         http://www.gerg.ca/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf