1. 10 Kas, 2017 1 kayıt (commit)
  2. 22 Eyl, 2017 1 kayıt (commit)
    • Neil Schemenauer's avatar
      bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#3372) · 0a1ff24a
      Neil Schemenauer yazdı
      * Maintain a list of BufferedWriter objects.  Flush them on exit.
      
      In Python 3, the buffer and the underlying file object are separate
      and so the order in which objects are finalized matters.  This is
      unlike Python 2 where the file and buffer were a single object and
      finalization was done for both at the same time.  In Python 3, if
      the file is finalized and closed before the buffer then the data in
      the buffer is lost.
      
      This change adds a doubly linked list of open file buffers.  An atexit
      hook ensures they are flushed before proceeding with interpreter
      shutdown.  This is addition does not remove the need to properly close
      files as there are other reasons why buffered data could get lost during
      finalization.
      
      Initial patch by Armin Rigo.
      
      * Use weakref.WeakSet instead of WeakKeyDictionary.
      
      * Simplify buffered double-linked list types.
      
      * In _flush_all_writers(), suppress errors from flush().
      
      * Remove NEWS entry, use blurb.
      
      * Take more care when flushing file buffers from atexit.
      
      The previous implementation was not careful enough to avoid
      causing issues in multi-threaded cases.  Check for buf->ok
      and buf->finalizing before actually doing the flush.  Also,
      increase the refcnt to ensure the object does not disappear.
      0a1ff24a
  3. 07 Eyl, 2017 1 kayıt (commit)
  4. 05 Eyl, 2017 2 kayıt (commit)
    • Neil Schemenauer's avatar
    • Neil Schemenauer's avatar
      bpo-17852: Maintain a list of BufferedWriter objects. Flush them on exit. (#1908) · e38d12ed
      Neil Schemenauer yazdı
      * Maintain a list of BufferedWriter objects.  Flush them on exit.
      
      In Python 3, the buffer and the underlying file object are separate
      and so the order in which objects are finalized matters.  This is
      unlike Python 2 where the file and buffer were a single object and
      finalization was done for both at the same time.  In Python 3, if
      the file is finalized and closed before the buffer then the data in
      the buffer is lost.
      
      This change adds a doubly linked list of open file buffers.  An atexit
      hook ensures they are flushed before proceeding with interpreter
      shutdown.  This is addition does not remove the need to properly close
      files as there are other reasons why buffered data could get lost during
      finalization.
      
      Initial patch by Armin Rigo.
      
      * Use weakref.WeakSet instead of WeakKeyDictionary.
      
      * Simplify buffered double-linked list types.
      
      * In _flush_all_writers(), suppress errors from flush().
      
      * Remove NEWS entry, use blurb.
      e38d12ed
  5. 24 Agu, 2017 1 kayıt (commit)
  6. 03 Haz, 2017 1 kayıt (commit)
  7. 26 Mar, 2017 1 kayıt (commit)
  8. 07 Ara, 2016 1 kayıt (commit)
  9. 20 Eki, 2016 1 kayıt (commit)
  10. 12 Haz, 2016 1 kayıt (commit)
  11. 04 Haz, 2016 1 kayıt (commit)
  12. 02 Haz, 2016 1 kayıt (commit)
  13. 28 May, 2016 1 kayıt (commit)
  14. 17 Nis, 2016 1 kayıt (commit)
  15. 31 Mar, 2016 1 kayıt (commit)
  16. 22 Mar, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Add a source parameter to warnings.warn() · e19558af
      Victor Stinner yazdı
      Issue #26604:
      
      * Add a new optional source parameter to _warnings.warn() and warnings.warn()
      * Modify asyncore, asyncio and _pyio modules to set the source parameter when
        logging a ResourceWarning warning
      e19558af
  17. 02 Kas, 2015 1 kayıt (commit)
  18. 28 Agu, 2015 1 kayıt (commit)
  19. 25 Tem, 2015 1 kayıt (commit)
  20. 13 Nis, 2015 1 kayıt (commit)
  21. 24 Mar, 2015 1 kayıt (commit)
  22. 10 Nis, 2015 1 kayıt (commit)
  23. 19 Mar, 2015 1 kayıt (commit)
  24. 07 Şub, 2015 1 kayıt (commit)
  25. 03 Şub, 2015 1 kayıt (commit)
  26. 22 Ara, 2014 1 kayıt (commit)
  27. 20 Kas, 2014 1 kayıt (commit)
  28. 25 Tem, 2014 1 kayıt (commit)
  29. 22 Haz, 2014 1 kayıt (commit)
  30. 09 Haz, 2014 1 kayıt (commit)
  31. 08 Haz, 2014 2 kayıt (commit)
  32. 02 Mar, 2014 1 kayıt (commit)
  33. 04 Şub, 2014 1 kayıt (commit)
    • Nick Coghlan's avatar
      Close #20404: blacklist non-text encodings in io.TextIOWrapper · a9b15241
      Nick Coghlan yazdı
      - io.TextIOWrapper (and hence the open() builtin) now use the
        internal codec marking system added for issue #19619
      - also tweaked the C code to only look up the encoding once,
        rather than multiple times
      - the existing output type checks remain in place to deal with
        unmarked third party codecs.
      a9b15241
  34. 02 Şub, 2014 1 kayıt (commit)
  35. 29 Ock, 2014 1 kayıt (commit)
  36. 23 Kas, 2013 1 kayıt (commit)
  37. 16 Eyl, 2013 1 kayıt (commit)
  38. 27 Agu, 2013 1 kayıt (commit)