Problem of Readability of Python

Joe Riopel goon12 at gmail.com
Wed Oct 10 20:10:16 CEST 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