array of class / code optimization
hg
hg at nospam.org
Wed Jan 3 03:23:52 EST 2007
mm wrote:
>
> Yes, it was the (), equivalent to thiks like new() create new object
> from class xy.
>> s1.append(Word)
> s1.append(Word())
>
> But I was looking for a "struct" equivalent like in c/c++.
> And/or "union". I can't find it.
>
> Maybe you know a source (URL) "Python for c/c++ programmers" or things
> like that.
>
>
> Yes, I konw whats an object is...
A struct in C is unrelated to a struct in C++ as a struct in C++ _is_ a
class.
hg
More information about the Python-list
mailing list