16.05.19 08:46, Anders Hovmöller пише:
In the general case because of features that until / was introduced was unique
to functions defined in C. But in the case of the dict constructor that's just
a weird misfeature. If it did in fact take *args and handled it it would be
perfectly fine and us
> On 15 May 2019, at 21:55, Jonathan Goble wrote:
>
>> On Wed, May 15, 2019 at 3:45 AM Anders Hovmöller wrote:
>>
>>> On 15 May 2019, at 07:51, Jonathan Goble wrote:
>>>
>>> That's not a realistic goal; there are some use cases, including in
>>> CPython builtins, that cannot be accomplished
On 15May2019 17:37, mak apuf wrote:
Let's consider logging.debug(expensive_function())
There are a few possibilities to run an expensive function when
logging only if the log is effectively output :
- eager formatting + calling by using fstrings or .format(expensive_func())
- formatting being
On Wed, May 15, 2019 at 3:45 AM Anders Hovmöller wrote:
>
> > On 15 May 2019, at 07:51, Jonathan Goble wrote:
> >
> > That's not a realistic goal; there are some use cases, including in
> > CPython builtins, that cannot be accomplished without positional-only
> > arguments. For example, the curre
On Wed, May 15, 2019 at 12:46 AM Anders Hovmöller
wrote:
>
>
> > On 15 May 2019, at 07:51, Jonathan Goble wrote:
> >
> > That's not a realistic goal; there are some use cases, including in
> > CPython builtins, that cannot be accomplished without positional-only
> > arguments. For example, the c
Hello all,
Let's consider logging.debug(expensive_function())
There are a few possibilities to run an expensive function when
logging only if the log is effectively output :
- eager formatting + calling by using fstrings or .format(expensive_func())
- formatting being done lazily by separating t
> On 15 May 2019, at 07:51, Jonathan Goble wrote:
>
> That's not a realistic goal; there are some use cases, including in
> CPython builtins, that cannot be accomplished without positional-only
> arguments. For example, the current behavior of the `dict` constructor
> is to accept both certain