[issue10506] argparse execute system exit in python prompt

2010-11-22 Thread Tarsis Azevedo
New submission from Tarsis Azevedo tarsis.azev...@gmail.com: 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) parser.parse_args(['-i

[issue9509] argparse FileType raises ugly exception for missing file

2010-11-21 Thread Tarsis Azevedo
Tarsis Azevedo tarsis.azev...@gmail.com 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

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

2010-11-20 Thread Tarsis Azevedo
Tarsis Azevedo tarsis.azev...@gmail.com 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