[issue18033] Example for Profile Module shows incorrect method

2013-07-03 Thread Olivier Hervieu
Olivier Hervieu added the comment: Here is a fixed version for python2.7. Using StringIO instead of io module fixes the problem pointed by Ezio. The print_stats method dumps the stats either on sys.stdout if `Stats` class is declared without a stream specification or in the given stream

[issue4548] OptionParser : Weird comportement in args processing

2008-12-05 Thread Olivier Hervieu
New submission from Olivier Hervieu <[EMAIL PROTECTED]>: Hi guys.. i found something strange on the behavior of OptionParser If I have this sample code : import sys from optparse import OptionParser if __name__ == '__main__': parser = OptionParser() parser.add_o