From: Serge Orlov Date: 2004-01-21T06:45:01+09:00 Subject: Re: New to Python: my impression v. Perl/Ruby "Ville Vainio" wrote in message news:du71xpue3rm.fsf@mozart.cc.tut.fi... > >>>>> "Phil" == Phil Tomson writes: > > Phil> Different strokes for different folks, I guess. I remember > Phil> that one of the first things I saw about Ruby was that even > Phil> interger literals were objects that can receive messages and > Phil> thinking how wonderful that was. As you say, you're not > > Ints are objects in python too: > > >>> a=1 > >>> a.__lshift__(1) > 2 > > Though "sending messages" to int literals is a syntax error. Try this: >>> (1).__lshift__(1) 2 -- Serge.