Staging
v0.8.1
https://github.com/python/cpython
Revision 82656276caf4cb889193572d2d14dbc5f3d2bdff authored by Victor Stinner on 22 November 2017, 22:51:42 UTC, committed by GitHub on 22 November 2017, 22:51:42 UTC
* 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
1 parent bb11c3c
History
Tip revision: 82656276caf4cb889193572d2d14dbc5f3d2bdff authored by Victor Stinner on 22 November 2017, 22:51:42 UTC
bpo-27535: Optimize warnings.warn() (#4508)
Tip revision: 8265627
File Mode Size
c-api
data
distributing
distutils
extending
faq
howto
includes
install
installing
library
reference
tools
tutorial
using
whatsnew
Makefile -rw-r--r-- 7.3 KB
README.rst -rw-r--r-- 4.3 KB
about.rst -rw-r--r-- 1.5 KB
bugs.rst -rw-r--r-- 4.2 KB
conf.py -rw-r--r-- 6.2 KB
contents.rst -rw-r--r-- 538 bytes
copyright.rst -rw-r--r-- 451 bytes
docutils.conf -rw-r--r-- 56 bytes
glossary.rst -rw-r--r-- 48.4 KB
license.rst -rw-r--r-- 46.2 KB
make.bat -rw-r--r-- 5.1 KB

README.rst

back to top