Discussion:
[Bitpim-devel] Re: [bitpim-cvs-checkins] bitpim com_samsung.py,1.2 1,1.22 com_samsungscha650.py,1.17,1.18
d***@netzero.com
2004-11-18 17:00:42 UTC
Permalink
Yes, those can be, and will be, improved. Actually, the original line does work since it's strip(list[1],...), minor detail.

-Joe Pham
+from string import split,atoi,strip,join
You don't need any of those! For example this line:

g.append(strip(split(split(s[0],": ")[1],",")[1], '"'))

Should be:

g.append(s[0].split(": ")[1].split(",")[1].split('"').strip())

But the original line is actually broken as you can't run
strip on a list.

Roger


-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
Bitpim-devel mailing list
Bitpim-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitpim-devel


________________________________________________________________
NetZero Platinum $9.95.
NetZero HiSpeed $14.95.
Sign up Today at http://www.netzero.net or
Visit Sam Goody, Suncoast or MediaPlay Stores.

Loading...