>> ... And I am interested in cleaning this up. I should probably
>> start with the matter of databases, since that's something I won't be able
>> to easily change once clients actually start entering data. Please share
>> with me any further concepts or questions to get me thinking how to redesign
> ... But it isn't very fast.
> For executemany I have some hundred thousend lines in a list of tuples.
> I joined() these lines to form an insert into table values () statement
> and
> blew it into the mysql cmdline client via os.popen().
> This was 60(!) times faster and loaded my table in s
> 3) Most text files have no header specifying the encoding anyway. How
> should the programm/programmer know? And often he does not need to
> know anyway.
What? Off COURSE texts have no header stating the encoding! And it is
the programmer's responsibility to know what a text's encoding is. So
> Anybody have a solution for Windows (XP) Explorer search not finding
> ordinary text in *.py files?
This is a known issue. You won't be able to search PHP or even VBScript
files either, as they are not "known" text formats and are therefore
considered "binary, nothing to see here, move along p
Funny how everybody is speaking about the ease of merging. It is the
very least feature I have ever needed from source code control. Most
version control system are really brilliant in creating a version mess
of intertwined branches, but off course I use version control to
*PREVENT* such a mess. So
If it so fast growing, I'd rather wait for a stable release...
LOL
--
http://mail.python.org/mailman/listinfo/python-list
asdf wrote:
Basically what i want to do is to read a file
that is being constantly appended to but which
is located on a remote server.
I found this for doing BASH's tail -f in python:
import os
tailoutputfile = os.popen('tail -f syslog')
while 1:
line = tailoutputfile.readline()
if len(
Penny Y. wrote:
> I saw some scripts have a line at its begin:
>
> # encoding:gb2312
>
> what's this? Why need it? thanks.
>
My guess is that it is the automatic work of some sort of editor that
does not understand how encodings work. See what happens if the file was
utf-16le encoded, for exam
Mark Dickinson wrote:
> On Feb 9, 5:03 pm, Neal Becker <[EMAIL PROTECTED]> wrote:
>> If I use C code to turn off the hardware signal, will that stop python from
>> detecting the exception, or is python checking for 0 denominator on it's
>> own (hope not, that would waste cycles).
>
> Yes, Python d
> I have an application
> that is accessible through the web and also through desktop
> applications and both clients should be presented a simple dialog GUI.
> This dialog will only include text fields, radio buttons and a file
> upload field.
>
> My idea is that if there was a lightweight G
> shell_cmd = 'ls -l | grep mytest.log'
> child = pexpect.spawn ('ssh [EMAIL PROTECTED]')
I think you can give the ssh command an option to execute a file
remotely. That way, one command would be enough.
--
http://mail.python.org/mailman/listinfo/python-list
11 matches
Mail list logo