regex into str

Alex Martelli aleaxit at yahoo.com
Mon Aug 30 15:25:02 CEST 2004


Peter Kleiweg <in.aqua.scribis at nl.invalid> wrote:
   ...
> > > Is there a way to tell Python that '' should be something else
> > > than str?
> >
> > No.
> 
> Bummer.

I think you might be happier with Ruby -- beyond a number of trivia, the
big difference between the two, from my POV, is that in Ruby you can
alter built-ins, in Python you can't.  Which is why I personally stick
with Python, but to anyone who mostly likes Python but believes he would
get better programs by modifying built-ins, I suggest Ruby.


Alex



More information about the Python-list mailing list