[PyKDE] Eric3 recursive loop

Detlev Offenbach detlev at die-offenbachs.de
Tue Dec 21 19:20:19 GMT 2004


Hi,

that shouldn't happen with 3.5.1 or the 3.6 snapshots any more. For older 
versions you can deselect the 'wrap around' checkbox.

Detlev

Am Dienstag, 21. Dezember 2004 00:03 schrieb Dave S:
> 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
>
>
>
> _______________________________________________
> PyKDE mailing list    PyKDE at mats.imk.fraunhofer.de
> http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

-- 
Detlev Offenbach
detlev at die-offenbachs.de




More information about the PyQt mailing list