Programmer's text editor, for Python and everything else (was: IDE for python)

2014-05-28 Thread Ben Finney
Greg Schroeder gmschroe...@gmail.com writes: Any gripes against vim with some tweaks? None from me; Vim is a fine programming (and programmable) editor. It is free software, like Python. This is vital for any tool in which one expects to sink an amount of effort. It means no party has

Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I use python in Windows XP platform. I find that if I write a .py file in a directory, such as windows desktop, in which a file named 'ticket.txt' is located: f=open(\ticket.txt) print f.read() In IDLE, this py file work all right. But if I launch python interpretor in the command shell like

Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I use python on Windows XP platform. I find that if I write a .py file in a directory, such as windows desktop, in which a file named 'ticket.txt' is located: f=open(ticket.txt) print f.read() In IDLE, this py file work all right. But if I launch python interpretor in the command shell like

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Fredrik Lundh
Sullivan WxPyQtKinter wrote: I use python in Windows XP platform. I find that if I write a .py file in a directory, such as windows desktop, in which a file named 'ticket.txt' is located: f=open(\ticket.txt) print f.read() \t is a tab character: print '\ticket.txt'

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
Sorry, I mistyped the line. In the program it IS: f=open(ticket.txt), no '\' included. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Fredrik Lundh
Sullivan WxPyQtKinter wrote: In IDLE, this py file work all right. But if I launch python interpretor in the command shell like this: C:\Documents and Settings\Xiaozhong Zhengpython C:\Documents and Settings\Xiaozhong Zheng\Desktop\t.py The interpretor would not find the file.

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I see. I once was a VB programmer. In VB, the current directory is always set to where the module locates before it runs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can not find a file in CMD model python when everything is OK in IDLE

2006-03-11 Thread Sullivan WxPyQtKinter
I see. I once was a VB programmer. In VB, the current directory is always set to where the module locates before it runs. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for everything?

2005-07-03 Thread Joseph Garvin
Larry Bates wrote: poorly. When new version of Python ships, you just learn what is new. If you try to keep up with C, C++, Visual Basic, ... it gets to be impossible. Hope information helps. Larry Bates Huh? Part of C++'s problem is that it takes too long for obvious good stuff to get

Re: Python for everything?

2005-07-03 Thread Joseph Garvin
Mike Meyer wrote: You wind up having to invoke the function through your data object, and then pass the data object in - sort of as an explicit self. Yeah, and us pythonists hate explicit self! ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for everything?

2005-07-03 Thread Mike Meyer
Joseph Garvin [EMAIL PROTECTED] writes: Mike Meyer wrote: You wind up having to invoke the function through your data object, and then pass the data object in - sort of as an explicit self. Yeah, and us pythonists hate explicit self! ;) Except the explicit self is on the method invocation,

Re: Python for everything?

2005-07-02 Thread TZOTZIOY
On Thu, 30 Jun 2005 20:55:20 -0400, rumours say that Mike Meyer [EMAIL PROTECTED] might have written: Actually, I was thinking of pre-KR Unix compilers. There must be something I am missing here, cause I don't understand what you mean; what is the earliest KR C compiler (Unix compiler) you

Re: Python for everything?

2005-07-02 Thread Roy Smith
Christos TZOTZIOY Georgiou [EMAIL PROTECTED] wrote: Were there other Unix C compilers before KR wrote one? Considering that KR (along with T) invented both Unix and C, I would say that the answer to the above has to be No. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for everything?

2005-07-02 Thread Mike Meyer
Christos TZOTZIOY Georgiou [EMAIL PROTECTED] writes: On Thu, 30 Jun 2005 20:55:20 -0400, rumours say that Mike Meyer [EMAIL PROTECTED] might have written: Actually, I was thinking of pre-KR Unix compilers. There must be something I am missing here, cause I don't understand what you mean;

Re: Python for everything?

2005-07-01 Thread Tom Anderson
On Thu, 30 Jun 2005 [EMAIL PROTECTED] wrote: can Python do it all? More or less. There are two places where python falls down, IMHO. One is performance: python isn't generally as fast as C or Java, even with Psyco. However, the number of cases where performance - and absolute straight-line

Re: Python for everything?

2005-07-01 Thread Luis M. Gonzalez
Let me express it with an exaple (by the way, sorry for my bad english): Suppose you are planning to build a house. You have two choices: - Option one: Buy several thousands bricks, doors, tiles, windows, etc... put them all together according to the blueprints and build your home. - Option two:

Re: Python for everything?

2005-07-01 Thread Grant Edwards
On 2005-06-30, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have read in the old days that C was used for everything. It was a systems programming language, and also did a lot of the same stuff Bash scripts and perl do now. Not really. C was used for a lot of stuff (mostly just under Unix),

Re: Python for everything?

2005-07-01 Thread Grant Edwards
On 2005-06-30, Ivan Van Laningham [EMAIL PROTECTED] wrote: As other have noted, C was never really used for everything. Unix tools were designed to connect together from the very beginning, which is what makes shell scripting so powerful. This was true before there was a C. Likewise, some

Re: Python for everything?

2005-07-01 Thread Peter Hansen
Grant Edwards wrote: [Why are Python programs referred to as scripts. Python no more a scripting language than Java, Pascal, Smalltalk, Objective C.] I think it's because the term script is a nice, simple word that evokes the idea of source file that can be directly executed, which is a

Python for everything?

2005-06-30 Thread xeys_00
I posted a article earlier pertaining programming for my boss. Now I am gonna ask a question about programming for myself. I just finished my first C++ Class. Next semester is a class on encryption(and it's probably gonna be a math class too). And finally back in programming in the fall with C++

Re: Python for everything?

2005-06-30 Thread Devan L
Python for everything except things that need to be ridiculously optimized for speed. Thats what C embedded in Python and Psyco enhanced Python code is for. Oh wait, thats still all Python... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python for everything?

2005-06-30 Thread Larry Bates
Short answer is yes. Longer answer: You will still need C for device drivers and other applications that have high performance demands. Calling C from Python is quite easy. Python can be used from short shell scripting to projects that very large (see Zope, Plone, ReportLab, etc). Other than

Re: Python for everything?

2005-06-30 Thread Roy Smith
[EMAIL PROTECTED] wrote: I have read in the old days that C was used for everything. It was a systems programming language, and also did a lot of the same stuff Bash scripts and perl do now. I learned C in the old days (1977 or maybe 78). We had plenty of other tools for scripting. Before

Re: Python for everything?

2005-06-30 Thread phil
Python is in my opinion the best all-purpose language ever designed ( lisp is extremely cool but not as all purpose.) Much more elegant than perl and far far easier to do cool things than java (java is c++ on valium). HOWEVER, all purpose needs a little disclosure. A well coded C program may be

Re: Python for everything?

2005-06-30 Thread Mike Meyer
[EMAIL PROTECTED] writes: I posted a article earlier pertaining programming for my boss. Now I am gonna ask a question about programming for myself. I just finished my first C++ Class. Next semester is a class on encryption(and it's probably gonna be a math class too). And finally back in

Re: Python for everything?

2005-06-30 Thread Ivan Van Laningham
Hi All-- Mike Meyer wrote: [EMAIL PROTECTED] writes: As other have noted, C was never really used for everything. Unix tools were designed to connect together from the very beginning, which is what makes shell scripting so powerful. This was true before there was a C. Likewise, some

Re: Python for everything?

2005-06-30 Thread Mike Meyer
Ivan Van Laningham [EMAIL PROTECTED] writes: Mike Meyer wrote: [EMAIL PROTECTED] writes: As other have noted, C was never really used for everything. Unix tools were designed to connect together from the very beginning, which is what makes shell scripting so powerful. This was true before