Re: [Tutor] Differnce between java and python (fwd)

2005-12-22 Thread Danny Yoo
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

Re: [Tutor] Differnce between java and python

2005-12-22 Thread Alan Gauld
[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

Re: [Tutor] Differnce between java and python

2005-12-22 Thread Alan Gauld
>>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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Danny Yoo
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Kent Johnson
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread pcarey
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Alan Gauld
>>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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread pcarey
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Murtog
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Alan Gauld
> 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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Kent Johnson
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

Re: [Tutor] Differnce between java and python

2005-12-21 Thread Pujo Aji
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

[Tutor] Differnce between java and python

2005-12-21 Thread shivayogi kumbar
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