Re: Trying to choose between python and java

2007-07-20 Thread rvu44vs02
On Sun, 15 Jul 2007 at 22:28:08 -0700, Alex Martelli wrote: James T. Dennis [EMAIL PROTECTED] wrote: ... You can start writing all your code now as: print() --- calling the statement as if it were a function. Then you're future Python ...except that your output format will thereby

Re: Trying to choose between python and java

2007-07-20 Thread James Matthews
You can always use jython. ;) On 7/20/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sun, 15 Jul 2007 at 22:28:08 -0700, Alex Martelli wrote: James T. Dennis [EMAIL PROTECTED] wrote: ... You can start writing all your code now as: print() --- calling the statement as if it were a

Re: Trying to choose between python and java

2007-07-16 Thread Bruno Desthuilliers
Anthony Irwin a écrit : Hi All, (snip) Also does anyone else have any useful comments about python vs java without starting a flame war. I guess I'd better not answer, then !-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-07-15 Thread Alex Popescu
I read in this thread lots of different (hopefully personal) opinions on the question of Java vs Python, so I thought I will post mines too (with the amendment that I am a Java guy, spending there more than 10 years). I don't think you can do a performance comparison upfront (without having it

Re: Trying to choose between python and java

2007-07-15 Thread Alex Martelli
James T. Dennis [EMAIL PROTECTED] wrote: ... You can start writing all your code now as: print() --- calling the statement as if it were a function. Then you're future Python ...except that your output format will thereby become disgusting...: name = 'Alex' print 'Hello', name, 'and

Re: Trying to choose between python and java

2007-07-13 Thread James T. Dennis
Hamilton, William [EMAIL PROTECTED] wrote: From: Beliavsky On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped

Re: Trying to choose between python and java

2007-05-19 Thread Paddy
On May 16, 2:21 am, Anthony Irwin [EMAIL PROTECTED] wrote: Hi All, Thanks to all that replied. SNIP I saw on the python site a slide from 1999 that said that python was slower then java but faster to develop with is python still slower then java? Short answer: It might be. Long answer:

Re: Trying to choose between python and java

2007-05-17 Thread [EMAIL PROTECTED]
Cameron Laird wrote: In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Anthony Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] . . . | #5 someone said that they used to use python but

Re: Trying to choose between python and java

2007-05-17 Thread Steve Holden
[EMAIL PROTECTED] wrote: Cameron Laird wrote: In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Anthony Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] . . . | #5 someone said that they used to

Re: Trying to choose between python and java

2007-05-16 Thread Michael Bentley
On May 15, 2007, at 8:21 PM, Anthony Irwin wrote: I saw on the python site a slide from 1999 that said that python was slower then java but faster to develop with is python still slower then java? I guess that all depends on the application. Whenever I have a choice between using

Re: Trying to choose between python and java

2007-05-16 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On May 15, 5:16 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Beliavsky a écrit : On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated

Re: Trying to choose between python and java

2007-05-16 Thread Aahz
In article [EMAIL PROTECTED], Aahz [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Anthony Irwin [EMAIL PROTECTED] wrote: #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped

Re: Trying to choose between python and java

2007-05-16 Thread Matimus
I tend to use the shebang #!/usr/bin/env python in my scripts so far but I imagine that having that would not work on say windows. Or is there some kind of file extension association for people running windows instead of the shebang? The shebang is ignored in Windows (as far as I know). There

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article [EMAIL PROTECTED], Terry Reedy [EMAIL PROTECTED] wrote: Anthony Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] . . . | #5 someone said that they used to use python but stopped because the |

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article [EMAIL PROTECTED], Paul Melis [EMAIL PROTECTED] wrote: Anthony Irwin wrote: Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar

Re: Trying to choose between python and java

2007-05-16 Thread Cameron Laird
In article [EMAIL PROTECTED], Paul Melis [EMAIL PROTECTED] wrote: . . . your program comes out on the other platforms. You could use a GUI toolkit that draws its own widgets instead of one that uses the native controls,

Re: Trying to choose between python and java

2007-05-15 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Anthony Irwin wrote: #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar There are .egg files but usually distributing a program consisting of several files isn't a

Re: Trying to choose between python and java

2007-05-15 Thread Terry Reedy
Anthony Irwin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] | #2 What database do people recommend for using with python that is | easy to distribute across linux, mac, windows. Check out the sqlite3 module. (But I have not used it yet). | #5 someone said that they used to use

Re: Trying to choose between python and java

2007-05-15 Thread Steven Howe
Anthony Irwin wrote: Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute

Re: Trying to choose between python and java

2007-05-15 Thread Paul Melis
Anthony Irwin wrote: Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute

Re: Trying to choose between python and java

2007-05-15 Thread Ant
On May 15, 6:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar As someone else has said, Python has eggs:

Re: Trying to choose between python and java

2007-05-15 Thread half . italian
#3 Is there any equivalent to jfreechart and jfreereport (http://www.jfree.org for details) in python. ChartDirector http://www.advsofteng.com/download.html Again, not free for commercial use, but very versatile. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Anthony Irwin a écrit : Hi All, I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Steven Howe a écrit : (snip) Flame war? Here amongst all the reasonable adults programmers? It never happens. Lol ! +1 QOTW -- http://mail.python.org/mailman/listinfo/python-list

Re: Trying to choose between python and java

2007-05-15 Thread Gabriel Genellina
En Tue, 15 May 2007 05:43:36 -0300, Bruno Desthuilliers [EMAIL PROTECTED] escribió: Is code written today likely to still work in 5+ years or do they depreciate stuff and you have to update? I still use code written more than five years ago. Just as an example, PIL (Python Imaging Library)

Re: Trying to choose between python and java

2007-05-15 Thread Nick Craig-Wood
Anthony Irwin [EMAIL PROTECTED] wrote: #4 If I write a program a test it with python-wxgtk2.6 under linux are the program windows likely to look right under windows and mac? wx adopts the native look and feel for the platform. I've used it under linux and windows where it looks fine! I've

Re: Trying to choose between python and java

2007-05-15 Thread Paul Boddie
On 15 May, 07:30, Anthony Irwin [EMAIL PROTECTED] wrote: I am currently trying to decide between using python or java and have a few quick questions about python that you may be able to help with. #1 Does python have something like javas .jar packages. A jar file contains all the program

Re: Trying to choose between python and java

2007-05-15 Thread Kirk Job Sluder
Anthony Irwin [EMAIL PROTECTED] writes: #1 Does python have something like javas .jar packages. A jar file contains all the program files and you can execute the program with java -jar program.jar Python does this with eggs and distutils that copy your files into the proper location. For os

Re: Trying to choose between python and java

2007-05-15 Thread sturlamolden
On May 15, 7:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: #1 Does python have something like javas .jar packages. Yes. .egg files. #2 What database do people recommend for using with python that is easy to distribute across linux, mac, windows. Depends on your needs: 1. Berkely DB - not

Re: Trying to choose between python and java

2007-05-15 Thread Beliavsky
On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped working. Is code written today likely to still work in 5+ years or

RE: Trying to choose between python and java

2007-05-15 Thread Hamilton, William
From: Beliavsky On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped working. Is code written today likely to

Re: Trying to choose between python and java

2007-05-15 Thread Matimus
#3 Is there any equivalent to jfreechart and jfreereport (http://www.jfree.orgfor details) in python. I haven't used either extensively but you might check out ReportLab for report generation (http://www.reportlab.org). And MatPlotLib for creating plots, charts and graphs

Re: Trying to choose between python and java

2007-05-15 Thread sturlamolden
On May 15, 7:29 pm, Beliavsky [EMAIL PROTECTED] wrote: print Hello, world. a substantial fraction of Python programs in existence, including all of my programs, will be broken. Draw your own conclusions. In the vent that your Python 2.x install will be fubar and suddenly stop working the day

Re: Trying to choose between python and java

2007-05-15 Thread Robert Kern
sturlamolden wrote: On May 15, 7:29 pm, Beliavsky [EMAIL PROTECTED] wrote: print Hello, world. a substantial fraction of Python programs in existence, including all of my programs, will be broken. Draw your own conclusions. In the vent that your Python 2.x install will be fubar and

RE: Trying to choose between python and java

2007-05-15 Thread Duncan Booth
Hamilton, William [EMAIL PROTECTED] wrote: No, they'll work just fine. They just won't work with Python 3. It's not like the Python Liberation Front is going to hack into your computer in the middle of the night and delete you 2.x installation. Is that a breakaway group from the PSU? --

Re: Trying to choose between python and java

2007-05-15 Thread Ant
On May 15, 9:17 am, Ant [EMAIL PROTECTED] wrote: ... I can't remember what it is I use - I haven't got access to my server at the moment... But look in the cheese shop - I'm fairly sure it was from there. I'll post details if I remember. Alternatively this looks good (though I haven't tried it

Re: Trying to choose between python and java

2007-05-15 Thread Aahz
In article [EMAIL PROTECTED], Anthony Irwin [EMAIL PROTECTED] wrote: #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped working. Is code written today likely to still work in 5+

Re: Trying to choose between python and java

2007-05-15 Thread Bruno Desthuilliers
Beliavsky a écrit : On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember which) and old code stopped working. Is code written today likely to still

Re: Trying to choose between python and java

2007-05-15 Thread [EMAIL PROTECTED]
On May 15, 5:16 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Beliavsky a écrit : On May 15, 1:30 am, Anthony Irwin [EMAIL PROTECTED] wrote: snip #5 someone said that they used to use python but stopped because the language changed or made stuff depreciated (I can fully remember

RE: Trying to choose between python and java

2007-05-15 Thread Delaney, Timothy (Tim)
Duncan Booth wrote: Hamilton, William [EMAIL PROTECTED] wrote: No, they'll work just fine. They just won't work with Python 3. It's not like the Python Liberation Front is going to hack into your computer in the middle of the night and delete you 2.x installation. Is that a

Re: Trying to choose between python and java

2007-05-15 Thread Anthony Irwin
Hi All, Thanks to all that replied. I noticed that someone said that the way you used regular expressions changed at some point. That is probably what upset the person I was talking to about python they are a huge perl fan and use regular expressions heavily. The reason for asking about the