Add Python syntax highlighting to README.rst#395
Add Python syntax highlighting to README.rst#395altendky merged 1 commit intopythonprofilers:masterfrom
README.rst#395Conversation
Verified exhaustiveness with: ```bash find -name '*.rst' ```
altendky
left a comment
There was a problem hiding this comment.
Thanks for an easy review! And the improvements. :] What do you think of using python-console for those blocks as in the suggestions?
| args, kw)``. For example:: | ||
| args, kw)``. For example: | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
| The output can be redirected to a log file by passing IO stream as | ||
| parameter to the decorator like @profile(stream=fp) | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
| The output can be redirected to logger module by simply making use of | ||
| LogFile of memory profiler module. | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
| by passing True to reportIncrementFlag, where reportIncrementFlag is | ||
| a parameter to LogFile class of memory profiler module. | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
|
|
||
| and is exposed by the API | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
| be evaluated or a tuple ``(f, args, kw)`` containing a function and its | ||
| arguments to be evaluated as ``f(*args, **kw)``. For example, | ||
|
|
||
| .. code-block:: python |
There was a problem hiding this comment.
| .. code-block:: python | |
| .. code-block:: python-console |
|
Thank you for suggesting using Python console syntax highlighting, I like the idea of using it to be more precise. However, as this code snippet shows in the So Python console GitHub syntax highlighting rendering doesn't seem perfect yet, hence I don't have any strong opinion and I let you choose the one you prefer. |
altendky
left a comment
There was a problem hiding this comment.
Always something, isn't it... Oh well.
Verified exhaustiveness with:
find -name '*.rst'