issue w/ python 3.5.7

2016-03-13 Thread lucile . mage
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 alive?

2008-04-09 Thread Mage
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

Re: pain

2005-08-03 Thread Mage
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 >>

Re: pain

2005-08-03 Thread Mage
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

Re: pain

2005-08-03 Thread Mage
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

pain

2005-08-03 Thread Mage
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

Re: question about deleting records from mysql

2005-07-27 Thread Mage
> >> >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

is this pythonic?

2005-07-20 Thread Mage
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

Re: Python IDE

2005-07-19 Thread Mage
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

Re: goto

2005-07-18 Thread Mage
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

Re: goto

2005-07-18 Thread Mage
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

Re: cursor positioning

2005-07-12 Thread Mage
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

Re: cursor positioning

2005-07-11 Thread Mage
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

Re: cursor positioning

2005-07-11 Thread Mage
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

cursor positioning

2005-07-11 Thread Mage
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 --

Re: without shell

2005-06-10 Thread 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

Re: Strings for a newbie

2005-05-27 Thread Mage
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

Re: datetime

2005-05-19 Thread Mage
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

Re: postgresql plpython bug

2005-05-05 Thread Mage
: '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

postgresql plpython bug

2005-05-04 Thread Mage
x27;s timestamp format is not accepted by postgresql. Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: So many things that need to be decided....

2005-05-03 Thread Mage
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

Re: popen2 psql

2005-05-03 Thread Mage
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

popen2 psql

2005-05-02 Thread Mage
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

Re: How to start python interactively from python script?

2005-04-26 Thread Mage
[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

when will the file be closed

2005-04-24 Thread Mage
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

Re: Getting into Python, comming from Perl.

2005-04-24 Thread Mage
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

Re: postgresql modules and performance

2005-04-24 Thread Mage
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

postgresql modules and performance

2005-04-24 Thread Mage
). 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...

Re: Handling lists

2005-04-23 Thread Mage
[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

Re: Python or PHP?

2005-04-23 Thread Mage
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

Re: Python or PHP?

2005-04-23 Thread Mage
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. >

Re: Python or PHP?

2005-04-23 Thread Mage
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

Re: a=[ lambda t: t**n for n in range(4) ]

2005-04-23 Thread Mage
onic? As far I see they are good only for type less a bit. Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Mage
); */ end of debug comment / if you don't really want to do it / Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: goto statement

2005-04-21 Thread Mage
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

exception handling

2005-04-20 Thread Mage
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

Re: goto statement

2005-04-20 Thread Mage
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

Re: goto statement

2005-04-20 Thread Mage
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

modules and namespaces

2005-04-19 Thread Mage
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

packages

2005-04-18 Thread Mage
I look for more information? Mage -- http://mail.python.org/mailman/listinfo/python-list

Re: database in python ?

2005-04-13 Thread Mage
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

semicolons

2005-04-11 Thread Mage
the python syntax too. Mage -- http://mail.python.org/mailman/listinfo/python-list

hello

2005-04-10 Thread Mage
like John Cleese and Monty Python too. So hi everyone. Mage -- http://mail.python.org/mailman/listinfo/python-list