Python was designed (was Re: Multi-threading in Python vs Java)

Metallicow metaliobovinus at gmail.com
Thu Oct 24 01:31:13 EDT 2013


On Monday, October 21, 2013 9:29:34 PM UTC-5, Steven D'Aprano wrote:
> On Mon, 21 Oct 2013 01:43:52 -0700, Peter Cacioppi wrote:
> 
> Challenge: give some examples of things which you can do in Python, but 
> cannot do *at all* in C, C++, C#, Java?

Ummm... hmmm.... let me try here...

string = 'Python is the Best!'

if string:
    try:
        string = int(string)
    except Exception as exc:
        integer = str(integer)
else:
    print('Typecasting Maybe...')

I get more comments on "Typecasting" from those who don't know how to use a press more than anything, than I get from the typesetter.
#... maybe she's ignoring me...

Am I right?



More information about the Python-list mailing list