Editing Configuration Files For Python

Jump to navigation Jump to search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 72: Line 72:
  
  
== How: More Advanced ==
+
== How More Advanced ==
  
 
The more advanced uses also point out some of the advantages of this method, you may have already noticed one.  In most configuration files all data types are string.  There needs to be some reading of the file and conversion.  So you need to write ( or get a library ) to do that part.  For Python you can think that either your are allowed types "joe" is a string 10. is a float, or that they are strings and the Python interpreter is the conversion program.
 
The more advanced uses also point out some of the advantages of this method, you may have already noticed one.  In most configuration files all data types are string.  There needs to be some reading of the file and conversion.  So you need to write ( or get a library ) to do that part.  For Python you can think that either your are allowed types "joe" is a string 10. is a float, or that they are strings and the Python interpreter is the conversion program.

Please note that all contributions to OpenCircuits may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see OpenCircuits:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)