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

How I can speed up row column access to pandas dataframe?
Create list with combinations of 3 elements of other list with repetitions
PyQt5 does not change gifs
Pydub - combine split_on_silence with minimum length / file size
how to choose python version accordingly in pycharm?
Unable to import Flask to Kivy iOS
Unique list without spliting entries based on spaces in python
Uncaught SyntaxError: Unexpected token & error for flask and html
Django celery tasks working very long
Python, create plot from DataFrame
having this error TypeError: cannot concatenate 'str' and 'int' objects when trying to do math with variables stored with pickle
Pygame Tone Generator [duplicate]
Django - custom userprofile NoSuchTable error
How do you name a new instance of a class when you don't know what the name is in advance? [duplicate]
python podSixNet - data not sent from server to client
How can I press the Enter key on Selenium using Python without finding an element?

Categories

HOME
ajax
cntk
answer-set-programming
scipy
system-verilog
playframework
matplotlib
automated-tests
rocketmq
wampserver
file-io
desktop
xamarin-studio
rfid
jboss7.x
cortex-a
xlsx
uiscrollview
future
phoenix
rebol2
jquery-terminal
r-lavaan
python-unicode
jsonserializer
aws-cognito
esql
onsen-ui
cronet
activepython
shopping-cart
katharsis
hanami
branch
cep
codelite
ab-initio
cortex-m3
aurelia-binding
dd-wrt
skygear
swiftcharts
remote-server
broadleaf-commerce
liquid-xml
android-download-manager
freetts
brute-force
cross-entropy
paho
taglib
dojox.grid.datagrid
lumen-5.3
number-theory
gist
maintenance
mbaas
crash-reports
instruction-set
date-range
qos
iron.io
atlassian-crowd
coremidi
cjson
iostat
c#-interactive
audioqueue
gherkin
emokit
sun-codemodel
spservices
license-key
ninject.web.mvc
site-prism
selendroid
twython
manjaro
web-component-tester
guzzle6
robocode
chaining
hana-xs
c++-actor-framework
jquery-autocomplete
kendo-mvvm
google-admin-audit-api
node-imagemagick
java-collections-api
sthttprequest
humanizer
smartystreets
phpdocx
indexing-service
map-force
xenocode
db4o
dynamic-proxy
dynamic-binding
visual-studio-2003
manage.py
mstsc
soa-suite
device-emulation
parameterization
law-of-demeter
viewdidload
datamember
scalaxb
for-xml-path
recordset
filetime
graph-layout
kpi
standardized





Mobile Apps Dev
Database Users
javascript
java
csharp
php
android


MS Developer
developer works
python
ios
c
html
jquery


RDBMS discuss