[EMAIL PROTECTED] wrote:
> I have a config file with the following contents:
> service A = {
> params {
> dir = "c:\test",
> username = "test",
> password = "test"
> }
> }
>
> I want to find username and replace the value with another value. I
> don't know what the username value i
[EMAIL PROTECTED] wrote:
> Hi, I am new in Python programming. Can anybody give me any idea about
> how to detect more than one date and time (like 11/11/2005 ,
> 10-12-2006, 12:30 etc) from a text file and keep them in a list.
http://docs.python.org/lib/bltin-file-objects.html
http://docs.pytho
Do you absolutely need to use variables? A dictionary would serve if
each case has a unique identifier.
client_info_dict = {}
for i in tagfile:
tagname,scope,value = i.replace('"','').split(',') # split fields,
strip redundant characters
client_info_dict.setdefault(scope,{}) # set up a