learning-python question

Aahz Maruch aahz at netcom.com
Mon Jun 26 17:34:46 EDT 2000


In article <8j8ep3$tkn$1 at nnrp1.deja.com>,  <JeremyLynch at fsmail.net> wrote:
>
>count = 5
>
>def count_func()
>     print count
>     count = count + 1
>
>count_func()
>
>Why can count_func() not see count (it throws up a 'name' or
>'attribute' error)

See http://www.python.org/doc/FAQ.html#4.36
and http://www.python.org/doc/FAQ.html#4.57

Let us know if you need further help.
--
                      --- Aahz (Copyright 2000 by aahz at netcom.com)

Androgynous poly kinky vanilla queer het    <*>     http://www.rahul.net/aahz/
Hugs and backrubs -- I break Rule 6

The best way to get information on Usenet is not to ask a question,
but to post the wrong information.  --Aahz



More information about the Python-list mailing list