Re: Re: [PATCH] %default keyword expansion

John Belmonte <[email protected]> Mon, 17 May 2004 00:39:47 -0400
Newsgroups gmane.comp.python.optik.user
Message-ID <[email protected]>
>         self.add_option(
>             '--delay',
>             type='duration',
>             # oops, default doesn't run through type checker
>             #default='5m',
>             default=60,
>             help='self destruct delay [default: %default]')

Also, I was intending to show that %default expansion isn't useful in 
this case, so this is what I meant to write:

         self.add_option(
             '--delay',
             type='duration',
             # oops, default doesn't run through type checker
             #default='5m',
             #help='self destruct delay [default: %default]')
             default=300,
             help='self destruct delay [default: 5m]')

-John


-- 
http:// ift ile.org/


-------------------------------------------------------
This SF.Net email is sponsored by: SourceForge.net Broadband
Sign-up now for SourceForge Broadband and get the fastest
6.0/768 connection for only $19.95/mo for the first 3 months!
http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click