Problem of Readability of Python

Joe Riopel goon12 at gmail.com
Wed Oct 10 14:10:16 EDT 2007


On 10/10/07, Kevin <wyldwolf at gmail.com> wrote:
> Am I missing something, or am I the only one who explicitly declares
> structs in python?
> For example:
> FileObject = {
>     "filename" : None,
>     "path" : None,
>     }
>
> fobj = FileObject.copy()
> fobj["filename"] = "passwd"
> fobj["path"] = "/etc/"


I am pretty new to python, but isn't that just a dictionary?



More information about the Python-list mailing list