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

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: iso 8601, quality criteria

2007-02-08 Thread Imbaud Pierre
Imbaud Pierre a écrit : cutnpaste error in this posting, here is the complete message: Context: I am writing an application that accesses XMP-coded files. Some fields contain dates, and comply to iso 8601. I installed the iso8601 python module (http://cheeseshop.python.org/pypi/iso8601), it

iso 8601, quality criteria

2007-02-08 Thread Imbaud Pierre
for each library/module or even application, a note in [0:10] in front of every quality criterium. criteria?: completeness robustness how well tested? simplicity documentation maintenance team responsiveness usage: how many developpers picked it up and still use it? ho

pyYaml community

2007-02-03 Thread Imbaud Pierre
I began using pyYaml. I found no place where pyYaml users exchange ideas, know-how, etc (as here for python). There is a wiki, a bug tracker, documentation, but such a place (mailing list, newsgroup, forum, or even IRC) is a must (IMHO) to smooth the learning curve. Does someone know better? My c

Re: data design

2007-01-31 Thread Imbaud Pierre
James Stroud a écrit : > Szabolcs Nagy wrote: > >>> Hurray for yaml! A perfect fit for my need! And a swell tool! >>> Thanks a lot! >> >> >> >> i warn you against yaml I feel both thanful, and sorry, for your warning. And not convinced yet, but Ill be cautious. >> it looks nice, but the underlying

Re: data design

2007-01-30 Thread Imbaud Pierre
Paddy a écrit : > > On Jan 30, 2:34 pm, Imbaud Pierre <[EMAIL PROTECTED]> wrote: > >>The applications I write are made of, lets say, algorithms and data. >>I mean constant data, dicts, tables, etc: to keep algorithms simple, >>describe what is peculiar, data dep

Re: data design

2007-01-30 Thread Imbaud Pierre
Larry Bates a écrit : > Imbaud Pierre wrote: > >>The applications I write are made of, lets say, algorithms and data. >>I mean constant data, dicts, tables, etc: to keep algorithms simple, >>describe what is peculiar, data dependent, as data rather than "case >>

Re: data design

2007-01-30 Thread Imbaud Pierre
Szabolcs Nagy a écrit : >>The lazy way to do this: have modules that initialize bunches of >>objects, attributes holding the data: the object is somehow the row of >>the "table", attribute names being the column. This is the way I >>proceeded up to now. >>Data input this way are almost "configurati

data design

2007-01-30 Thread Imbaud Pierre
The applications I write are made of, lets say, algorithms and data. I mean constant data, dicts, tables, etc: to keep algorithms simple, describe what is peculiar, data dependent, as data rather than "case statements". These could be called configuration data. The lazy way to do this: have module

closed: module file

2007-01-13 Thread Imbaud Pierre
Imbaud Pierre a écrit : > I am willing to retrieve the file an imported module came from; > module.__file__, or inspect.getfile(module) only gives me the > relative file name. How do I determine the path? > Its obviously possible from python: ipython displays the information >

module file

2007-01-13 Thread Imbaud Pierre
I am willing to retrieve the file an imported module came from module.__file__, or inspect.getfile(module) only gives me the relative file name. How do I determine the path? Its obviously possible from python: ipython displays the information (interactively: *module?*). NB: I saw the discussion abo

module file

2007-01-12 Thread Imbaud Pierre
I am willing to retrieve the file an imported module came from; module.__file__, or inspect.getfile(module) only gives me the relative file name. How do I determine the path? Its obviously possible from python: ipython displays the information (interactively: *module?*). Python 2.4 on Suse 9.3 (clu

closed issue

2007-01-08 Thread Imbaud Pierre
SOME xml rule, ideally the exception should show the rule, and the faulty piece of data. But I know this has a cost, both runtime cost and developper-s time cost. Imbaud Pierre a écrit : > I am using the standard xml library to create another library able to > read, and maybe write, >

Re: xml bug?

2006-12-30 Thread Imbaud Pierre
Martin v. Löwis a écrit : > Imbaud Pierre schrieb: > >>- how do I spot the version of a given library? There is a __version__ >> attribute of the module, is that it? > > > Contrary to what others have said: for modules included in the standard > library (and if us

Re: xml bug?

2006-12-28 Thread Imbaud Pierre
Erik Johnson a écrit : > "Imbaud Pierre" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Now my points are: >>- how do I spot the version of a given library? There is a __version__ >> attribute of the module, is that it? &

xml bug?

2006-12-28 Thread Imbaud Pierre
I am using the standard xml library to create another library able to read, and maybe write, xmp files. Then an xml library bug popped out: xml.dom.minidom was unable to parse an xml file that came from an example provided by an official organism.(http://www.iptc.org/IPTC4XMP) The parsed file was

Re: rdf, xmp

2006-12-02 Thread Imbaud Pierre
Andy Dingley a écrit : > Imbaud Pierre wrote: > >>I have to add access to some XMP data to an existing python >>application. >>XMP is built on RDF, RDF is built on XML. > > > RDF is _NOT_ built on top of XML. Thinking that it is causes a lot of > trouble in

rdf, xmp

2006-12-02 Thread Imbaud Pierre
I have to add access to some XMP data to an existing python application. XMP is built on RDF, RDF is built on XML. I try to reuse as much of possible of existing code. btw, dont mistake XMP (http://www.adobe.com/products/xmp/) with XMPP (http://www.faqs.org/rfcs/rfc3920.html), backed by PyXMPP (htt

Re: tempfile.NamedTemporaryFile wont work

2006-11-19 Thread Imbaud Pierre
Peter Otten a écrit : > Steven D'Aprano wrote: > > >>On Sun, 19 Nov 2006 13:11:13 +0100, Imbaud Pierre wrote: >> >> >>>On suse 9.3, tempfile.NamedTemporaryFile() doesnt work as expected. >> >>[snip] >> >> >>>Symptom: the

Re: tempfile.NamedTemporaryFile wont work

2006-11-19 Thread Imbaud Pierre
Steven D'Aprano a écrit : > On Sun, 19 Nov 2006 13:18:39 +0100, Bjoern Schliessmann wrote: > > >>Imbaud Pierre wrote: >> >> >>> tf = tempfile.NamedTemporaryFile() >>> tfName = tf.name >>>[...] >>>

tempfile.NamedTemporaryFile wont work

2006-11-19 Thread Imbaud Pierre
On suse 9.3, tempfile.NamedTemporaryFile() doesnt work as expected. (I found a permanent workaround, so I dont ask for help) I expected to write to a file, and access it thru a shell command. This code, in a loop: tf = tempfile.NamedTemporaryFile() tfName = tf.name

negative integer division

2005-02-07 Thread Imbaud Pierre
integer division and modulo gives different results in c and python, when negative numbers are involved. take gdb as a widely available c interpreter print -2 /3 0 for c, -1 for python. more amazing, modulos of negative number give negative values! (in c). from an algebraic point of view, python