X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=0.7 required=5.0	tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
References: <4F15B83E.8040408@molconn.com> <20120117182328.GA3564@tishler.net>
Message-ID: <1326867877.92242.YahooMailNeo@web120705.mail.ne1.yahoo.com>
Date: Tue, 17 Jan 2012 22:24:37 -0800 (PST)
From: Rick Rankin <rick.rankin@yahoo.com>
Reply-To: Rick Rankin <rick.rankin@yahoo.com>
Subject: Re: argparse for cygwin python
To: Jason Tishler <jason@tishler.net>, "cygwin@cygwin.com" <cygwin@cygwin.com>
In-Reply-To: <20120117182328.GA3564@tishler.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q0I6OvPa000737





----- Original Message -----
> From: Jason Tishler <xxx@xxx>
> To: xxx@xxx
> Cc: 
> Sent: Tuesday, January 17, 2012 11:23 AM
> Subject: Re: argparse for cygwin python
> 
> On Tue, Jan 17, 2012 at 01:04:46PM -0500, LMH wrote:
>>  I have a python script and when I try to run it I get an error for no 
>>  such module, "ImportError: No module named argparse".
>> 
>>  [snip]
>> 
>>  Any suggestions?
> 
> See the following:
> 
>     http://docs.python.org/dev/library/argparse.html
> 
> argparse is not available until Python 3.2; Cygwin Python is 2.6.
> 

No, argparse is included as a standard package in Python 2.7. I use it all the time. It was introduced in Python 3.x, then backported, IIRC. I keep hoping Cygwin's python maintainer will update to at least 2.7 ;-)

--Rick


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


