[issue29554] profile/pstat doc clariification
New submission from Matthias Bussonnier: profile .rst say:
Each restriction is either an integer (to select a count of lines), or a decimal fraction between 0.0 and 1.0 inclusive (to select a percentage of lines), **or a regular expression**
Actually it accept a string that will be compiled to a regex. Profile.py also mention:
(i.e., in addition to the old -1, 0, 1, or 2)
Which is not really helpful, to newcomers to Python who do not know what these are meant to be. Either explaining (or removing if considered old behavior that should be stopped) seem to be better alternative.
See https://github.com/python/cpython/pull/88
----------
assignee: docs@python
components: Documentation
messages: 287778
nosy: docs@python, mbussonn
priority: normal
severity: normal
status: open
title: profile/pstat doc clariification
versions: Python 3.7
_______________________________________
Python tracker
Changes by Matthias Bussonnier
Changes by Matthias Bussonnier
Changes by Matthias Bussonnier
Changes by Berker Peksag
Berker Peksag added the comment:
New changeset 8fb1f6e039cbdeb333d83b7a62f0f37af4ce6e02 by Berker Peksag in branch 'master':
bpo-29554: Improve docs for pstat module and profile. (#88)
https://github.com/python/cpython/commit/8fb1f6e039cbdeb333d83b7a62f0f37af4c...
----------
_______________________________________
Python tracker
Changes by Berker Peksag
Changes by Berker Peksag
Berker Peksag added the comment:
New changeset 6336f0d156feec0f109a8d01da108cf96e3d9c60 by GitHub in branch '3.5':
bpo-29554: Improve docs for pstat module and profile. (#88) (#228)
https://github.com/python/cpython/commit/6336f0d156feec0f109a8d01da108cf96e3...
----------
_______________________________________
Python tracker
Berker Peksag added the comment:
New changeset b067a5eef7fdf69264d3578654996fc3755df4ea by GitHub in branch '3.6':
bpo-29554: Improve docs for pstat module and profile. (#88) (#227)
https://github.com/python/cpython/commit/b067a5eef7fdf69264d3578654996fc3755...
----------
_______________________________________
Python tracker
Changes by Berker Peksag
participants (2)
-
Berker Peksag
-
Matthias Bussonnier