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

SciPy ImportError
How to find max values?
I'm looking to print the length of the longest and shortest words but am unsure where I'm going wrong
Python and nesting classes for structure
AttributeError list object has no attribute add
python parsing text/plain email
TypeError: “can only concatenate list (not ”int“) to list” add a number to every item in a list?
Python “OpenCV Error: Assertion failed (size.width>0 && size.height>0)” when using script to load and detect faces from a given directory path
Writing a list to a CSV file
Underflow while using dblquad in Python
Script Bug not findable
Python [SSL: CERTIFICATE_VERIFY_FAILED] Error with Mechanaize [duplicate]
Selenium 3.0.1 geckodriver v.011.1 Firefox 49.0.2 not sending values to input fields
Grouping Pandas DataFrame by n days starting in the begining of the day
Django-allauth - URL isn't included in the app's domains
counting paths for a given situation

Categories

HOME
sharepoint
jsf
redis
openssl
meshlab
sed
windows-7
label
d
amazon-product-api
survival-analysis
rocketmq
apple-numbers
phaser-framework
jframe
shader
onenote-api
google-classroom
hosts
jboss-eap-7
outlook-web-addins
symfony-forms
cloudflare
aspell
yeoman-generator
jcl
ms-access-2007
ejbca
multiple-columns
rails-activerecord
thingsboard
extractor
http-method
tfs2013
version-numbering
web-frontend
thinking-sphinx
mangodb
clockwork
pmwiki
declare
agent
brute-force
restful-url
xbim
ajp
recycle-bin
data-integration
uiviewpropertyanimator
jags
ti-basic
xmgrace
chrome-remote-desktop
launch
jcreator
visual-studio-templates
shinyjs
vici
tomee
gitweb
nofollow
com-interop
emokit
remoteapp
supportmapfragment
anti-cheat
yoothemes
fortran90
brackets-shell
jenkins-scriptler
sem
response-headers
isml
word-2013
moai
gmaps4rails
libsndfile
and-operator
vcl
wss
indexing-service
bignum
layered
javascriptmvc
ng-pattern
resgen
fraud-prevention
qss
wpdb
cgpath
usn
javascriptserializer
wcf-web-api
expression-evaluation
supersized
datacontract
loadui
swfloader
microsoft.ink
longjmp
nt4
economics

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