The dimensions of a tuple

bg_ie at yahoo.com bg_ie at yahoo.com
Fri Jan 25 05:26:35 EST 2008


Hi,

I wish to pass an argument to a function which will inset rows in a
db. I wish to have the follow possibilities -

("one","two")
(("one","two"),("three","four"))

The first possibility would mean that one row is added with "one and
"two" being its column values. The second possibility means that two
rows are added.

So to do this I need to establish the dimension of the duple. Is it a
one dimentional or two dimentional. How do I do this?

Thanks,

Barry.



More information about the Python-list mailing list