1. 24 Eki, 2018 4 kayıt (commit)
  2. 23 Eki, 2018 8 kayıt (commit)
  3. 22 Eki, 2018 1 kayıt (commit)
    • Miss Islington (bot)'s avatar
      bpo-34454: Clean up datetime.fromisoformat surrogate handling (GH-8959) · 18450be9
      Miss Islington (bot) yazdı
      
      * Use _PyUnicode_Copy in sanitize_isoformat_str
      
      * Use repr in fromisoformat error message
      
      This reverses commit 67b74a98b2 per Serhiy Storchaka's suggestion:
      
           I suggested to use %R in the error message because including the raw
           string can be confusing in the case of empty string, or string
           containing trailing whitespaces, invisible or unprintable characters.
      
      We agree that it is better to change both the C and pure Python versions
      to use repr.
      
      * Retain non-sanitized dtstr for error printing
      
      This does not create an extra string, it just holds on to a reference to
      the original input string for purposes of creating the error message.
      
      * PEP 7 fixes to from_isoformat
      
      * Separate handling of Unicode and other errors
      
      In the initial implementation, errors other than encoding errors would
      both raise an error indicating an invalid format, which would not be
      true for errors like MemoryError.
      
      * Drop needs_decref from _sanitize_isoformat_str
      
      Instead _sanitize_isoformat_str returns a new reference, even to the
      original string.
      (cherry picked from commit 3df85404)
      Co-authored-by: 's avatarPaul Ganssle <pganssle@users.noreply.github.com>
      18450be9
  4. 21 Eki, 2018 2 kayıt (commit)
  5. 20 Eki, 2018 16 kayıt (commit)
  6. 19 Eki, 2018 9 kayıt (commit)