argparse zero-length switch

Gregory Ewing greg.ewing at canterbury.ac.nz
Sun Oct 16 01:27:01 EDT 2011


Steven D'Aprano wrote:

> And it isn't like you gain any extra clarity or expressiveness, or even a
> major saving of typing! "-s" vs "@". You don't even save a key stroke: "@"
> requires two keystrokes, just as "-s" does.

Also keep in mind that not all keystrokes are equal. Someone
who uses all their fingers probably finds "-s" faster and
easier to type than "@". I certainly do.

-- 
Greg



More information about the Python-list mailing list