Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #67098
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!xlned.com!feeder3.xlned.com!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rodperson@rodperson.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.017 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'subject:Python': 0.06; 'upgraded': 0.07; 'rod': 0.09; 'subject:command': 0.09; 'subject:parsing': 0.09; 'subject:using': 0.09; 'python': 0.11; '2.7': 0.14; 'subject:options': 0.16; 'wrote:': 0.18; 'module': 0.19; 'command': 0.22; 'feb': 0.22; 'machine': 0.22; 'cc:addr:gmail.com': 0.22; 'install': 0.23; 'header:User-Agent:1': 0.23; 'cc:2**0': 0.24; 'cc:no real name:2**0': 0.24; 'script': 0.25; 'subject: : ': 0.26; 'header:In-Reply-To:1': 0.27; 'host': 0.29; '25,': 0.31; 'run': 0.32; 'running': 0.33; 'older': 0.33; 'subject:the': 0.34; 'could': 0.34; 'received:66': 0.35; 'something': 0.35; 'but': 0.35; 'add': 0.35; 'there': 0.35; 'version': 0.36; '2.6': 0.36; 'possible': 0.36; 'starting': 0.37; 'machines': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'eventually': 0.60; 'from:no real name:2**0': 0.61; 'new': 0.61; 'love': 0.65; 'dont': 0.67; 'default': 0.69; '2.7.': 0.84; 'freebsd': 0.84; 'otten': 0.84 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Date | Wed, 26 Feb 2014 09:32:28 -0500 |
| From | rodperson@rodperson.com |
| To | python-list@python.org |
| Subject | Re: Python : parsing the command line options using optparse |
| In-Reply-To | <CACT3xuUGtsER0B3xwAB2CqQ5Zb=v72w8+DQkaYz681xeSeJ2CQ@mail.gmail.com> |
| References | <CACT3xuWuV8omgE6oV0PNGfwdf-yrO3KPbjHtu=B+NHNuOhA_Jw@mail.gmail.com> <leig4s$ri5$1@ger.gmane.org> <CACT3xuUGtsER0B3xwAB2CqQ5Zb=v72w8+DQkaYz681xeSeJ2CQ@mail.gmail.com> |
| X-Sender | rodperson@rodperson.com |
| User-Agent | RoundCube Webmail/0.8.1 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.7396.1393425495.18130.python-list@python.org> (permalink) |
| Lines | 28 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1393425495 news.xs4all.nl 2977 [2001:888:2000:d::a6]:55668 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:67098 |
Show key headers only | View raw
On 2014-02-26 04:30, Ganesh Pal wrote:
> On Tue, Feb 25, 2014 at 9:55 PM, Peter
> Otten <__peter__@web.de> wrote:
>
>> As you are just starting I recommend that you use argparse instead of
> optparse.
>
> I would love to use argparse but the script that I plan to write
> has to run on host machines that Python 2.6
>
> I have freebsd clients with python 2.6 dont want to install
> python new version on all the host machine which will be eventually
> upgraded to 2.7 .
>
> I wanted know if I could use argparse with python 2.6 and is it
> possible to add something like #pkg_add -r install
> python-argparse and install python argparse module before I use it.
They must be running an older version of FreeBSD since the default
version of python is 2.7.
There is a FreeBSD package for argparse, the command would be something
like
pkg_add -r install py26-argparse
Rod
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python : parsing the command line options using optparse rodperson@rodperson.com - 2014-02-26 09:32 -0500
csiph-web