What's better about Ruby than Python?

POYEN OP Olivier (DCL) Olivier.POYEN at clf-dexia.com
Tue Aug 19 09:53:42 EDT 2003



> -----Message d'origine-----
> De : Alex Martelli [mailto:aleaxit at yahoo.com]
> Envoyé : mardi 19 août 2003 13:58
> À : python-list at python.org
> Objet : Re: What's better about Ruby than Python?
> 
> 

> Thus, the direct Python equivalent might be
> 
> import __builtins__
> __builtins__.len = someotherfunction
> 
> and THAT usage is very specifically warned against e.g. in
> "Python in a Nutshell" -- you CAN do it but SHOULDN'T (again, one
> can hope to eventually see it "officially" deprecated...!).
> 


Would that mean the end of 
import sys
sys.stdout=myLogger()
...
print 'it works'
...
sys.stdout=sys.__stdout__

? 

Sad, sad, sad. Quite useful in some way.
But I assume it could be replace by the new 
print >>>loggerInstace, "it works also, but is longer"



---OPQ, the man with unvolontary big signature.....
-------------- next part --------------
-----------------------------------------------------------------

Ce message est confidentiel ; son contenu ne represente en aucun

cas un engagement de la part de Dexia Credit Local ou de Dexia

CLF Banque. Toute publication, utilisation ou diffusion, meme

partielle, doit etre autorisee prealablement par l'emetteur. Si

vous n'etes pas destinataire de ce message, merci d'en avertir

immediatement l'expediteur.



This message is confidential ; its contents do not constitute a

commitment by Dexia Credit Local or Dexia CLF Banque. Any

unauthorised disclosure, use or dissemination, either whole or

partial, is prohibited. If you are not the intended recipient of

the message, please notify the sender immediately.

-----------------------------------------------------------------

Consultez notre site internet www.dexia-clf.fr

La cle d'une gestion optimisee du secteur public local

-----------------------------------------------------------------


More information about the Python-list mailing list