473,978 Members | 2,225 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how is python not the same as java?

both are interpreted oo langauges......

Nov 10 '06
31 1531

gavino wrote:
both are interpreted oo langauges......
How are LANs (http://en.wikipedia.org/wiki/LAN) and porns stars
(http://en.wikipedia.org/wiki/Gauge_%28porn_star%29) related to Java,
Python, Programming paradigms and trolls? ask Gavino!

Nov 10 '06 #21
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexic on.netwrote:
>
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo .comwrote:
both are interpreted oo langauges......
>
that is not correct java is compiled and the VM interprets the code

... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
can you open a commandline and start writting java code? no

the division between java (runtime) and javac is very explicit, the
compiler catches a lot of things, in python this is threaded in a
totally different way.

the pyc files are just a "catching" system for the common python
developer, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
--
http://mail.python.org/mailman/listinfo/python-list
Nov 10 '06 #22
Jorge Vargas wrote:
can you open a commandline and start writting java code?
beanshell, iirc
Nov 10 '06 #23

Jorge Vargas wrote:
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexic on.netwrote:

Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo .comwrote:
both are interpreted oo langauges......

that is not correct java is compiled and the VM interprets the code
... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
can you open a commandline and start writting java code? no
If not, then java lacks functionality -- but that (like *all* your
quibbles below) has nothing to do with the fundamental point: both
languages compile into an intermediate form which is then interprerted.
>
the division between java (runtime) and javac is very explicit, the
compiler catches a lot of things, in python this is threaded in a
totally different way.
Again, irrelevant.
>
the pyc files are just a "catching" system for the common python
developer,
Do you mean "caching"?
as for the java developer the .class files are executable
code.
So are .pyc files.
In python noone runs the pyc files, the interpreter takes care
of this for you.
Python is more functional, but again this has nothing to do with the
question.

Nov 10 '06 #24
"Jorge Vargas" <jo**********@g mail.comwrites:
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
This is not true. It is one way to avoid having your source lying around.
The same can be done with .pyo...

--
Jorge Godoy <jg****@gmail.c om>
Nov 10 '06 #25
You can get educated in java through manpower for free just apply for a
job(through thier online learning thing) but you can't add python to
your plan. :( They have pearl, c, basic, cobol also but no
python.....

https://sourceforge.net/project/show...roup_id=156455
gavino wrote:
both are interpreted oo langauges......
Nov 10 '06 #26
Er*********@msn .com wrote:
You can get educated in java through manpower for free just apply for a
job(through thier online learning thing) but you can't add python to
your plan. :( They have pearl, c, basic, cobol also but no
python.....

https://sourceforge.net/project/show...roup_id=156455
gavino wrote:
>both are interpreted oo langauges......
Pearl?
Nov 11 '06 #27
Jacques Naude <jl*@iafrica.co mwrites:
Er*********@msn .com wrote:
They have pearl, c, basic, cobol also but no python.....

Pearl?
Practical Extraction And Reporting Language.

<URL:http://en.wikipedia.or g/wiki/Perl#Name>

--
\ Lucifer: "Just sign the Contract, sir, and the Piano is yours." |
`\ Ray: "Sheesh! This is long! Mind if I sign it now and read it |
_o__) later?" -- http://www.achewood.com/ |
Ben Finney

Nov 11 '06 #28
Jorge Vargas wrote:

>
the pyc files are just a "catching" system for the common python
developer, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
this is an incorrect statement. we (the company i work for) only ship the
pyc files, and our customers _only_ run the pyc files. and our embedded
python contains no .py files. from our perspective, java .class files and
python .pyc files are treated exactly the same. and there is very little
difference between jar files containing .class files and zip files
containing .pyc files.
bryan

Nov 12 '06 #29
Jorge Vargas wrote:
On 9 Nov 2006 18:09:37 -0800, John Machin <sj******@lexic on.netwrote:
>>
Jorge Vargas wrote:
On 9 Nov 2006 16:44:40 -0800, gavino <bo******@yahoo .comwrote:
both are interpreted oo langauges......

that is not correct java is compiled and the VM interprets the code

... and what do you think is in those pesky little .pyc files you may
have noticed lying around on your hard disk?
can you open a commandline
Open it with what ? A knife ?
and start writting java code? no
And ? Some implementations of at least Haskell, OCaml, and Common Lisp
are compiled, and still offer a REPL.
the division between java (runtime) and javac is very explicit,
And ?
the
compiler catches a lot of things, in python this is threaded in a
totally different way.

the pyc files are just a "catching" system for the common python
developer
The pyc files are binary files containing Python byte-code.
>, as for the java developer the .class files are executable
code. In python noone runs the pyc files, the interpreter takes care
of this for you.
And ? The fact that the Python runtime is smart enough (lol) to silently
call the compiler when needed doesn't make Python (well, CPython...)
more or less "interprete d" or "compiled".
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in 'o****@xiludom. gro'.split('@')])"
Nov 13 '06 #30

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3484
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data "proves" something) to consider the next time the "Python makes developers more productive" thread starts up again. Background ========== An employee who left our company had written a log processor we use to read records from text files (1...
699
35016
by: mike420 | last post by:
I think everyone who used Python will agree that its syntax is the best thing going for it. It is very readable and easy for everyone to learn. But, Python does not a have very good macro capabilities, unfortunately. I'd like to know if it may be possible to add a powerful macro system to Python, while keeping its amazing syntax, and if it could be possible to add Pythonistic syntax to Lisp or Scheme, while keeping all of the...
38
3774
by: kbass | last post by:
In different articles that I have read, persons have constantly eluded to the productivity gains of Python. One person stated that Python's productivity gain was 5 to 10 times over Java in some in some cases. The strange thing that I have noticed is that there were no examples of this productivity gain (i.e., projects, programs, etc.,...). Can someone give me some real life examples of productivity gains using Python as opposed other...
13
3364
by: Ajay | last post by:
hi! can you call a Python application from a Java program? does this require any additional package to be installed? thanks cheers
36
6450
by: Andrea Griffini | last post by:
I did it. I proposed python as the main language for our next CAD/CAM software because I think that it has all the potential needed for it. I'm not sure yet if the decision will get through, but something I'll need in this case is some experience-based set of rules about how to use python in this context. For example... is defining readonly attributes in classes worth the hassle ? Does duck-typing scale well in complex
114
9997
by: Maurice LING | last post by:
This may be a dumb thing to ask, but besides the penalty for dynamic typing, is there any other real reasons that Python is slower than Java? maurice
28
4390
by: liorm | last post by:
Hi everyone, I need to write a web app, that will support millions of user accounts, template-based user pages and files upload. The client is going to be written in Flash. I wondered if I coudl get your opinions - what do you think is the best language to use for the server? Python or Java? And I'm talking scalability, object oriented, development tools etc. Thansk for any idea! I'd love to hear it Happy New 2006,
25
5801
by: abhinav | last post by:
Hello guys, I am a novice in python.I have to implement a full fledged mail server ..But i am not able to choose the language.Should i go for C(socket API) or python for this project? What are the advantages of one over the other in implementing this server.which language will be easier? What are the performance issues?In what language are mail servers generally written?
118
6854
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
112
13957
by: mystilleef | last post by:
Hello, What is the Pythonic way of implementing getters and setters. I've heard people say the use of accessors is not Pythonic. But why? And what is the alternative? I refrain from using them because they smell "Javaish." But now my code base is expanding and I'm beginning to appreciate the wisdom behind them. I welcome example code and illustrations.
0
10357
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10175
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11827
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
11417
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11590
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10920
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7620
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6423
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3772
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.