Anything similar to definition file?
Ozone Hole near South Pole
ozonehole2k at yahoo.com
Thu Jan 17 03:23:21 CET 2002
I am writing a robot controlling script in python. The status info of
the robot is stored as in a list: [ [rec1], [rec2],.... [recN] ]
In each rec, rec= [ sampleID, pos_x, pos_y, pos_z, force_r, force_t,
As the program is reasonable large, the algorithms are broken into a
number of files. To make the code a bit easy to read, I would like to
refer say, the y-pos at the 2033 rec as rec[pos_y], rather than
At this moment, I need to include the following header to each file:
sampleID,pos_x,pos_y ...=0,1,2 .......
Does python have anything similar to a header file in C such that I
say, import myConfig, in each my file instead of repeating the above n
More information about the Python-list