Converting a list to a dictionary
Drew
olsonas at gmail.com
Wed Mar 14 16:48:49 EDT 2007
On Mar 14, 4:43 pm, "Samuel" <knipk... at gmail.com> wrote:
> What this does is it maps the id to the object. In your case, you only
> have one id.
>
> -Samuel
This is interesting behavior, but may not be what the original poster
intended. If I understand correctly, this means that if more than one
object shares the same id, only one copy will be created in the dict.
Is this correct?
More information about the Python-list
mailing list