1. 03 Ock, 2001 1 kayıt (commit)
    • Marc-André Lemburg's avatar
      This patch changes the default behaviour of the builtin charmap · a866df80
      Marc-André Lemburg yazdı
      codec to not apply Latin-1 mappings for keys which are not found
      in the mapping dictionaries, but instead treat them as undefined
      mappings.
      
      The patch was originally written by Martin v. Loewis with some
      additional (cosmetic) changes and an updated test script
      by Marc-Andre Lemburg.
      
      The standard codecs were recreated from the most current files
      available at the Unicode.org site using the Tools/scripts/gencodec.py
      tool.
      
      This patch closes the bugs #116285 and #119960.
      a866df80
  2. 12 Ara, 2000 1 kayıt (commit)
    • Marc-André Lemburg's avatar
      Changed .getaliases() support to register the new aliases in the · 988ad2bd
      Marc-André Lemburg yazdı
      encodings package aliases mapping dictionary rather than in the
      internal cache used by the search function.
      
      This enables aliases to take advantage of the full normalization
      process applied to encoding names which was previously not available.
      
      The patch restricts alias registration to new aliases. Existing
      aliases cannot be overridden anymore.
      988ad2bd
  3. 16 Tem, 2000 1 kayıt (commit)
    • Thomas Wouters's avatar
      Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in either · 7e474022
      Thomas Wouters yazdı
      comments, docstrings or error messages. I fixed two minor things in
      test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't").
      
      There is a minor style issue involved: Guido seems to have preferred English
      grammar (behaviour, honour) in a couple places. This patch changes that to
      American, which is the more prominent style in the source. I prefer English
      myself, so if English is preferred, I'd be happy to supply a patch myself ;)
      7e474022
  4. 13 Haz, 2000 1 kayıt (commit)
  5. 07 Haz, 2000 2 kayıt (commit)
  6. 05 Nis, 2000 1 kayıt (commit)
    • Guido van Rossum's avatar
      Marc-Andre's third try at this bulk patch seems to work (except that · 9e896b37
      Guido van Rossum yazdı
      his copy of test_contains.py seems to be broken -- the lines he
      deleted were already absent).  Checkin messages:
      
      
      New Unicode support for int(), float(), complex() and long().
      
      - new APIs PyInt_FromUnicode() and PyLong_FromUnicode()
      - added support for Unicode to PyFloat_FromString()
      - new encoding API PyUnicode_EncodeDecimal() which converts
        Unicode to a decimal char* string (used in the above new
        APIs)
      - shortcuts for calls like int(<int object>) and float(<float obj>)
      - tests for all of the above
      
      Unicode compares and contains checks:
      - comparing Unicode and non-string types now works; TypeErrors
        are masked, all other errors such as ValueError during
        Unicode coercion are passed through (note that PyUnicode_Compare
        does not implement the masking -- PyObject_Compare does this)
      - contains now works for non-string types too; TypeErrors are
        masked and 0 returned; all other errors are passed through
      
      Better testing support for the standard codecs.
      
      Misc minor enhancements, such as an alias dbcs for the mbcs codec.
      
      Changes:
      - PyLong_FromString() now applies the same error checks as
        does PyInt_FromString(): trailing garbage is reported
        as error and not longer silently ignored. The only characters
        which may be trailing the digits are 'L' and 'l' -- these
        are still silently ignored.
      - string.ato?() now directly interface to int(), long() and
        float(). The error strings are now a little different, but
        the type still remains the same. These functions are now
        ready to get declared obsolete ;-)
      - PyNumber_Int() now also does a check for embedded NULL chars
        in the input string; PyNumber_Long() already did this (and
        still does)
      
      Followed by:
      
      Looks like I've gone a step too far there... (and test_contains.py
      seem to have a bug too).
      
      I've changed back to reporting all errors in PyUnicode_Contains()
      and added a few more test cases to test_contains.py (plus corrected
      the join() NameError).
      9e896b37
  7. 31 Mar, 2000 1 kayıt (commit)
  8. 28 Mar, 2000 2 kayıt (commit)
    • Guido van Rossum's avatar
      Marc-Andre Lemburg: · 24bdb047
      Guido van Rossum yazdı
      The attached patch set includes a workaround to get Python with
      Unicode compile on BSDI 4.x (courtesy Thomas Wouters; the cause
      is a bug in the BSDI wchar.h header file) and Python interfaces
      for the MBCS codec donated by Mark Hammond.
      
      Also included are some minor corrections w/r to the docs of
      the new "es" and "es#" parser markers (use PyMem_Free() instead
      of free(); thanks to Mark Hammond for finding these).
      
      The unicodedata tests are now in a separate file
      (test_unicodedata.py) to avoid problems if the module cannot
      be found.
      24bdb047
    • Guido van Rossum's avatar
  9. 20 Mar, 2000 1 kayıt (commit)
    • Barry Warsaw's avatar
      On 17-Mar-2000, Marc-Andre Lemburg said: · 51ac5803
      Barry Warsaw yazdı
          Attached you find an update of the Unicode implementation.
      
          The patch is against the current CVS version. I would appreciate
          if someone with CVS checkin permissions could check the changes
          in.
      
          The patch contains all bugs and patches sent this week and also
          fixes a leak in the codecs code and a bug in the free list code
          for Unicode objects (which only shows up when compiling Python
          with Py_DEBUG; thanks to MarkH for spotting this one).
      51ac5803
  10. 10 Mar, 2000 1 kayıt (commit)