3.14.6.194 |    

Navigation

Google Advertisement

Diese Funktion liest eine CFG Datei aus und wandelt die Keys/Value Paare in die entsprechenden Python Daten Typen um.\\\\ Beispiel einer CFG Datei
; Home directroy
home_directory = /home/mschulz

# Beispiel einer Tuple (auch das ist ein Kommentar)
tuple = ( 't1', 't2', [ 'l1', 'l2', 3 ], 4 )

# Alter
age = 36

# Gewicht
weight = 87.3

# Maennlich
male = True

# Beispiel einer Liste
list = [ 'd1', 'd2', ( 't1', 't2', 3 ), 4 ]

; Beispiel eines Dictionarys
dict = { 1: 'Berlin', 2: 'Frankfurt (Oder)', 3: 'Dresden', 4: [ 'l1', 'l2', 3 ] }


Name config
Category Python::Function
Date 2008-12-27 03:00:07
Author Marko Schulz
Hits 1411
Rating  
Tags files

Search
 
Full text search by name and content of a snippet.

User online
There are 3 users online.

Tags Cloud

Latest snippets
str2seconds
(Bash::Function)
is_integer
(Bash::Function)
file_rotate
(Bash::Function)
confirm
(Bash::Function)
is_workingtime
(Bash::Function)
last day of last month
(Bash::Snippets)
crypt_apr1_md5
(PHP::Function)
crypt_apr1_md5
(Perl::Function)
transparent
(CSS)
rfc2822Toiso8601
(PHP::Function)