Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > editing conf file

Reply
Thread Tools

editing conf file

 
 
rusi
Guest
Posts: n/a
 
      11-16-2012
On Nov 16, 7:08*pm, Roy Smith <(E-Mail Removed)> wrote:
> These days, if I was writing something that needed a config file and I
> didn't want to do "import settings" for whatever reason, I would go with
> YAML. *It seems to give an attractive mix of:
>
> * supporting complex data structures
> * easy to for humans to hand-edit
> * easy for humans to read
> * safe from code injection attacks


+1 except for a caveat on the last:
Use safe_load and safe_dump.
dump and load are vulnerable to code injection attacks
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
editing smb.conf (INI files) Tomasz Chmielewski Perl Misc 1 06-30-2008 03:43 PM
Parse conf file for CLI tool Moritz Reiter Ruby 2 01-28-2007 03:43 PM
Problems parsing a flat text file with pointers.. sort of named.conf layout.. Hugh C Programming 4 06-03-2005 10:22 PM
Apache conf file parser Steve Python 0 11-17-2004 09:35 PM
How to substitute a variable containing a directory path into Apache httpd.conf file???? MegaC Perl Misc 3 05-24-2004 08:49 PM



Advertisments