;> To: python-list@python.org
>> Subject: Re: Function Defaults - avoiding unneccerary combinations of
>> arguments at input
>>
>> On Thu, 26 Mar 2015 04:43 am, Ivan Evstegneev wrote:
>>
>> > Hello all ,
>> >
>> >
>> > Just a li
> -Original Message-
> From: Python-list [mailto:python-list-
> bounces+webmailgroups=gmail@python.org] On Behalf Of Steven
> D'Aprano
> Sent: Thursday, March 26, 2015 01:49
> To: python-list@python.org
> Subject: Re: Function Defaults - avoiding u
On Thu, 26 Mar 2015 04:43 am, Ivan Evstegneev wrote:
> Hello all ,
>
>
> Just a little question about function's default arguments.
>
> Let's say I have this function:
>
> def my_fun(history=False, built=False, current=False, topo=None,
> full=False, file=None):
> if currnet and full:
> do so
> -Original Message-
> From: Python-list [mailto:python-list-
> bounces+webmailgroups=gmail@python.org] On Behalf Of Rob Gaddi
> Sent: Wednesday, March 25, 2015 22:07
> To: python-list@python.org
> Subject: Re: Function Defaults - avoiding unneccerary combinations
On 3/25/2015 3:50 PM, Ivan Evstegneev wrote:
Googled a bit, and found only one, a "ValueError" exception, but still don't
understand how it should be implemented in my case.
Should my code look like this one:
def my_fun(history=False, built=False, current=False, topo=None,
full=False, file=No
On Wed, 25 Mar 2015 21:50:40 +0200, Ivan Evstegneev wrote:
> Hello again ^_^,
>
> Googled a bit, and found only one, a "ValueError" exception, but still
> don't understand how it should be implemented in my case.
>
> Should my code look like this one:
>
> def my_fun(history=False, built=False,
on.org] On Behalf Of Terry Reedy
> Sent: Wednesday, March 25, 2015 20:43
> To: python-list@python.org
> Subject: Re: Function Defaults - avoiding unneccerary combinations of
> arguments at input
>
> On 3/25/2015 1:43 PM, Ivan Evstegneev wrote:
> > Hello all ,
> >
> >
&
thon-list@python.org
> Subject: Re: Function Defaults - avoiding unneccerary combinations of
> arguments at input
>
> On 3/25/2015 1:43 PM, Ivan Evstegneev wrote:
> > Hello all ,
> >
> >
> > Just a little question about function's default arguments.
> &
On 3/25/2015 1:43 PM, Ivan Evstegneev wrote:
Hello all ,
Just a little question about function's default arguments.
Let's say I have this function:
def my_fun(history=False, built=False, current=False, topo=None,
full=False, file=None):
if currnet and full:
do somethi
On Wed, Mar 25, 2015 at 11:43 AM, Ivan Evstegneev
wrote:
> Hello all ,
>
>
> Just a little question about function's default arguments.
>
> Let's say I have this function:
>
> def my_fun(history=False, built=False, current=False, topo=None,
> full=False, file=None):
> if currnet and full:
Hello all ,
Just a little question about function's default arguments.
Let's say I have this function:
def my_fun(history=False, built=False, current=False, topo=None,
full=False, file=None):
if currnet and full:
do something_1
elif current and file:
11 matches
Mail list logo