1. 12 Tem, 2007 1 kayıt (commit)
  2. 03 May, 2007 1 kayıt (commit)
  3. 19 Kas, 2006 1 kayıt (commit)
  4. 13 Agu, 2006 1 kayıt (commit)
  5. 29 Kas, 2003 2 kayıt (commit)
  6. 24 Kas, 2002 1 kayıt (commit)
  7. 12 Kas, 2002 1 kayıt (commit)
    • Neal Norwitz's avatar
      Fix SF # 635969, No error "not all arguments converted" · 80a1bf4b
      Neal Norwitz yazdı
      When mwh added extended slicing, strings and unicode became mappings.
      Thus, dict was set which prevented an error when doing:
      	newstr = 'format without a percent' % string_value
      
      This fix raises an exception again when there are no formats
      and % with a string value.
      80a1bf4b
  8. 11 Eki, 2002 1 kayıt (commit)
  9. 08 Agu, 2002 1 kayıt (commit)
  10. 28 Tem, 2002 1 kayıt (commit)
  11. 23 Tem, 2002 1 kayıt (commit)
    • Barry Warsaw's avatar
      Get rid of relative imports in all unittests. Now anything that · 04f357cf
      Barry Warsaw yazdı
      imports e.g. test_support must do so using an absolute package name
      such as "import test.test_support" or "from test import test_support".
      
      This also updates the README in Lib/test, and gets rid of the
      duplicate data dirctory in Lib/test/data (replaced by
      Lib/email/test/data).
      
      Now Tim and Jack can have at it. :)
      04f357cf
  12. 17 Agu, 2001 2 kayıt (commit)
  13. 12 Nis, 2001 2 kayıt (commit)
    • Tim Peters's avatar
      Bug 415514 reported that e.g. · fff53250
      Tim Peters yazdı
          "%#x" % 0
      blew up, at heart because C sprintf supplies a base marker if and only if
      the value is not 0.  I then fixed that, by tolerating C's inconsistency
      when it does %#x, and taking away that *Python* produced 0x0 when
      formatting 0L (the "long" flavor of 0) under %#x itself.  But after talking
      with Guido, we agreed it would be better to supply 0x for the short int
      case too, despite that it's inconsistent with C, because C is inconsistent
      with itself and with Python's hex(0) (plus, while "%#x" % 0 didn't work
      before, "%#x" % 0L *did*, and returned "0x0").  Similarly for %#X conversion.
      fff53250
    • Tim Peters's avatar
      Fix for SF bug #415514: "%#x" % 0 caused assertion failure/abort. · 711088d9
      Tim Peters yazdı
      http://sourceforge.net/tracker/index.php?func=detail&aid=415514&group_id=5470&atid=105470
      For short ints, Python defers to the platform C library to figure out what
      %#x should do.  The code asserted that the platform C returned a string
      beginning with "0x".  However, that's not true when-- and only when --the
      *value* being formatted is 0.  Changed the code to live with C's inconsistency
      here.  In the meantime, the problem does not arise if you format a long 0 (0L)
      instead.  However, that's because the code *we* wrote to do %#x conversions on
      longs produces a leading "0x" regardless of value.  That's probably wrong too:
      we should drop leading "0x", for consistency with C, when (& only when) formatting
      0L.  So I changed the long formatting code to do that too.
      711088d9
  14. 09 Şub, 2001 1 kayıt (commit)
  15. 18 Ock, 2001 1 kayıt (commit)
  16. 17 Ock, 2001 2 kayıt (commit)
  17. 20 Ara, 2000 1 kayıt (commit)
  18. 15 Ara, 2000 1 kayıt (commit)
  19. 30 Kas, 2000 1 kayıt (commit)
  20. 21 Eyl, 2000 1 kayıt (commit)
    • Tim Peters's avatar
      Derived from Martin's SF patch 110609: support unbounded ints in %d,i,u,x,X,o formats. · 38fd5b64
      Tim Peters yazdı
      Note a curious extension to the std C rules:  x, X and o formatting can never produce
      a sign character in C, so the '+' and ' ' flags are meaningless for them.  But
      unbounded ints *can* produce a sign character under these conversions (no fixed-
      width bitstring is wide enough to hold all negative values in 2's-comp form).  So
      these flags become meaningful in Python when formatting a Python long which is too
      big to fit in a C long.  This required shuffling around existing code, which hacked
      x and X conversions to death when both the '#' and '0' flags were specified:  the
      hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or
      '+' flags too, since signs were always meaningless before for x and X conversions.
      Isomorphic shuffling was required in unicodeobject.c.
      Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
      38fd5b64
  21. 30 Haz, 2000 1 kayıt (commit)