1. 09 Nov, 2017 2 commits
  2. 08 Nov, 2017 4 commits
  3. 07 Nov, 2017 5 commits
  4. 04 Nov, 2017 3 commits
  5. 03 Nov, 2017 2 commits
  6. 01 Nov, 2017 5 commits
  7. 31 Oct, 2017 5 commits
  8. 29 Oct, 2017 1 commit
  9. 25 Oct, 2017 2 commits
    • Serhiy Storchaka's avatar
    • Benjamin Peterson's avatar
      fix marshal uninitialized variable warnings (#4114) · 88d5e2c9
      Benjamin Peterson authored
      GCC says:
      ../cpython/Python/marshal.c: In function ‘PyMarshal_WriteLongToFile’:
      ../cpython/Python/marshal.c:70:35: warning: ‘wf.ptr’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                             else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \
                                         ^~
      ../cpython/Python/marshal.c:70:47: warning: ‘wf.end’ may be used uninitialized in this function [-Wmaybe-uninitialized]
                             else if ((p)->ptr != (p)->end) *(p)->ptr++ = (c); \
                                                     ^~
      ../cpython/Python/marshal.c:77:10: warning: ‘wf.str’ may be used uninitialized in this function [-Wmaybe-uninitialized]
           if (p->str == NULL)
               ~^~~~~
      
      This isn't a real problem because if the file pointer is not NULL, the
      string-related fields are never touched. But, it doesn't hurt to set the unused
      fields to NULL.
      88d5e2c9
  10. 24 Oct, 2017 2 commits
  11. 23 Oct, 2017 1 commit
  12. 22 Oct, 2017 2 commits
  13. 18 Oct, 2017 3 commits
  14. 17 Oct, 2017 3 commits
    • Victor Stinner's avatar
      [2.7] bpo-31733, bpo-31692: Document 2 new env vars in What's New in Python 2.7 (GH-4019) · 355393e7
      Victor Stinner authored
      bpo-31733, bpo-31692: Document the new PYTHONSHOWREFCOUNT and
      PYTHONSHOWALLOCCOUNT environment variables.
      355393e7
    • Victor Stinner's avatar
      [2.7] bpo-31692: Add PYTHONSHOWALLOCCOUNT env var (GH-3927) · 7b4ba62e
      Victor Stinner authored
      bpo-31692, bpo-19527:
      
      * Add a new PYTHONSHOWALLOCCOUNT environment variable, similar to
        the Python 3 "-X showalloccount" option
      * When Python is compiled with COUNT_ALLOCS, the new
        PYTHONSHOWALLOCCOUNT environment variable now has to be set to dump
        allocation counts into stderr on shutdown. Moreover, allocations
        statistics are now dumped into stderr rather than stdout.
      * Add @test.support.requires_type_collecting decorator: skip test if
        COUNT_ALLOCS is defined
      * Fix tests for COUNT_ALLOCS: decorate some methods with
        @requires_type_collecting
      * test_sys.test_objecttypes(): update object type when COUNT_ALLOCS
        is defined
      7b4ba62e
    • Victor Stinner's avatar
      bpo-31733: Add PYTHONSHOWREFCOUNT env var (GH-3932) · 3c082a7f
      Victor Stinner authored
      Add a new PYTHONSHOWREFCOUNT environment variable. In debug mode,
      Python now only print the total reference count if PYTHONSHOWREFCOUNT
      is set.
      3c082a7f