[Patches] [ python-Patches-1165404 ] ConfigParser alternative key-value delimitier

SourceForge.net noreply at sourceforge.net
Fri Mar 16 07:23:19 CET 2007


Patches item #1165404, was opened at 2005-03-17 08:57
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1165404&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
>Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sergey Dorofeev (fidoman)
Assigned to: Nobody/Anonymous (nobody)
Summary: ConfigParser alternative key-value delimitier

Initial Comment:
ConfigParser is module which parses commonly used 
INI files. It gets sections from file and values from 
sections. By now, it gets from file key and value divided 
by symbol ":" or "=".

For FTN application, a want to use FTN addresses as 
keys. FTN address looks like "2:5020/12000". So if I try 
to use it as key, ConfigParser considers "2" as key 
and "5020/12000 = ..." as value. 

I made patch, which allows to use any set of symbols 
(or '=' and ':' by default for compatibility) as delimitier 
between key and value in INI file.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2007-03-15 23:23

Message:
Logged In: YES 
user_id=33168
Originator: NO

Note: delimmap doesn't look like it's needed.  Should be able to just
check if vi in self.delim.  (Although I'm kinda tired and don't feel like
thinking too hard, so maybe that's just bs.).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1165404&group_id=5470


More information about the Patches mailing list