diff options
author | Scott Sanderson <ssanderson@quantopian.com> | 2018-06-07 05:46:42 -0400 |
---|---|---|
committer | INADA Naoki <methane@users.noreply.github.com> | 2018-06-07 18:46:42 +0900 |
commit | cebe80b59b7386db3cce904d280dab61d1037e7a (patch) | |
tree | 5565600350aead9bc48139ff28562e870894a0d0 /Misc | |
parent | fffeb6f3d66f1c844a9327ffe6e2ad8eae8aeb14 (diff) | |
download | cpython-git-cebe80b59b7386db3cce904d280dab61d1037e7a.tar.gz |
bpo-29235: Update document for Profiler's context manager (GH-7331)
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst b/Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst index 4618afc13a..2ce9096126 100644 --- a/Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst +++ b/Misc/NEWS.d/next/Library/2018-05-14-15-01-55.bpo-29235.47Fzwt.rst @@ -1,8 +1,2 @@ -The :class:`cProfile.Profile` class can now be used as a context manager. -You can profile a block of code by running:: - - import cProfile - with cProfile.Profile() as profiler: - # ... code to be profiled ... - -Patch by Scott Sanderson. +The :class:`cProfile.Profile` class can now be used as a context manager. Patch +by Scott Sanderson. |