[issue8911] regrtest.main should have a test skipping argument

2010-11-20 Thread Tarsis Azevedo
Tarsis Azevedo added the comment: Hi all, I followed from 1 to 5 steps of jerry's comment and removed a recursive import I didnt get it. The patch is attached. -- keywords: +patch nosy: +Tarsis.Azevedo Added file: http://bugs.python.org/file19697/issue8911

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Tarsis Azevedo
Tarsis Azevedo added the comment: Hi Doug, I catched the IOError exception and used the error function of ArgumentParser class to return a beautful error message. -- keywords: +patch nosy: +Tarsis.Azevedo Added file: http://bugs.python.org/file19749/issue9509.diff

[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread Tarsis Azevedo
New submission from Tarsis Azevedo : Hi all, when I use argparse in python prompt, and raise a exception, as the code below: >>> import argparse >>> parser = argparse.ArgumentParser() >>> parser.add_argument('-i' type=int) >>>