Python lists
Roy Smith
roy at panix.com
Fri Dec 28 09:19:31 EST 2012
In article <8f5cfb99-d1d7-42d7-858a-89dd23cd532f at googlegroups.com>,
Manatee <markrivet at gsoftcon.com> wrote:
> I read in this:
> ['C100, C117', 'X7R 0.033uF 10% 25V 0603', '0603-C_L, 0603-C_N', '10', '2',
> '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key',
> '490-1521-1-ND', '']
>
> Then I need to convert it to this:
> [['C100', 'C117'], 'X7R 0.033uF 10% 25V 0603', '0603-C_L', '0603-C_N', '10',
> '2', '', '30', '15463-333', 'MURATA', 'GRM188R71E333KA01D', 'Digi-Key',
> '490-1521-1-ND', '']]
You want to convert it into a syntax error???
You've got an extra ']' in there somewhere. I'm guessing it's the one
at the end, but that's just a guess. Could you clarify what you meant?
More information about the Python-list
mailing list