Hello,
We would like to get the procedure to launch the software "python.exe". The
only options we have acsess are: modify, repair and uninstall.
Thanks for your help,
Rgds,
Lucile
--
https://mail.python.org/mailman/listinfo/python-list
is
Pylons the framework I look for if I want to come back to Python and
develop MVC web apps?
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Terry Reedy wrote:
>"Mage" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
>
>
>>Thank you, I will check this out. My company will switch to a jsp site.
>>Isn't jython slower (I mean performance) than java? As well as I
>>
Michael Hoffman wrote:
>
>I would have used print sum(xrange(11)) myself.
>
This is why I love python and this list.
I can't be as offtopic that you wouldn't be able to say something useful
to me about python. Thank you.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Mandus wrote:
>Wed, 03 Aug 2005 17:45:34 +0200 skrev Mage:
>
>
>> Hello,
>>
>>I started to learn python some months ago. Mostly for fun, but I
>>replaced php to python in many tools at my company in the last weeks.
>>
>>Because of our boss
quot;Sum = " + sum);
}
}
It is "print sum(range(11))" in python.
I just had to tell this, sorry for the bandwith. I suggest you to feel
lucky if you may use python at your work.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
>
>>
>ok, do i do that with cursor.commit() ?
>thanks
>
>
Yes, or maybe you should write a lightweight layer between the dbapi and
your program which can turn on and off the autocommit by calling
"commit" and "begin" as query. I did this in my pgsql layer. Using
transactions every time is almost as bad as never using them.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Or is there better way?
for (i, url) in [(i,links[i]) for i in range(len(links))]:
...
"links" is a list.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
e Eclipse with the python plugin. It never crashed. I set it to
display tabs as two spaces and Eclipse tells if I type spaces instead of
tabs by accident. I like it.
I had no luck with the code completion, but do you really need that for
writing python programs?
Mage
--
http://mail.python.org/mailman/listinfo/python-list
ogramming.
Note that python.org is second in google if you search "programming". So
we need a little more work.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Hayri ERDENER wrote:
>hi,
>what is the equivalent of C languages' goto statement in python?
>best regards
>
>
You really shouldn't use goto.
Fortunately you can't.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Danny Milosavljevic wrote:
>Hi,
>
>
>
>Examples
> ESC[2JESC[H same as "clear", clear screen, go home
> \rESC[Kprogress %dprobably what you want :)
>
>
Well, like the good old Commodore times :)
Thank you.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
ly I am using this:
for (s,i) in [(list[i],i) for i in range(len(list))]:
content = file(s).read()
sys.stdout.write(chr(8)*35 + str(i + 1) + ' of ' +
str(len(list)) + ' files read')
sys.stdout.flush()
Mage
--
http://mail.python.org/mailman/listinfo/python-list
k you. This is good for displaying the percentage.
However it fails to display this:
100 files read
200 files read
300 files read
of course all in the same line and not under the last line.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
screen? Curses starts with clearing the whole screen and it is
overkill. Many modules are on the net but I would like to resolve this
simply task with native python.
I tried:
for something:
print chr(8)*20+mystring,
but it is nasty and didn't work well.
Mage
--
)
>
>Prints the output of ls and stores the exit code into status.
>
>py> file_list = os.popen("ls").read()
>
>Stores the output of ls into file_list.
>
>
>
These commands invoke shell indeed.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
an array a() containing the words of the sentence.
>
>Now can I see how this is done in Python? - nope!
>
>
s = "This is a sentence of words"
print s.split(' ')
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Nader Emami wrote:
>L.S.,
>
>It is very simple question: Why doesn't work the next statments?
>
>import datetime
>
>today = datetime.date.today()
>
>
>
Works on python 2.3.5
Mage
--
http://mail.python.org/mailman/listinfo/python-list
: '2005-05-05 13:20:43.793551', 'id': 3},)
INFO: ({'date': '2005-05-05 13:20:43.794401', 'id': 3},)
UPDATE 2
CREATE FUNCTION
CREATE FUNCTION
INFO: ({'date': '2005-05-05 13:20:43.793551', 'id': 4},)
ERROR: invalid input syntax for type timestamp: "2005-05-05
13:20:43.793551"
---
Mage
--
http://mail.python.org/mailman/listinfo/python-list
x27;s timestamp format is not accepted by postgresql.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
sion replacing
- nice look and good design
It should be able to show tabs with some different colors than spaces
but it isn't. However other editors fail one or more of these above.
Eclipse also supports subversion, but I use the command line svn client.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Klaus Alexander Seistrup wrote:
>Mage wrote:
>
>
>
>>I tried to write a proxy script for "psql" command. I need some
>>query log. I failed to read from the file object.
>>
>>
>
>The psql command is probably linked against readline; did
pt and the
psql binary. I can simple popen('psql').write(), but I would like to log
everything, so I need stdin and stdout files.
Please help.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
>Hi,
>
>I would like to have a python script which does some computations at
>the beginning and then changes to interactive mode (by displaying the
>prompt). How can I do this?
>
>
popen()
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
The question is above: when will these file be closed?
for s in file('/etc/passwd'):
print s
file('/home/mage/test.txt','w').write('foo')
Mage
--
http://mail.python.org/mailman/listinfo/python-list
things like that.
list = [3,5,9,11]
list.append(17)
for i in list:
print i
foo = dict()
foo['bar'] = 7
foo['trooll'] = 'green'
for k,v in foo.iteritems():
print k, v
def test(**args):
for key in args.keys():
print key, args[key]
test(a='ap
Reinhold Birkenfeld wrote:
>
>Have you tried psycopg?
>
>
Thank you. It did the fetchall() in 11 secs and 13 secs with dictionary
creating. It's the fastest so far.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
).
PHP did 13 secs and it gave the result in associative array. Maybe I did
something bad.
pyPgSQL / DB-API raised a futurewarning and didn't worked.
pyPgSQL / libpg worked well. I can create php-like dictionary result in
14 secs.
Here is the code. It's only a test...
[EMAIL PROTECTED] wrote:
>I have a question on python lists.
>Suppose I have a 2D list
>list = [[10,11,12,13,14,78,79,80,81,300,301,308]]
>how do I convert it so that I arrange them into bins .
>so If i hvae a set of consecutive numbers i would like to represent
>them as a range in the list with
ompany is so huge I could cry.
We have php-copypasters.
I don't know anyone IRL who uses python. So I started to learn it.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Tim Tyler wrote:
>Mage <[EMAIL PROTECTED]> wrote or quoted:
>
>
>
>>check this: http://wiki.w4py.org/pythonvsphp.html
>>
>>
>
>Good - but it hardly mentions the issue of security - which seems
>like a bit of a problem for PHP at the moment.
>
nd it's nice.
php doesn't have any smell
- writing python programs you feel much better
check this: http://wiki.w4py.org/pythonvsphp.html
Mage
--
http://mail.python.org/mailman/listinfo/python-list
onic?
As far I see they are good only for type less a bit.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
);
*/ end of debug comment
/ if you don't really want to do it /
Mage
--
http://mail.python.org/mailman/listinfo/python-list
learn to use vi.
>
>:.,+10s/^/#
>" comment the next 10 lines
>
>
Or if you don't like that you can use sftpfs with gui editor.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
eption types after except, but there might
be many. Also I know I can write:
except:
if str(sys.exc_info()[0]) == 'exceptions.SystemExit':
raise
But honestly I would like simething like that:
except (!SystemExit):
Is this possible somehow?
Mage
--
http://mail.python.org/mailman/listinfo/python-list
Maxim Kasimov wrote:
> WOW, just greate! ... but i'd like to relax at some more interesting
> way than to comment each of rows
>
There are editors that can comment and uncomment blocks.
In worst case you can use """ to comment blocks (not elegant but
praba kar wrote:
>Dear All,
>
> In Python what is equivalent to goto statement
>
>
>
You shouldn't use goto in high-level languages.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
til I import the string module into m1 and m2
modules. I found in the manual that imported modules will be searched in
the container module first. Is it more efficient to import the string
module into main and m1 and m2 than importing only into m1 and m2?
Mage
--
http://mail.python.org/mailman/listinfo/python-list
I look for more information?
Mage
--
http://mail.python.org/mailman/listinfo/python-list
ny benchmarking, but there
>should be no substantial speed differences between the two interfaces.
>
>
>
I have seen real benchmarks. MySQL 5 is slower than postgresql and it's
also slower than firebird if you do some real work.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
the python syntax too.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
like John Cleese and Monty Python too.
So hi everyone.
Mage
--
http://mail.python.org/mailman/listinfo/python-list
43 matches
Mail list logo