[PyKDE] Eric3 recursive loop
Dave S
eric3 at pusspaws.net
Mon Dec 20 23:03:48 GMT 2004
I have hit a problem with eric3 a couple of times, as an example the
section of code
file_yy=coded_str1[:4]
file_mm=coded_str1[4:6]
file_dd=coded_str1[6:8]
file_HH=coded_str1[9:11]
file_MM=coded_str1[11:13]
file_jj=coded_str1[14:17]
file_seq=coded_str1[18:21]
file_code1=coded_str1[22:23]
file_code2=coded_str1[23:24]
needs all instances of 'file' to be replaced by 'file1' so 'file_yy'
becomes 'file1_yy' etc
Using replace 'file' for 'file1' Eric locks up hogging 100% CPU, I have
to xkill to stop it.
My guess is that the replace code is trying to replace 'file' for
'file1', then 'file1' for 'file11' etc etc, it does not seem aware of
what it has replaced.
I get round this problem by
replacing 'file' for 'xxx'
replacing 'xxx' for 'file1'
that is until I forget & lock up eric !
Its pretty minor in an excellent IDE, but can be frustrating, especially
when I have not saved recently ;-)
Dave
More information about the PyQt
mailing list