Why do my list go uni-code by itself?

2010-12-20 Thread Martin Hvidberg
I'm reading a fixed format text file, line by line. I hereunder present the code. I have snipped out part not related to the file reading. Only relevant detail left out is the lstCutters. It looks like this: [[1, 9], [11, 21], [23, 48], [50, 59], [61, 96], [98, 123], [125, 150]] It specifies the

Reading special Danish letters in Python

2010-12-19 Thread Martin Hvidberg
Dear list I have to read some data from an ASCII text file, filter it, and then export it to a .dbf file. Basically a straight forward task... My problem is that the input files contains some special national (Danish) characters, and it appears that I have to do something special to handle

Returning value from home made unit - how to?

2010-05-30 Thread Martin Hvidberg
, back to the main module in file jacxl.py ? Best Regards Martin Hvidberg # == File jacxl.py = import jacXlgui if __name__ == __main__: print Hello World - from Main; result = jacXlgui.app.MainLoop() print 'Result:',result # == End of jacxl.py = # == File

Nested list problem - please...

2010-04-17 Thread Martin Hvidberg
Dear list I have this code, it builds up a data structure of nested lists, and filling data in them. My problem is that it seems that one of the lists SA[1] is not a list of unique instances but rather individual links to the same variable. In the example below I assign 'X' to what I intended