Re: [Python-ideas] Proposal: "?" Documentation Operator and easy reference to argument types/defaults/docstrings

2019-04-28 Thread Stephen J. Turnbull
Peter O'Connor writes: > On Fri, Apr 26, 2019 at 2:18 AM Stephen J. Turnbull < > turnbull.stephen...@u.tsukuba.ac.jp> wrote: > > What I would rather see is > > > > (1) Comment syntax "inside" (fvo "inside" including any comment after > > the colon but before docstring or other code)

Re: [Python-ideas] Proposal: "?" Documentation Operator and easy reference to argument types/defaults/docstrings

2019-04-28 Thread Peter O'Connor
Thanks all for the responses. I read thought them carefully and address each below. I don't think any fully address the core problem - The "Argument" - the tuple of (type, default, documentation) - is currently not a first-class entity. Because there is no way to reference an Argument, there is m

Re: [Python-ideas] Users of statistics software, what quantile functionality would be useful for you?

2019-04-28 Thread Guido van Rossum
On Sat, Apr 27, 2019 at 7:51 AM Steven D'Aprano wrote: > The statistics module is soon to get a quantile function. > > For those of you who use statistics software (whether in Python, or > using other languages) and specifically use quantiles, what sort of > functionality would be useful to you?

[Python-ideas] Users of statistics software, what quantile functionality would be useful for you?

2019-04-28 Thread Stephen J. Turnbull
Steven D'Aprano writes: > using other languages) and specifically use quantiles, what sort of > functionality would be useful to you? > > For example: > > - evenly-spaced quantiles (say, at 0.25, 0.5, 0.75)? Yes. > - unevenly-spaced quantiles (0.25, 0.8, 0.9, 0.995)? Rarely. > - one

Re: [Python-ideas] Idea: Allow multiple levels of tracers

2019-04-28 Thread Barry Scott
> On 28 Apr 2019, at 09:12, Ram Rachum wrote: > > It's possible, but it would be very cumbersome, for a bunch of reasons. One > of them is that the tracing code inspects the frame, the variables referenced > in it, and it even opens the file of the code object of the frame. It will be > dif

Re: [Python-ideas] Idea: Allow multiple levels of tracers

2019-04-28 Thread Ram Rachum
It's possible, but it would be very cumbersome, for a bunch of reasons. One of them is that the tracing code inspects the frame, the variables referenced in it, and it even opens the file of the code object of the frame. It will be difficult to mock all of that, and even if that's possible, we won'

Re: [Python-ideas] Idea: Allow multiple levels of tracers

2019-04-28 Thread Barry Scott
> On 25 Apr 2019, at 15:51, Ram Rachum wrote: > > Hi, > > Here's something I want in Python: Multiple levels of tracers working on top > of each other, instead of just one. > > I'm talking about the tracer that one can set by calling sys.settrace. > > I've recently released PySnooper: http