I am in debt with you of an answer on " my" solution in removing
literal strings...
I apologize not to have followed your suggestions but I am just
learning Python, and your approach was too difficult for me!
I've already developed the cross reference tool, and for that I
identified two types of li
qwweeeit wrote:
> Thank you for your suggestion, but it is too complicated for me...
> I decided to proceed in steps:
> 1. Take away all commented lines
> 2. Rebuild the multi-lines as single lines
ummm,
Ok all i can say is did you try this?
if not save it as a module then import it into the interp
Thank you for your suggestion, but it is too complicated for me...
I decided to proceed in steps:
1. Take away all commented lines
2. Rebuild the multi-lines as single lines
I have already written the code and now I can face the problem of
mouving string definitions into a data base file...
Hopefu
qwweeeit wrote:
> For a python code I am writing I need to remove all strings
> definitions from source and substitute them with a place-holder.
>
> To make clearer:
> line 45 sVar="this is the string assigned to sVar"
> must be converted in:
> line 45 sVar=s1
>
> Such substitution is recorded
qwweeeit wrote:
> I need your help in correctly identifying the strings (also embedding
> the r'xx..' or u'yy...' as part of the string definition). The problem
> is mainly on the multi-line definitions or in cached strings
> (embedding chr() definitions or escape sequences).
>
Have a look at to
qwweeeit wrote:
For a python code I am writing I need to remove all strings
definitions from source and substitute them with a place-holder.
To make clearer:
line 45 sVar="this is the string assigned to sVar"
must be converted in:
line 45 sVar=s1
Such substitution is recorded in a file under: