Guillermo wrote:

> I'm just designing the algorithm, but I think Python dictionaries
> can hold any kind of sequence?

(Watch out, dicts are no sequence types.)

I recommend relying duck typing as long as it's feasible. I. e. if
it can be subscripted like a dict, it is a dict. If this makes
problems, use the type({}) approach.

Regards,


Björn

-- 
BOFH excuse #56:

Electricians made popcorn in the power supply

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

Reply via email to