python


Python: How to store and read ini file with key having value containing = and semicolon


I have an .ini file. Many keys in the file have values containing special characters like equalto(=), semicolon(;), comma(,). Sample .ini file:
[TestKey]
Key1=a=b=c
The key Key1 value is a=test;b=test. The key value pair looks distorted. To resolve this, I enclosed the value in single quotes. The file structure looks fine but on trying to read the value of the key it gives 'a=test;b=test' . The single quotes gets added as part of the key value. So the value is incorrect


Related Links

Pyramid authentication: Why does it work?
Google app engine, cloud sql, and django: no rdbms backend module
Installing and using postgis on ubuntu
Loading many images in PyGame with limited RAM
Python dataset database error
Python Dictionary (Edit only values of Dictionary)
How to set environment variable value for embedded Python intepreter?
Get binary image data in Python
Python 3.3: Convert XML to YAML
Print raw HTTP request in Flask or WSGI
Simplest way to open a file in tkinter
Python argparse fails to parse hex formatting to int type
Python Pandas sub-totals and grand total
Pyvenv cannot create virtual environment
Python Twisted How To Set the SSL Method for twisted.web.client.Agent using new IPolicyForHTTPS?
PyQt4 OSX Wrong architecture

Categories

HOME
ajax
crate
npm
xamarin.android
laravel-5.2
currency
jboss7.x
gwtp
x-frame-options
store
future
jacoco
eclipse-luna
netezza
richfaces
binutils
header-files
piwik
fabric
pdfsharp
printdocument
websauna
getjson
edb
shapes
modulo
text-files
agent
equivalence
excel-interop
dojox.mobile
service-fabric-stateful
upsert
php-ews
3scale
context-free-language
dojox.grid.datagrid
rapidweaver
data-integration
defold
livefyre
greenhills
instruction-set
pagefile
inject
libreadline
xib
cron-task
multiple-file-upload
unsatisfiedlinkerror
fps
gmsmapview
post-processing
git-rebase
getrusage
selendroid
sem
subresource-integrity
programming-paradigms
shift-jis
searchkick
jai
obfuscar
rhel5
line-numbers
and-operator
x-ua-compatible
em
ogr2ogr
iostream
getimagedata
neoload
sgml
initialization-vector
json-patch
sim900
astyanax
android-contextmenu
sequelpro
icefaces-3
visual-web-gui
entity-framework-ctp5
datamember
pivotal-crm
asp.net-routing
hibernate3-maven-plugin
delegatecommand
trampolines
windows-controls
kpi
dirty-data
configurable
database-diagramming





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm