André
July 24th, 2005, 07:22 AM
Hi everybody,
i am just starting with programming (again :-)).
Right now i would like to do the following:
1. I would like to define a new datatype. For simplicity let's call it index with index having site and word (like having a datatype with two strings site and word, where i can put this stuff).
2. I would like to put the datatype definition in a file like index.py and use this as a module
3. I would like to have a file main.py that uses the datatype from index.py.
Can i do this somehow? Or do i have to define an array with these two strings in main.py? Is it possible to have a "use"-relationship between index.py and main.py?
Hope i made my self clear :-)
Greetings and thanks for any help
André
i am just starting with programming (again :-)).
Right now i would like to do the following:
1. I would like to define a new datatype. For simplicity let's call it index with index having site and word (like having a datatype with two strings site and word, where i can put this stuff).
2. I would like to put the datatype definition in a file like index.py and use this as a module
3. I would like to have a file main.py that uses the datatype from index.py.
Can i do this somehow? Or do i have to define an array with these two strings in main.py? Is it possible to have a "use"-relationship between index.py and main.py?
Hope i made my self clear :-)
Greetings and thanks for any help
André