Arrays, Got Me Confused

Michael Bentley michael at jedimindworks.com
Fri Apr 13 08:21:21 EDT 2007


On Apr 13, 2007, at 7:04 AM, Robert Rawlins - Think Blue wrote:
> #!/usr/bin/python
>
> # Filename: Firewall.py
>
>
>
> class Firewall:
>
>
>
>        def __init__(self):
>
>               Self.FireArray = array(c)
>
>
>
> p = Firewall()
>
> print p
>
>
>
>
>
> Throws:
>
>
>
> Traceback (most recent call last):
>
>   File "./firewall.py", line 9, in ?
>
>     p = Firewall()
>
>   File "./firewall.py", line 7, in __init__
>
>     Self.FireArray = array(c)
>
> NameError: global name 'array' is not defined
>
>
>
> How can I solve this problem?
from array import array


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20070413/5405c336/attachment.html>


More information about the Python-list mailing list