1. 12 Haz, 2013 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #15767: Introduce ModuleNotFoundError, a subclass of · b1611e27
      Brett Cannon yazdı
      ImportError.
      
      The exception is raised by import when a module could not be found.
      Technically this is defined as no viable loader could be found for the
      specified module. This includes ``from ... import`` statements so that
      the module usage is consistent for all situations where import
      couldn't find what was requested.
      
      This should allow for the common idiom of::
      
        try:
          import something
        except ImportError:
          pass
      
      to be updated to using ModuleNotFoundError and not accidentally mask
      ImportError messages that should propagate (e.g. issues with a
      loader).
      
      This work was driven by the fact that the ``from ... import``
      statement needed to be able to tell the difference between an
      ImportError that simply couldn't find a module (and thus silence the
      exception so that ceval can raise it) and an ImportError that
      represented an actual problem.
      b1611e27
  2. 05 Haz, 2013 1 kayıt (commit)
  3. 04 Haz, 2013 1 kayıt (commit)
  4. 25 May, 2013 1 kayıt (commit)
  5. 22 May, 2013 1 kayıt (commit)
  6. 29 May, 2013 1 kayıt (commit)
  7. 27 May, 2013 1 kayıt (commit)
  8. 18 May, 2013 1 kayıt (commit)
  9. 16 May, 2013 1 kayıt (commit)
  10. 15 May, 2013 2 kayıt (commit)
  11. 14 May, 2013 1 kayıt (commit)
  12. 13 May, 2013 1 kayıt (commit)
  13. 12 May, 2013 1 kayıt (commit)
  14. 08 May, 2013 3 kayıt (commit)
  15. 06 May, 2013 1 kayıt (commit)
  16. 05 May, 2013 1 kayıt (commit)
  17. 04 May, 2013 1 kayıt (commit)
  18. 02 May, 2013 1 kayıt (commit)
  19. 30 Nis, 2013 1 kayıt (commit)
  20. 18 Nis, 2013 1 kayıt (commit)
  21. 17 Nis, 2013 1 kayıt (commit)
    • Victor Stinner's avatar
      Close #17694: Add minimum length to _PyUnicodeWriter · 8f674ccd
      Victor Stinner yazdı
       * Add also min_char attribute to _PyUnicodeWriter structure (currently unused)
       * _PyUnicodeWriter_Init() has no more argument (except the writer itself):
         min_length and overallocate must be set explicitly
       * In error handlers, only enable overallocation if the replacement string
         is longer than 1 character
       * CJK decoders don't use overallocation anymore
       * Set min_length, instead of preallocating memory using
         _PyUnicodeWriter_Prepare(), in many decoders
       * _PyUnicode_DecodeUnicodeInternal() checks for integer overflow
      8f674ccd
  22. 11 Nis, 2013 1 kayıt (commit)
  23. 06 Nis, 2013 3 kayıt (commit)
  24. 02 Nis, 2013 1 kayıt (commit)
    • Victor Stinner's avatar
      Add _PyUnicodeWriter_WriteSubstring() function · cfc4c13b
      Victor Stinner yazdı
      Write a function to enable more optimizations:
      
       * If the substring is the whole string and overallocation is disabled, just
         keep a reference to the string, don't copy characters
       * Avoid a call to the expensive _PyUnicode_FindMaxChar() function when
         possible
      cfc4c13b
  25. 23 Mar, 2013 5 kayıt (commit)
  26. 20 Mar, 2013 1 kayıt (commit)
  27. 19 Mar, 2013 1 kayıt (commit)
  28. 18 Mar, 2013 1 kayıt (commit)
  29. 13 Mar, 2013 1 kayıt (commit)
  30. 11 Mar, 2013 1 kayıt (commit)
  31. 08 Mar, 2013 1 kayıt (commit)