slicing string

Jarkko Veijalainen Jarkko.Veijalainen at tecnomen.fi
Mon Jul 3 06:14:40 EDT 2000


Hi!

I'm real newbie with Python. I started learnig Python just last week. I have
a problem slicing a string, imported from file. can anyone help me with
simple solution. Input string follows this pattern:

 attr=value , attr2=value2, attr3= , attr4=value2. 

I have made an Object class, where all attributes are class variables. How
can i slice that sring and store those att=value pairs in my object?

I'm desperated...

	JarkkoV




More information about the Python-list mailing list