[Python-ideas] Re: Void type

2022-07-25 Thread Anthony Flury via Python-ideas
use None - that is effectively what you need. unless of course None is valid in your data set. -- Anthony Flury email : anthony.fl...@btinternet.com Twitter : @TonyFlury > On Jul 25, 2022, at 10:43 AM, Михаил Крупенков wrote: > >  > Yes, I want that when Void is received in a function par

[Python-ideas] Re: default parameter in fuctions to clean up flow

2020-08-11 Thread Anthony Flury via Python-ideas
When I have needed this I have added a separate _factory keyword argument to my function - so the user can specify a value to or a callable to _factory with the doc string clearly spelling out the semantics - and what happens if neither is passed - yes another argument but the semantics are e