parse a string (Cadence Allegro Netlist) to dictionary

2009-11-05 Thread Leland
C': C_SIGNAL='@test_lib.test(sch_1):\50mhz_clk_src\'; NODE_NAME U122 2 '@TEST_LIB.TEST(SCH_1):page92_i...@inf_logic.cy2305(CHIPS)': 'CLK2': CDS_PINID='CLK2'; NODE_NAME R1395 1 '@TEST_LIB.TEST(SCH_1):page92_i...@inf_resistors.resistor(CHIPS)': 'A': CDS_PINID='A'; Thanks, Leland -- http://mail.python.org/mailman/listinfo/python-list

Re: string split

2009-01-09 Thread Leland
On Jan 9, 12:57 pm, "Jerry Hill" wrote: > On Fri, Jan 9, 2009 at 3:39 PM, Benjamin Kaplan > > > This looks like a CSV file to me. If that is the case, it is easier to use > > the built-in csv module than to try to write your own parser. > > It should be as easy as this: > > import csv > > testfile

string split

2009-01-09 Thread Leland
.split("\"", 2) str9=str8[1] else : str8=str7.split(",", 1) str9=str8[0] print(key, ":", str9) It seems work this way, but is there more elegant way to do this? Thanks, Leland -- http://mail.python.org/mailman/listinfo/python-list

string split

2009-01-09 Thread Leland
.split("\"", 2) str9=str8[1] else : str8=str7.split(",", 1) str9=str8[0] print(key, ":", str9) It seems work this way, but is there more elegant way to do this? Thanks, Leland -- http://mail.python.org/mailman/listinfo/python-list

string split

2009-01-09 Thread Leland
str3 = str2[1] str4 = str3.split("\",", 1) Value1 = str4[0] str5 = str4[1] str6 = str5.split(",", 1) # QTY, PARTS & BOM_NOTES Quanty = str6[0] str7 = str6[1] # PARTS & BOM_NOTES It seems work this way, is there more elegant way to do this? Thanks, Leland -- http://mail.python.org/mailman/listinfo/python-list

Re: re-point mod_python - is it possible?

2007-03-07 Thread leland
great explaination - thanks graham! -- http://mail.python.org/mailman/listinfo/python-list

re-point mod_python - is it possible?

2007-03-06 Thread leland
i've upgraded my RHEL3 box to run python 2.3. problem is, mod_python still points to the old python 2.2. is there any way to tell mod_python that i've got a new version of python installed, and to use that version now? any help would be great - thanks! -- http://mail.python.org/mailman/listinfo/