2009/9/29 rantingrick <rantingr...@gmail.com>:
> On Sep 28, 8:04 pm, Chris Rebert <c...@rebertia.com> wrote:
>> On Mon, Sep 28, 2009 at 5:48 PM, Rudolf <yellowblueyel...@gmail.com> wrote:
>> > How can i declare a global array in python?
>>
>> Python has no concept of declarations.
>> And it doesn't have arrays, it has dynamically-resizing lists.
>
> What version are you using, i must have py4000 alpha?
>
>>>> import array
>>>> a = array.array('i')
>>>> a.append(1)
>>>> a
> array('i', [1])
>
> hmm? ;-)

Heh. I must remember to never state "python does not have X" - it
almost always has X, I just don't know where yet ;)

> --
> http://mail.python.org/mailman/listinfo/python-list
>



-- 
twitter.com/olofb
olofb.wordpress.com
olofb.wordpress.com/tag/english
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to