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

Numpy Choose Elements from 2 arrays
Selenium Python iterate over a table of rows it is stopping at the first row
How to add a variable of a method of a class in aonther program in python?
Django : Getting error while removing django.contrib.sites from INSTALLED_APPS
Can I scrape a html page which is local machine using scrapy?
how to get request HTTP headers in soaplib views file?
Hive transform query runs slow with ORC file
What if I *really* need to escape quotes for an SQL script?
how to get the different IDs for different webdriver tabs
Running docker in subprocess on Python PyCharm
Django- NoReverseMatch at /login/here/
Threading class running one long function to totally stop if required
scipy does not load currectly in pycharm
Forming Django queryset for one-to-many relation
Flask Site on Azure showing default landing page
How to “POST” ndb.StructuredProperty?

Categories

HOME
arrays
security
redis
firebase-app-indexing
laravel-5.3
hana
java-home
user
avl-tree
gimp
height
oclint
intellij-plugin
data-analysis
squarespace
sign
ida
pyephem
propel2
ng2-dragula
cython
uiautomator
embedly
jquery-waypoints
continuous-deployment
xilinx-ise
partial-application
dd-wrt
jackson-dataformat-csv
skygear
fractals
receipt
pljson
nsurlconnection
meta-raspberrypi
topic-modeling
brute-force
ssh.net
scalafx
catia
debugdiag
rstudio-server
aescryptoserviceprovider
try-finally
amazon-kcl
loopj
direct3d12
schtasks.exe
optionbutton
matcaffe
p-np
bridge
uos
inputaccessoryview
cpu-speed
errorprovider
grunt-express
ghostdoc
dalekjs
dto
author
valence
ifft
delphi-xe3
java.util.date
jqmobi
dig
ienumerator
client-library
graph-coloring
mvccontrib
n-layer
xmlslurper
gjs
objective-c-protocol
junit3
zend-form-element
osx-leopard
mvvm-foundation
microsoft.ink

Resources

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
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App