1. 01 Mar, 2019 1 kayıt (commit)
  2. 13 Kas, 2018 1 kayıt (commit)
  3. 08 Haz, 2018 1 kayıt (commit)
  4. 21 Ock, 2018 1 kayıt (commit)
    • Nathaniel J. Smith's avatar
      bpo-32591: Add native coroutine origin tracking (#5250) · fc2f4078
      Nathaniel J. Smith yazdı
      * Add coro.cr_origin and sys.set_coroutine_origin_tracking_depth
      * Use coroutine origin information in the unawaited coroutine warning
      * Stop using set_coroutine_wrapper in asyncio debug mode
      * In BaseEventLoop.set_debug, enable debugging in the correct thread
      fc2f4078
  5. 08 Ock, 2018 1 kayıt (commit)
    • Nick Coghlan's avatar
      bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458) · 9b997473
      Nick Coghlan yazdı
      - primary change is to add a new default filter entry for
        'default::DeprecationWarning:__main__'
      - secondary change is an internal one to cope with plain
        strings in the warning module's internal filter list
        (this avoids the need to create a compiled regex object
        early on during interpreter startup)
      - assorted documentation updates, including many more
        examples of configuring the warnings settings
      - additional tests to ensure that both the pure Python and
        the C accelerated warnings modules have the expected
        default configuration
      9b997473
  6. 12 Ara, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32230: Set sys.warnoptions with -X dev (#4820) · 747f48e2
      Victor Stinner yazdı
      Rather than supporting dev mode directly in the warnings module, this
      instead adjusts the initialisation code to add an extra 'default'
      entry to sys.warnoptions when dev mode is enabled.
      
      This ensures that dev mode behaves *exactly* as if `-Wdefault` had
      been passed on the command line, including in the way it interacts
      with `sys.warnoptions`, and with other command line flags like `-bb`.
      
      Fix also bpo-20361: have -b & -bb options take precedence over any
      other warnings options.
      
      Patch written by Nick Coghlan, with minor modifications of Victor Stinner.
      747f48e2
  7. 29 Kas, 2017 1 kayıt (commit)
  8. 27 Kas, 2017 2 kayıt (commit)
  9. 22 Kas, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-27535: Optimize warnings.warn() (#4508) · 82656276
      Victor Stinner yazdı
      * Optimize warnings.filterwarnings(). Replace re.compile('') with
        None to avoid the cost of calling a regex.match() method, whereas
        it always matchs.
      * Optimize get_warnings_attr(): replace PyObject_GetAttrString() with
        _PyObject_GetAttrId().
      
      Cleanup also create_filter():
      
      * Use _Py_IDENTIFIER() to allow to cleanup strings at Python
        finalization
      * Replace Py_FatalError() with a regular exceptions
      82656276
  10. 21 Kas, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32089: Fix warnings filters in dev mode (#4482) · 09f3a8a1
      Victor Stinner yazdı
      The developer mode (-X dev) now creates all default warnings filters
      to order filters in the correct order to always show ResourceWarning
      and make BytesWarning depend on the -b option.
      
      Write a functional test to make sure that ResourceWarning is logged
      twice at the same location in the developer mode.
      
      Add a new 'dev_mode' field to _PyCoreConfig.
      09f3a8a1
  11. 20 Kas, 2017 1 kayıt (commit)
    • Victor Stinner's avatar
      bpo-32088: Display Deprecation in debug mode (#4474) · 895862aa
      Victor Stinner yazdı
      When Python is build is debug mode (Py_DEBUG), DeprecationWarning,
      PendingDeprecationWarning and ImportWarning warnings are now
      displayed by default.
      
      test_venv: run "-m pip" and "-m ensurepip._uninstall" with -W
      ignore::DeprecationWarning since pip code is not part of Python.
      895862aa
  12. 04 Haz, 2017 1 kayıt (commit)
  13. 05 Nis, 2017 1 kayıt (commit)
  14. 06 Ara, 2016 2 kayıt (commit)
  15. 26 May, 2016 1 kayıt (commit)
  16. 05 Nis, 2016 1 kayıt (commit)
  17. 24 Mar, 2016 1 kayıt (commit)
  18. 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
  19. 19 Mar, 2016 2 kayıt (commit)
  20. 18 Mar, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      Add _showwarnmsg() and _formatwarnmsg() to warnings · 1231a461
      Victor Stinner yazdı
      Issue #26568: add new  _showwarnmsg() and _formatwarnmsg() functions to the
      warnings module.
      
      The C function warn_explicit() now calls warnings._showwarnmsg() with a
      warnings.WarningMessage as parameter, instead of calling warnings.showwarning()
      with multiple parameters.
      
      _showwarnmsg() calls warnings.showwarning() if warnings.showwarning() was
      replaced. Same for _formatwarnmsg(): call warnings.formatwarning() if it was
      replaced.
      1231a461
  21. 06 Eyl, 2015 1 kayıt (commit)
  22. 13 Nis, 2015 1 kayıt (commit)
    • Brett Cannon's avatar
      Issue #23731: Implement PEP 488. · f299abda
      Brett Cannon yazdı
      The concept of .pyo files no longer exists. Now .pyc files have an
      optional `opt-` tag which specifies if any extra optimizations beyond
      the peepholer were applied.
      f299abda
  23. 14 Ara, 2014 1 kayıt (commit)
  24. 10 Ara, 2014 1 kayıt (commit)
  25. 18 Eyl, 2014 1 kayıt (commit)
  26. 22 Agu, 2014 1 kayıt (commit)
  27. 11 Tem, 2014 1 kayıt (commit)
  28. 24 Eki, 2013 1 kayıt (commit)
  29. 04 Tem, 2013 1 kayıt (commit)
  30. 14 Haz, 2013 1 kayıt (commit)
  31. 25 Ara, 2012 1 kayıt (commit)
  32. 28 Eki, 2011 1 kayıt (commit)
  33. 24 Eki, 2010 1 kayıt (commit)
  34. 04 Eyl, 2010 1 kayıt (commit)
    • Brett Cannon's avatar
      _warnings exposed two variables with the name 'default_action' and · ef0e6c3b
      Brett Cannon yazdı
      'once_registry'. This is bad as the warnings module had variables named
      'defaultaction' and 'onceregistry' which are what people should be looking at
      (technically those variables shouldn't be mucked with as they are undocumented,
      but we all know better than to believe that isn't happening). So the variables
      from _warnings have been renamed to come off as private and to avoid confusion
      over what variable should be used.
      
      Closes issue #9766. Thanks to Antoine Pitrou for the discovery.
      ef0e6c3b
  35. 02 Agu, 2010 1 kayıt (commit)
  36. 28 Haz, 2010 1 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions 77402,77505,77510 via svnmerge from · 7ab4b8d3
      Benjamin Peterson yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r77402 | brett.cannon | 2010-01-09 20:56:19 -0600 (Sat, 09 Jan 2010) | 12 lines
      
        DeprecationWarning is now silent by default.
      
        This was originally suggested by Guido, discussed on the stdlib-sig mailing
        list, and given the OK by Guido directly to me. What this change essentially
        means is that Python has taken a policy of silencing warnings that are only
        of interest to developers by default. This should prevent users from seeing
        warnings which are triggered by an application being run against a new
        interpreter before the app developer has a chance to update their code.
      
        Closes issue #7319. Thanks to Antoine Pitrou, Ezio Melotti, and Brian Curtin
        for helping with the issue.
      ........
        r77505 | brett.cannon | 2010-01-14 14:00:28 -0600 (Thu, 14 Jan 2010) | 7 lines
      
        The silencing of DeprecationWarning was not taking -3 into consideration. Since
        Py3K warnings are DeprecationWarning by default this was causing -3 to
        essentially be a no-op. Now DeprecationWarning is only silenced if -3 is not
        used.
      
        Closes issue #7700. Thanks Ezio Melotti and Florent Xicluna for patch help.
      ........
        r77510 | brett.cannon | 2010-01-14 19:31:45 -0600 (Thu, 14 Jan 2010) | 1 line
      
        Remove C++/C99-style comments.
      ........
      7ab4b8d3
  37. 25 Nis, 2010 1 kayıt (commit)