monitoring friendly applications

2009-05-20 Thread Imbaud Pierre
I have A LOT of batch applications to monitor, on linux machines, mostly written in python. I have to know: - which are active, at a given moment? - when did the last run occur? How long did it last? - for some daemons: are they stuck? generally, waiting for i/o, or lost in some C call. I coul

Re: monitoring friendly applications

2009-05-24 Thread Imbaud Pierre
Thanks a lot. Your suggestions lead me to pypi, (I knew it but didnt remember the exact spelling, and no obvious link from www.python.org), and from there to supervisord, that answers pretty well my problem. Thanks again. Tim Roberts wrote: Imbaud Pierre wrote: I have A LOT of batch

2d graphics - what module to use?

2008-07-24 Thread Pierre Dagenais
What is the easiest way to draw to a window? I'd like to draw something like sine waves from a mathematical equation. Newbie to python. -- http://mail.python.org/mailman/listinfo/python-list

from Tkinter import *,win = Tk() "from Tkinter import *"

2008-08-03 Thread Pierre Dagenais
from Tkinter import * win = Tk() If I type those two lines at the command prompt (in WindowsXP) I get a new window on my screen. Yet if I copy those lines in a file called test.py and then run "python test.py" at the command prompt I am returned to the command prompt and nothing shows up on t

Re: python library for web discussions

2006-03-19 Thread Pierre Quentel
Take a look at Karrigell (http://www.karrigell.com), it has a built-in forum application Regards, Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Pierre Quentel
I added an entry in Wikipedia for information, just like other Python web frameworks have already done. If the style doesn't fit Wikipedia's I'm sorry and willing to learn how to improve it ; the reason I read was "Obvious, if elaborate, link spam. Really should be speedied, but I can't find a CSD

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Pierre Quentel
Ok, thanks for the information. I have rewritten the page in a more neutral way and removed the tutorial-like part, I'll put in in wikibooks -- http://mail.python.org/mailman/listinfo/python-list

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Pierre Quentel
modify a script with a text editor, you see the result of the change the next time you reload the page Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: New Karrigel page in Wikipedia

2006-04-13 Thread Pierre Quentel
ecify the script you want : http://foo.example.com/app1/default.py. Same thing for app2 of course. Absolutely no need to start two instances of the server on different ports Pierre -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Spyder v1.0.2 released

2010-01-10 Thread Pierre Raybaut
"Run selection or current line" option by "Run selection or current block" (without selection, this feature is similar to MATLAB's cell mode) * ...and a lot of minor bugfixes. - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic HTML controls

2010-01-12 Thread Pierre Quentel
der in col_headers])) for result in data_list: table <= TR(Sum([TD(value) for value in result])) print table The operator <= means "add child" in the DOM tree structure, it avoids having to nest tags with brackets - Pierre -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Spyder v1.0.3 released

2010-01-17 Thread Pierre Raybaut
eractive/external console * integrated file/directories explorer * MATLAB-like path management ...and more! Spyder is part of spyderlib, a Python module based on PyQt4 and QScintilla2 which provides powerful console-related PyQt4 widgets. - Pierre -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Python(x,y) 2.6.3.0 released

2009-10-18 Thread Pierre Raybaut
d.php - Pierre -- http://mail.python.org/mailman/listinfo/python-list

[ANN] Spyder v1.0.0 released

2009-10-18 Thread Pierre Raybaut
, a Python module based on PyQt4 and QScintilla2 which provides powerful console-related PyQt4 widgets. I would like to thanks here all the Spyder users and especially the beta testers and contributors: without them, Spyder wouldn't be as stable, easy-to-use and full-featured as it is. -

Karrigell 3.0.4 published

2010-02-27 Thread Pierre Quentel
flexible url resolution - bug fix for default host configuration and for cookie expiry date Home page : http://karrigell.sourceforge.net Download : http://sourceforge.net/project/showfiles.php?group_id=67940 Google Group : http://groups.google.com/group/karrigell Cheers, Pierre -- http

Re: Karrigell 3.0.4 published

2010-02-27 Thread Pierre Quentel
On 27 fév, 08:57, Pierre Quentel wrote: > Hi, > > A new version of the web framework Karrigell is on line > > The main changes are : > - more robust session management in multi-threaded and multi-process > environments > - Unicode management in the HTMLTags module (HTM

Re: (a==b) ? 'Yes' : 'No'

2010-03-30 Thread Pierre Quentel
unless. > > -- > John Bokma                                                               j3b > > Hacking & Hiking in Mexico -  http://johnbokma.com/http://castleamber.com/- > Perl & Python Development I'm surprised nobody proposed a solution with itertools ;-) - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script error when using print

2010-04-06 Thread Pierre Quentel
s suggested by the fact that your first script "runs", i.e. probably prints "Hello World"). In this case the "not found" error in the second script would mean that the framework requires a function in the script - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Cookie Script: Not recognising Cookie

2010-04-08 Thread Pierre Quentel
E' in os.environ: cookie = Cookie.SimpleCookie(os.environ['HTTP_COOKIE']) if cookie.has_key('SESSIONID'): # web client has been here before : increment number of visits set_cookie['SESSIONID'] = int(cookie['SESSIONID'].value) +1 code = "You have been here %s times." % cookie['SESSIONID'].value else: code = "I Have a cookie, but SESSIONID does not exist" print "Content-Type: text/html" print set_cookie.output() # send cookie to web client print print HTML_template % code - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2010-06-03 Thread Pierre Quentel
cussions, and even an unintuitive way of entering links... I'm not saying that pythonforum.org is the best solution but it certainly looks more attractive than c.l.p. to the new generation of Python users - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Forum

2010-06-04 Thread Pierre Quentel
On 4 juin, 07:11, Steven D'Aprano wrote: > On Thu, 03 Jun 2010 03:16:03 -0700, Pierre Quentel wrote: > > So the OP's initiative should be an incentive to think on the format of > > the interaction between all the range of Python users, from newbees to > > gurus. We

Generator (re-)definition within a loop

2010-06-18 Thread Pierre Reinbold
Hi all, This is my first post on the list. I'm mainly a sysadmin and no expert in programming languages, so this may be a stupid question but it puzzles me. I was pondering on the documentation of the function product(*args, **kwds) in the itertools module. It is said that: This function is equi

Re: Generator (re-)definition within a loop

2010-06-21 Thread Pierre Reinbold
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 06/18/2010 11:48 PM, Terry Reedy wrote: > On 6/18/2010 3:57 PM, Pierre Reinbold wrote: > >> def genexp_product(*args): >> pools = map(tuple, args) >> result = [[]] >> for pool in pools: >>

Python install has difficulties with accented characters in path

2010-07-06 Thread Pierre Thibault
I am building from the source and installing Python on my machine. I added these tests failed: test_doctest test_httpservers test_logging But I moved the Python installation folder on another directory and the failed tests vanished when I tried again. The difference? The new directory does not h

Re: Python install has difficulties with accented characters in path

2010-07-06 Thread Pierre Thibault
On 6 juil, 17:37, Thomas Jollans wrote: > Before filing a bug, best test it with Python 2.7 (just released), 3.1, > and, if possible, py3k trunk. > > I just tried to reproduce this with a current py3k checkout, where it > worked. Probably not an issue in Python 3.x due to the changed unicode > han

Any reason www.python.org is slow?

2010-07-10 Thread Pierre Rouleau
All, I have been finding python.org site very slow for the last year and probably before. Is there any known reason why the site is slow? I tried accessing it from several locations and I always get to wait several seconds for a page to load (in any browser/OS). Thanks -- Pierre -- http

Re: Any reason www.python.org is slow?

2010-07-10 Thread Pierre Rouleau
gards > > Antoine. Merci Antoine! I did disable IPv6 on my computer at home and it did speed it up. I'll check the other computers where I experienced the same slowness. Thanks again! -- Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: Any reason www.python.org is slow?

2010-07-10 Thread Pierre Rouleau
terface I am using. Access to www.python.org went slow for Firefox and Safari running directly under OS/X. However, access for Firefox running inside VMWare-based Linux Ubuntu 9.04 was fine! I tried pages from Ubuntu first, got them right away, then tried the same page under OS/X and was waiting for

Re: Perl's @foo[3,7,1,-1] ?

2009-06-16 Thread Pierre Bourdon
On Wed, Jun 17, 2009 at 04:14, Steven D'Aprano wrote: > What's np.arange? import numpy as np -- Pierre "delroth" Bourdon Étudiant à l'EPITA / Student at EPITA -- http://mail.python.org/mailman/listinfo/python-list

Re: fastest native python database?

2009-06-17 Thread Pierre Bourdon
Sybase or MySQL. If you just need something which does not depend on any external libraries (that's what I understand in "just needs python"), you should also consider sqlite3 as it is a built-in module in Python 2.5 and newer. You do not need modules like pysqlite to use it. -

Re: fastest native python database?

2009-06-18 Thread Pierre Quentel
peed comparisons with Gadfly, KirbyBase (another pure- Python DB, not maintained anymore) and SQLite. You can find the results on the buzhug home page : http://buzhug.sourceforge.net The conclusion is that buzhug is much faster than the other pure- Python db engines, and (only) 3 times slower than SQLite - Pierre -- http://mail.python.org/mailman/listinfo/python-list

Re: select lines in python

2009-07-15 Thread Pierre Quentel
his case ...) Using re here is probably not the best way. It may happen that a sequence appearing in a column also appears in another one ; and when the tests become more complex the regular expression itself might become complex, or even impossible (imagine the OP wants to test that the numeric values are below a certain threshold) - Pierre -- http://mail.python.org/mailman/listinfo/python-list

staticmethod(cls)

2025-09-10 Thread Pierre Asselin
For reasons I won't go into I ended up defining classes inside of a class body. That's not in the manual, but I see no reason it would fail. But then, I accidentally decorated the inner classes with @staticmethod! It didn't break anything, but it had an interesting side effect: help() and pydoc on

Re: an adventure: a Lisp-style linked list

2025-09-10 Thread Pierre Asselin
Ethan Carter wrote: > def __init__(self, d, ls): > self.head = d > self.tail = ls Why not def __init__(self, d, ls=None): and avoid the need for a List.Empty ? -- pa at panix dot com -- https://mail.python.org/mailman3//lists/python-list.python.org

how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Jean-Pierre Miceli
Hi all, I'm working on a tool which enable support of tab completion using the readline modul. And I have a problem with set_completion_display_matches_hook function I've created a display hook function and registered it. It is called and it prints the desire messages. But once it has completed,

Re: how-to use readline.set_completion_display_matches_hook()?

2012-11-07 Thread Jean-Pierre Miceli
Thanks, I will try rl. Have a nice day J-P Le 7 nov. 2012 à 14:14, Stefan H. Holek a écrit : > On 07.11.2012, at 11:36, Jean-Pierre Miceli wrote: > >> Hi all, >> >> I'm working on a tool which enable support of tab completion using the >> readline

Encoding problem when launching Python27 via DOS

2011-04-10 Thread Jean-Pierre M
I created a simple program which writes in a unicode files some french text with accents! *# -*- coding: cp1252 -*-* *#!/usr/bin/python* *'''* *Created on 27 déc. 2010* * * *@author: jpmena* *'''* *from datetime import datetime* *import locale* *import codecs* *import os,sys* * * *class Log(object)

Re: Encoding problem when launching Python27 via DOS

2011-04-11 Thread Jean-Pierre M
blicActuel.cmd * *Page de codes active : 1252* *encodage systeme:ascii* *ascii* *encodage systeme:ascii* *ascii* And the Generated Log file showsnow the expected result: *11/04/11-10:53:44 : premier message de Log à accents * *11/04/11-10:53:44 : second message de Log* Thanks. If you have other li

Writing Exif File

2011-04-20 Thread Jean-Pierre M
I want to enter Comments of a picture in a JPeg file. Is there a library in Python which allow me to do that without having to reinvent the wheel? The target is to read those comments in my private webSite using the php exif_read_data function (http://php.net/manual/fr/book.exif.php) -- ht

Re: BeautifulSoup help !!

2016-10-07 Thread Pierre-Alain Dorange
ve the page, extract data, extract last river level and mean the 24h last levels. <https://www.dropbox.com/sh/k5974t374zmcoj6/AACes_Xo5DrxCbE1RjSaeKXYa?dl=0> Note : it was probably not beautiful python code, but it works for the purpose it was written. -- Pierre-Alain Dorange

Re: How to process syntax errors

2016-10-10 Thread Pierre-Alain Dorange
uested but that only a hack and should not be used in real world. -- Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- https://mail.python.org/mailman/listinfo/python-list

Re: How to process syntax errors

2016-10-11 Thread Pierre-Alain Dorange
means it is most definitely > meant to be able to be caught. Using compile() function yes. So yes there is a way to check "syntax error" before executing code (using compile function and exceptions) but it was not standard, nor widely used... It was still a hack for me, but perhaps

Re: Python code is compiled before execution

2016-10-11 Thread Pierre-Alain Dorange
interpretation, byte-code compilation, JIT compilation, AOT compilation... So yes Python compile (bytecode). -- Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licens

Re: Python code is compiled before execution

2016-10-11 Thread Pierre-Alain Dorange
trange the initial request. And sure, i overinterpret or simplify thing (compiling)... But it seems that all this talk do not interested the initial requester (Mr Puneet) : at that time he has not answer to the thread. -- Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/&

Re: How to process syntax errors

2016-10-12 Thread Pierre-Alain Dorange
m just an amateur developer. But what confuse me, is that Python require "real live" interpratation of the code to work properly (or perhaps i also confuse on that but Python rely on interpretation of the code to conform to its own standard, ie variables can change type during execution...) -- Pierre

Re: How to process syntax errors

2016-10-14 Thread Pierre-Alain Dorange
python to understand your new syntax, just write a small interpreter to translate your new language to python. -- Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses

[tkinter] widget size adjustment

2016-06-19 Thread Pierre-Alain Dorange
at to do from that. Any clue or advice or tutorial ? -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- https://mail.python.org/mailman/listinfo/python-list

Re: [tkinter] widget size adjustment

2016-06-21 Thread Pierre-Alain Dorange
he cell where the canvas widget is put). I think i can resize the canvas, but i can't find a way to get the available space after resize. Perhaps using the grid manager is not the godd idea for that ? I except it was more understandable. -- Pierre-Alain Dorange<http://microwar.sour

Re: Can math.atan2 return INF?

2016-06-21 Thread Pierre-Alain Dorange
quadrant (for angle answer). -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- https://mail.python.org/mailman/listinfo/python-list

Re: [tkinter] widget size adjustment

2016-06-21 Thread Pierre-Alain Dorange
to see a different portion. So i except the map to be resized to show a bigger portion of the whole map : no streching. -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.

Re: Can math.atan2 return INF?

2016-06-21 Thread Pierre-Alain Dorange
Steven D'Aprano wrote: > py> math.atan2(NAN, 0) > nan > > I think that the only way it will return a NAN is if passed a NAN. yes of course if you pass an invalid argument (NAN is not a real value, atan2 except coordinate x,y), the result would be invalid... --

Re: Can math.atan2 return INF?

2016-06-22 Thread Pierre-Alain Dorange
been NaN too but i'm not a math expert, but the limit of atan2 would be 45°, so pi/4 radians (0,7854). As x,y are coordinates, the both infinite would tend toward 45°. x only infinite would be 0° (0 radians) y only infinite woudl be 180° (pi/2 radians) -- Pierre-Alain Dorange&

Re: [tkinter] widget size adjustment

2016-06-22 Thread Pierre-Alain Dorange
pmx-bigmap> the tkinter code is in pmx.py the canvas class was TMap GUI was created in main_gui.__init__() callback function was main_gui.resize() -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons &quo

Re: [tkinter] widget size adjustment

2016-06-22 Thread Pierre-Alain Dorange
not explore this, i just thought NSEW was also CENTERED. Many Thanks. -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- https://mail.python.org/mailman/listinfo/python-list

Re: Can math.atan2 return INF?

2016-06-23 Thread Pierre-Alain Dorange
ncy is always atan2(y,x) tend to pi/4 if you looks at lot od y and x that will be grater and greater each time : the final frontier would always be pi/4, even if t take a long time to reach it. -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence C

Re: Can math.atan2 return INF?

2016-06-23 Thread Pierre-Alain Dorange
Steven D'Aprano wrote: > > which infinity. There are many - some larger than others > > China has just announced a new supercomputer that is so fast it can run an > infinite loop in 3.7 seconds. Near a black hole 3.7 seconds can last an infinite time... -- Pierre-Alain

Re: Can math.atan2 return INF?

2016-06-24 Thread Pierre-Alain Dorange
Marko Rauhamaa wrote: > Note that the "valid point of view for external observers" is the only > valid scientific point of view. For a scientific point of view, right. But tell this to the one that will be close to a blackhole ;-) -- Pierre-Alain Dorange Moof <

Re: Break and Continue: While Loops

2016-06-24 Thread Pierre-Alain Dorange
BartC wrote: > But even with ordinary conditionals, False is False, but [False] is > True. And [] is False, while [[]] is True. A class instance is always > True, even when empty. And then "False" is True as well! "Empty" is not "Nothing". To be empty,

Re: Empty List

2016-06-27 Thread Pierre-Alain Dorange
;something" that perhaps will fill the list (word.append("hello"). Then after do your job, you perhaps need to print it. But initializing and just print, will do nothing else than initialize and print the result... As state before this code more or less like : a=0 print a -- P

Re: Creating a calculator

2016-07-01 Thread Pierre-Alain Dorange
;*':c=n1*n2 > if op=='/':c=n1/n2 > print(ui+' = '+str(c)) > --- More reduced : -- u=raw_input('Enter calculation:") print eval(u) -- works and compute : 1+2+3+4-1+4*2 2+3.0/2-0.5 Pe

Re: Creating a calculator

2016-07-01 Thread Pierre-Alain Dorange
- env={} env["__builtins__"] = None u=raw_input('Enter calculation:") print eval(u,env) - -- Pierre-Alain Dorange Moof <http://clarus.chez-alice.fr/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating a calculator

2016-07-04 Thread Pierre-Alain Dorange
DFS wrote: > > 2 lines? Love it! > > But apparently eval==evil. > > http://nedbatchelder.com/blog/201206/eval_really_is_dangerous.html > > I bet you get hammered about it here on clp. It was a software to be deploy, it was just for educational purpose.

Reliable destruction

2005-08-04 Thread Pierre-Eric . Melchy
Hello, I have a class measurement representing a physical measurement. Different objects in this class represent laboratory equipment, which might raise an exception (e.g. overtemperature). In any case the equipment has to be switched off after the experiment, since if a power supply stays in the

Re: Reliable destruction

2005-08-04 Thread Pierre-Eric . Melchy
Hello Benjamin, What would happen if an exception was thrown in the middle of setup()? tearDown could not handle this case without having a list of the objects already constructed (Or I would have to rely on the automatic call to __del__, if it is reliable). There is still some problem: Imagine

Re: Reliable destruction

2005-08-05 Thread Pierre-Eric . Melchy
Hello, your idea sounds good and handles the exception on teardown as well. (I did not think about the if XXX!=None check in teardown()) I will now provide each of the instruments with an explicit shutdown() method which frees the interface card as well. These methods will be called in a finally

Re: Delphi underrated, IDE clues for Python

2004-11-30 Thread Jon-Pierre Gentil
"Caleb Hattingh" <[EMAIL PROTECTED]> wrote in message news:<[EMAIL PROTECTED]>... > STILL...Having a Delphi-like IDE for Python would make me giddy.I know > there are several ever-improving options out there already...I guess I am > waiting to see which one floats to the surface. I also

HELP ! Anybody knows where the stackless python website is ?

2005-04-11 Thread Pierre-Frédéric Caillaud
Hello ! I've been trying desperately to access http://www.stackless.com but it's been down, for about a week now ! I desperatly need to download stackless python... Of course the stackless mailing list is on their server, so it's down, too. Does anybody has any info ? Does anybody

Re: database in python ?

2005-04-11 Thread Pierre-Frédéric Caillaud
MySQL is an excellent option is very well documented. It is also a defacto standard for OpenSource databases. MySQL sucks for anything but very very basic stuff as it supports no transactions, foreign keys, procedures, triggers, concurrency, etc. Postgresql is a lot better, free, and the psyc

Re: database in python ?

2005-04-11 Thread Pierre-Frédéric Caillaud
If you want Simple you can use the following piece of code. It won't work if you have a million records, but it's a nice intelligent flatfile storage with a select where + order by and limit emulator. # # class ListMgr( object ): de

Re: web authoring tools

2005-04-11 Thread Pierre-Frédéric Caillaud
Ideally, I would like an open source website + html design tool implemented in Python didn't you just say that ideally, you wanted a tool written in lisp or scheme? I honestly got a little tired of the tone of the answers I was getting from that crowd, about what an idiot I am. My query there is

Re: The convenient database engine for a "Distributed" System

2005-04-11 Thread Pierre-Frédéric Caillaud
I've not used it personnally, but I heard good things about it : "Firebird is a relational database offering many ANSI SQL-99 features that runs on Linux, Windows, and a variety of Unix platforms. Firebird offers excellent concurrency, high performance, and powerful language support fo

Re: Programming Language for Systems Administrator

2005-04-12 Thread Pierre-Frédéric Caillaud
I am confused to chose between C++,Python,Perl. Writing scripts in C++, you'll just die of brain burn. Python has very good shell integration and I heard it can do funky stuff with COM/OLE with a few lines of code where you'd need a few pages worth of impossible to understand COM code to d

Re: semicolons

2005-04-12 Thread Pierre-Frédéric Caillaud
sometimes i'll write if( key in myarray ) { ... in PHP and then realize I have to use array_key_exists and curse that the parameters are key then array, and bless scite auto-api-display for saving me each time... -- http://mail.python.org/mailman/listinfo/python-list

Re: Programming Language for Systems Administrator

2005-04-12 Thread Pierre-Frédéric Caillaud
Thank You for your suggestionsI request you all to eloborate the Uses(In Practical) for systems administrator.Some of my questions regarding the same follows. What do you want to do ? 1)Can i build web applications in Python ? If so how. I am planning to build a web application for intrane

Re: HELP ! Anybody knows where the stackless python website is ?

2005-04-12 Thread Pierre-Frédéric Caillaud
Great ! Thanks ! On Tue, 12 Apr 2005 16:15:42 +0200, cfbolz <[EMAIL PROTECTED]> wrote: Hi! Pierre-Frédéric Caillaud wrote: I've been trying desperately to access http://www.stackless.com but it's been down, for about a week now ! The stackless webpage is working agai

Re: ATTN : Georges ( gry@ll.mit.edu)

2005-04-12 Thread Pierre-Frédéric Caillaud
My code so far: # -*- coding: iso-8859-1 -*- import sys import os from progadn import * ab1seq = raw_input("Entrez le répertoire où sont les fichiers à analyser: ") or None Ce serait mieux d'utiliser sys.argv pour spécifier le répertoire dans la ligne de commande du programme : import sys hel

Re: database in python ?

2005-04-12 Thread Pierre-Frédéric Caillaud
Bottomline - mysql has a lot of marketshare, is improving, and I'm sure that it'll eventually be a credible product. But right now it's has a wide range of inexcusable problems. I so totally agree with you. I find that mysql promotes bad coding practices by ignoring errors and substituting in

Re: database in python ?

2005-04-12 Thread Pierre-Frédéric Caillaud
It's not a bug if you didn't RTFM. I did read it in much detail ! In fact I spent a lot of time trying to make understand how it could do a simple 4-table join to display also purchased products on an online store. The damn query took 0.5 seconds to execute no matter how I twisted it in

Re: [TIP] Anyone still using Python 2.5?

2011-12-21 Thread Pierre-Yves David
or almost 1 year now and current LTS (Lucid) ship 2.6. If you don't plan to support 2.4, supporting 2.5 does not seems a priority. -- Pierre-Yves David http://www.logilab.fr/ signature.asc Description: Digital signature -- http://mail.python.org/mailman/listinfo/python-list

help

2007-04-13 Thread pierre-yves guido
hello (I hope my english is not so bad), I'm doing a training course and I'm a newbie in Python. My problem : I have a form, and when I click, I make an update. But all the parameters are all required to make the update. So I'd like to put in my code something like [optional]... My code (simply

HELP PARAMETERS IN SQL QUERY

2007-04-13 Thread pierre-yves guido
hello, I'm doing a training course and I'm a newbie in Python. My problem : I have a form, and when I click, I make an update. But all the parameters are all required to make the update. So I'd like to put in my code something like [optional]... My code (simplyfied) : prg.ev_ind_update(wf_pk_ev_

Pythonic way to handle coordinates

2009-01-17 Thread Pierre-Alain Dorange
ust exist allready ? -- Pierre-Alain Dorange Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- http://mail.python.org/mailman/listinfo/python-list

Re: s=ascii(hexlify(urandom(10)))

2009-01-17 Thread Pierre-Alain Dorange
ou invoked the ascii() builtin, the b > >> prefix should disappear? Re-read the documentation of the > >> ascii() builtin - it probably does something completely different > >> from what you expect it to do. > > > > s = str(hexlify(urandom(8)))[2:18] > > And you

[MacOS] Multiple versions of a module

2009-01-25 Thread Pierre-Alain Dorange
? I do a site._test() and i return my only 1.8.0 module for pygame, 1.9.0 is ignored. The same with Any clue ? -- Pierre-Alain Dorange <http://microwar.sourceforge.net/> -- http://mail.python.org/mailman/listinfo/python-list

Re: New to python, open source Mac OS X IDE?

2009-01-28 Thread Pierre-Alain Dorange
e Python directly from Xcode but i do not understand the right way to do this. There is project for PyObjC but a can't make working directly simple script project, so i continue to use terminal... -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous l

Re: Profiling Python Apps on Mac?

2009-01-28 Thread Pierre-Alain Dorange
.org/library/profile.html> -- Pierre-Alain Dorange MicroWar 2.0 : tuez des PC <http://microwar.sourceforge.net/> -- http://mail.python.org/mailman/listinfo/python-list

Re: Strengths and weaknesses of Pygame vs. pyglet vs. PyOpenGL?

2008-12-08 Thread Pierre-Alain Dorange
y iMac intel, i run my small arcade game (a spaceinvader like) between 800-1400 fps using dirtyrect. I can also run without modification on Windows and Unbuntu using WMWare on the same machine. -- Pierre-Alain Dorange <http://microwar.sourceforge.net/> Ce message est sous licence Creative Co

Re: Beginner trying to understand functions.

2008-12-08 Thread Pierre-Alain Dorange
i you want to loop in getAge() : def getAge(): age=-1 while age<0: try: age = int(input('Please enter your age: ')) except ValueError: print('That was not a valid number. Please try again.') return age I'm a begi

Re: Python and audio frequency analysis

2008-12-08 Thread Pierre-Alain Dorange
e display module you can use pygame, pyglet or pyOpenGL, there are fast. For the audio analysis i thought the module must be written in C or something very fast, because python, due to it's nature, would probably not compute spectrum as fast as real time : 44100 samples per seconds is a lot

Game to test : MicroWar 2.0 alpha 6

2008-12-14 Thread Pierre-Alain Dorange
p Bonus (give 5 super-bomb) * adding Saucer explosion : generate Virus that can infect PC * clean the screens handling -- Pierre-Alain Dorange Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- http://mail.pyt

Re: re.match() performance

2008-12-18 Thread Pierre-Alain Dorange
atching Time: 0.122432 (Compiled) Pattern Matching Time: 0.12012 Ratio Compiled/NotCompiled: 0.981116048092 2nd time and more Pattern Matching Time: 0.00257 (Compiled) Pattern Matching Time: 0.000619 Ratio Compiled/NotCompiled: 0.240856031128 Config python 2.5.1 / MacOS X 10.5 --

no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
better and could be faster. How do you implement this or is there any other module with a sign() function ? -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
Christian Heimes wrote: > Pierre-Alain Dorange schrieb: > > I don't find any sign(x) function in the math library (return the sign > > of the value). > > I've read that math module is a wrapper to C math lib and that C math > > lib has not sign(), so... >

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
0.5244 second (+26%) conclusions --- 1/ python is fast 2/ method (0) is the fastest 3/ cmp method (2) is the slowest 4/ the precise one (IEEE 754) is also fast (1) -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licenc

Re: no sign() function ?

2008-12-22 Thread Pierre-Alain Dorange
ge from -1000 to 0 sign_0 : 0.46" sign_1 : 0.30" (-35%) 1000 Random from -500 to +500 sign_0 : 0.37" sign_1 : 0.42" (+13%) -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- http://mail.python.org/mailman/listinfo/python-list

Re: no sign() function ?

2008-12-23 Thread Pierre-Alain Dorange
) sign_3 : 0.498 (+33%) It seems it don't change the relative results between the methods. Using timeit make measure accurate and remove print/range footprints. I also try Arnaud's proposition, it make sign_0 just a little better (-1%) -- Pierre-Alain Dorange<http://microwa

Re: Python's popularity

2008-12-23 Thread Pierre-Alain Dorange
III. Do you want to know my > favorite color too? Only if it's pythonic. -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce message est sous licence Creative Commons "by-nc-sa-2.0" <http://creativecommons.org/licenses/by-nc-sa/2.0/fr/> -- http://mail.python.org/mailman/listinfo/python-list

[Offtopic] Re: I always wonder ...

2008-12-23 Thread Pierre-Alain Dorange
r wrote: > [...] > Well that shows that even lads with tiny nads can be brave, any of the > other trolls want to expose them selfs? This thread is offtopic, please just keep silent and let it be closed... -- Pierre-Alain Dorange<http://microwar.sourceforge.net/> Ce m

Re: no sign() function ?

2008-12-24 Thread Pierre-Alain Dorange
ft. > At least until you profile your > application and discover that the sign() function is the bottleneck > keeping your program slow. In each frame i'll have to use about 10 to 20 sign() call, so it'll not be the bottleneck. -- Pierre-Alain Dorange<http:/

Re: I always wonder ...

2008-12-25 Thread Pierre-Alain Dorange
|--//''`\--| > | (( +==)) | > |--\_|_//--| Very nice indeed, but you forget ascii art need a fixed font... --

<    1   2   3   4   >