1. 03 Aug, 2004 3 commits
  2. 02 Aug, 2004 27 commits
  3. 01 Aug, 2004 5 commits
  4. 31 Jul, 2004 5 commits
    • Tim Peters's avatar
      list_ass_slice(): Document the obscure new intent that deleting a slice · 8fc4a916
      Tim Peters authored
      of no more than 8 elements cannot fail.
      
      listpop():  Take advantage of that its calls to list_resize() and
      list_ass_slice() can't fail.  This is assert'ed in a debug build now, but
      in an icky way.  That is, you can't say:
      
      	assert(some_call() >= 0);
      
      because then some_call() won't occur at all in a release build.  So it
      has to be a big pile of #ifdefs on Py_DEBUG (yuck), or the pleasant:
      
              status = some_call();
              assert(status >= 0);
      
      But in that case, compilers may whine in a release build, because status
      appears unused then.  I'm not certain the ugly trick I used here will
      convince all compilers to shut up about status (status is always "used" now,
      as the first (ignored) clause in a comma expression).
      8fc4a916
    • Tim Peters's avatar
      Whitespace normalization. · c0cbc861
      Tim Peters authored
      c0cbc861
    • Tim Peters's avatar
      Be more careful about reverting mutuations to system-wide (sys) variables. · 579f7355
      Tim Peters authored
      This fixes 15 spurious test failures on Windows (probably all due to
      the test leaving a wrong path in sys.argv[0], which then prevented
      regrtest.py from finding the expected-output files for tests running
      after test_optparse).
      579f7355
    • Greg Ward's avatar
      Mention upgrade of optparse to Optik 1.5a1. · 9c8fe1a9
      Greg Ward authored
      9c8fe1a9
    • Greg Ward's avatar
      Upgrade optparse module and tests to Optik 1.5a1: · eba20e60
      Greg Ward authored
        * add expansion of default values in help text: the string
          "%default" in an option's help string is expanded to str() of
          that option's default value, or "none" if no default value.
        * bug #955889: option default values that happen to be strings are
          now processed in the same way as values from the command line; this
          allows generation of nicer help when using custom types.  Can
          be disabled with parser.set_process_default_values(False).
        * bug #960515: don't crash when generating help for callback
          options that specify 'type', but not 'dest' or 'metavar'.
        * feature #815264: change the default help format for short options
          that take an argument from e.g. "-oARG" to "-o ARG"; add
          set_short_opt_delimiter() and set_long_opt_delimiter() methods to
          HelpFormatter to allow (slight) customization of the formatting.
        * patch #736940: internationalize Optik: all built-in user-
          targeted literal strings are passed through gettext.gettext().  (If
          you want translations (.po files), they're not included with Python
          -- you'll find them in the Optik source distribution from
          http://optik.sourceforge.net/ .)
        * bug #878453: respect $COLUMNS environment variable for
          wrapping help output.
        * feature #988122: expand "%prog" in the 'description' passed
          to OptionParser, just like in the 'usage' and 'version' strings.
          (This is *not* done in the 'description' passed to OptionGroup.)
      eba20e60