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
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
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
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'
Sorry, I mistyped the line. In the program it IS:
f=open(ticket.txt), no '\' included.
--
http://mail.python.org/mailman/listinfo/python-list
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.
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
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
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
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
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,
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
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
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;
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
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:
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),
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
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
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++
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
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
[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
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
[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
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
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
27 matches
Mail list logo