On Mon, 10 Nov 2014 19:53:56 -0500, Dennis Lee Bieber wrote:
> On Mon, 10 Nov 2014 14:56:11 GMT, alister
> declaimed the following:
>
>>On Mon, 10 Nov 2014 14:54:55 +, alister wrote:
>>
>>> On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
>>>
On 2014-11-10, David Palao wrote:
On 2014-11-10 20:08, Mark Lawrence wrote:
> On 10/11/2014 11:31, David Palao wrote:
> >> My crystal ball is currently in for repair and is not expected
> >> back in the foreseeable future.
> >
> > Without a crystal ball, this prediction might be not well founded.
> >
>
> Especially in the future w
On 10/11/2014 11:31, David Palao wrote:
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
Especially in the future when sombody asks "Who the hell was he replying
to?".
--
My fe
In article ,
Chris Angelico wrote:
> On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards
> wrote:
> > I know, but in c.l.p, even jokes get nicely pednatic answers.
>
> And in c.l.p, odd jokes get even more pedantic spelling corrections.
>
> ChrisA
a
n
d
i
m
a
g
i
n
a
r
y
j
o
k
e
s
g
e
t
r
o
On Tue, Nov 11, 2014 at 3:11 AM, Grant Edwards wrote:
> I know, but in c.l.p, even jokes get nicely pednatic answers.
And in c.l.p, odd jokes get even more pedantic spelling corrections.
ChrisA
--
https://mail.python.org/mailman/listinfo/python-list
On 2014-11-10, alister wrote:
> On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
>
>> On 2014-11-10, David Palao wrote:
>>
My crystal ball is currently in for repair and is not expected back in
the foreseeable future.
>>>
>>> Without a crystal ball, this prediction might be not
On Mon, Nov 10, 2014 at 9:54 AM, Chris Angelico wrote:
> On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick
> wrote:
>> Your problem is that count is not local. You are reading count from
>> an outer scope. When you try to increment count in your function, it
>> can't because it doesn't exist.
>>
Joel Goldstick wrote:
> On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier
> wrote:
>> You may want to read:
>>
>> https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
>>
>> from the Python docs Programming FAQ section.
>
On Mon, 10 Nov 2014 14:54:55 +, alister wrote:
> On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
>
>> On 2014-11-10, David Palao wrote:
>>
My crystal ball is currently in for repair and is not expected back
in the foreseeable future.
>>>
>>> Without a crystal ball, this p
On Mon, 10 Nov 2014 14:44:53 +, Grant Edwards wrote:
> On 2014-11-10, David Palao wrote:
>
>>> My crystal ball is currently in for repair and is not expected back in
>>> the foreseeable future.
>>
>> Without a crystal ball, this prediction might be not well founded.
>
> That isn't a predict
On Tue, Nov 11, 2014 at 1:35 AM, Joel Goldstick
wrote:
> Your problem is that count is not local. You are reading count from
> an outer scope. When you try to increment count in your function, it
> can't because it doesn't exist.
> Don't use globals.
False analysis, I'm afraid. The problem is t
On 2014-11-10, David Palao wrote:
>> My crystal ball is currently in for repair and is not expected back
>> in the foreseeable future.
>
> Without a crystal ball, this prediction might be not well founded.
That isn't a prediction. It's an explicit statement of no prediction.
He said that it is
On Mon, Nov 10, 2014 at 6:39 AM, Wolfgang Maier
wrote:
> You may want to read:
>
> https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
>
> from the Python docs Programming FAQ section.
> It explains your problem pretty
You may want to read:
https://docs.python.org/3/faq/programming.html?highlight=global#why-am-i-getting-an-unboundlocalerror-when-the-variable-has-a-value
from the Python docs Programming FAQ section.
It explains your problem pretty well.
As others have hinted at, always provide concrete Python
> My crystal ball is currently in for repair and is not expected back in
> the foreseeable future.
Without a crystal ball, this prediction might be not well founded.
--
https://mail.python.org/mailman/listinfo/python-list
On Mon, 10 Nov 2014 12:07:58 +0100, Mok-Kong Shen wrote:
> I don't understand the following phenomenon. Could someone kindly
> explain it? Thanks in advance.
>
> M. K. Shen
>
> -
>
> count=5
>
> def test():
>print(count)
>if count==5:
>
I don't understand the following phenomenon. Could someone kindly
explain it? Thanks in advance.
M. K. Shen
-
count=5
def test():
print(count)
if count==5:
count+=0 ### Error message if this line is active, otherwise ok.
print(cou
17 matches
Mail list logo