def double(x):
return x * 2
##
just works.
Does this make sense so far? Please feel free to ask more questions.
There's also a book by Bruce Tate called "Beyond Java" that talks about
these issues.
Best of wishes!
-- Forwarded message --
Date: Thu, 22 Dec
[Putting this back on the list so others get the context info]
- Original Message -
From: "shivayogi kumbar" <[EMAIL PROTECTED]>
Subject: Re: [Tutor] Differnce between java and python
Sir I have completed my Msc(c.s).I have worked on java and also done my
project on ja
>>Another example is that Python supports "Duck Typing", that is
>>its type checking is protocol based.
>
> I see your point, but duck typing seems awfully implicit and
> behind-the-scenes.
When you first encounter it it is. I came from a C++ and Pascal
background where strict typing was the rule
On Wed, 21 Dec 2005, shivayogi kumbar wrote:
> sir plz tell me the main differnces between java and python? And What
> are the advantages of python?
Hi Shivayogi,
When you post on a mailing list that's dedicated to help teach programming
with Python, you do anticipate what kind of answers you
Alan Gauld wrote:
>>>Python is more forgiving
>>
>>Could you elaborate on this feature?
>
>
> Python allows you to do things, without complaining, that Java just
> won't allow.
Another way to put it is, Java is way more picky than Python. Much of this is a
consequence of Python's dynamic typin
Alan, thanks for the response.
>Python allows you to do things, without complaining, that Java just
>won't allow.
Checked exceptions are a pain, but at least there's no ambiguity about what
f(x) is gonna throw (unless it throws a RuntimeException). Nevertheless, I
agree: checked exceptions are p
>>Python is more forgiving
>
> Could you elaborate on this feature?
Python allows you to do things, without complaining, that Java just
won't allow.
As one example: you create a Java module M containing a class C
with a method F that throws exception E. Now to use that in your
code, say calle
Mr Gauld wrote:
>Python is more forgiving
Could you elaborate on this feature?
Thanks,
Pete
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
A good point is that Python is fun to program with. But the jobs point is important too. In my country 80% of the jobs for informaticĀ“s area is to C#, VB, Delphi and Java(50% of the 80%) programmers. So, having a job with Python is hard. :(
Cheers! =]On 12/21/05, Alan Gauld <[EMAIL PROTECTED]> wrot
> sir plz tell me the main differnces between java and python?
What kind of information do you want? Differences in syntax?,
architecture? resource usage? They are completely different
programming languages. Do you have a programming background?
If so which languages do you know? That way we ca
Pujo Aji wrote:
> Hi,
>
> you can check this website:
> http://www.ferg.org/projects/python_java_side-by-side.html
Don't miss the links on that site, either.
Compared to Java, Python is compact, expressive and lightweight. It is
dynamically typed
with first-class functions and far better built
Hi,you can check this website:http://www.ferg.org/projects/python_java_side-by-side.htmlabove all.python is very compact, clear language.
I did some code using C# for 1 year, and when I move to python I can rewrite it even more in about 3 months.My code becomes clearer than ever beforeCheers,pu
sir plz tell me the main differnces between java and python?And What are the advantages of python?
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
13 matches
Mail list logo