Re: [Pyunit-interest] comments on PyUnit
Brought to you by:
purcell
From: Jim V. <Jim...@no...> - 2001-04-23 15:03:40
|
Steve Purcell wrote: ..... > > I might be alone in thinking that one of the crappy things about Perl > compared to Python is its plethora of command line switches, but I've never > thought about Python's command line switches at all, and I'm happy about that. Me too! > > > Wouldn't the best (and simplest) option be to define '-O' to mean > '__debug__ == 0 and assertions are disabled', and let the interpreter > take care of optimisation? Java works that way: it declares that 'final' and > 'private' methods *may* be optimised away, but allows the user no control > of optimisation. (Other than offering a don't-blow-my-foot-off option > '-nojit', of course.) This seems reasonable to me also. > > > If the interpreter needs to be told what optimisations to make by the > user, there is something wrong, and opportunities are then rife for code to > appear that *requires* certain optimisations. Next, there'd have to be > pragmas, right? > > -Steve > > -- > Steve Purcell, Pythangelist > Get testing at http://pyunit.sourceforge.net/ > Any opinions expressed herein are my own and not necessarily those of Yahoo > > _______________________________________________ > Pyunit-interest mailing list > Pyu...@li... > http://lists.sourceforge.net/lists/listinfo/pyunit-interest |