[Tutor] Python cross-compiler for 16 bit Motorla cpus?

R. Alan Monroe amonroe at columbus.rr.com
Thu Aug 7 23:27:45 EDT 2003


>> Hello !
>> 
>> First of all thanks to everyone on the list for giving consideration to my
>> problems. With the help of the tutor mailing list i am really learning a lot
>> about programming in python.
>> 
>> I have a small problem for now also.
>> 
>> I have a few names like a name followed by hash(#) and then a no. which
>> indicates the repeated  occurance of the name.
>> 
>> Like .abc ,  .abc#1 ,  .abc#2
>> 
>> I want that if i encounter such kind of name then it should be converted to
>> .abc
>> 
>> I think that this can be done with re.compile and some kind of match with
>> re.match

> You'd rather do re.sub (substitution) than re.match, and you only need to
> use re.compile if you are doing a *lot* of matches and speed is an issue, so
> if its just a one-off renaming of a few hundred files, you can skip
> re.compile.

> Here's a sample using re.sub
Is there a Python cross-compiler for 16 bit Motorla cpus?

I googled for:
python Motorola 68HCS12
and got no results...

The reason I ask:
http://www.xgamestation.com/

Alan




More information about the Tutor mailing list