Using something other than ';' to separate statements

Peter Hansen peter at engcorp.com
Wed Mar 30 18:58:42 CEST 2005


Jaime Wyant wrote:
> I know I've seen this somewhere, but can't seem to google it.  Is
> there a way to use an alternate statement separator, other than the
> default ';'?

The validity of Terry's answer (which is true for the general case)
aside, it might be possible to do what you are trying to do
if you could explain what it is you are really trying to accomplish,
rather than just asking about how you think you should accomplish
it...

(Ideas involving string.replace and exec come to mind, but
it's impossible to say whether that might work in your
context until you provide more background.)

-Peter



More information about the Python-list mailing list