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
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
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
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
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
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
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
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
>>
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
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
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
>
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
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
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,
>
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
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?
&
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
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
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
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
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
>>>[...]
>>>
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
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
23 matches
Mail list logo