Global Variables

Bob Then Bob_then at yahoo.com.au
Wed Apr 13 01:09:31 EDT 2005


If I have a module File
which has some fucontions but I need  globals filename and path how can I
set them so I can change them because I tryed.

filename="log.txt"
path="/home/Bob/"

def change_filename():
   filename=raw_input()

def change_path():
   path=raw_input()

they don't change and without the declarations there not global.

Help Please





More information about the Python-list mailing list