eard a bit about the Python logging module, but
never looked into it. This is a good reason to take a look.
Thanks again & Regards,
Ross.
Irmen de Jong wrote:
RGK wrote:
I'm on mac os x 10.4.11 running python 2.5.2, and Django 1.0, but this
is a python question.
When doing django/
I'm on mac os x 10.4.11 running python 2.5.2, and Django 1.0, but this
is a python question.
When doing django/mod_python stuff, I can write to the Apache error_log
file with
sys.stderr.write("SOMETHING I WANT TO KNOW")
which had me wondering if there's not a means for a misc. python pro
I'm glad I asked :)
Thanks all who posted for your replies, the else-statement is a nice
option.
Python again comes through to deal with those pesky feelings that
something could be better :)
Ross.
Chris Rebert wrote:
Yes. try-except-*else*.
try:
do_something_1()
do_something
I'm still learning, so eager to see if there is some community wisdom
about use of the try/except structures in this situation.
I find myself with some potentially risky stuff and wrap it in a
try/except structure with good functional results, though my code leaves
me a bit uneasy. Maybe it'
Philip Semanchuk wrote:
Is there any reason that this wouldn't work?
http://docs.python.org/library/hotshot.html
It suggests that it doesn't work well with threads, but as I didn't know
about any options, it's a step forward. Thanks for the pointer. :)
R.
--
http://mail.python.org/mailma
I'm writing a python app on a Mac (in Eclipse + PyDev w/ Python2.5 &
wxPython under OSX 10.4)
As I make program architecture decisions, it would be nice to be able to
profile the choices. Should I add that extra thread? Is this big-assed
xml object I just created horribly bloated or kind of
Thanks for the suggestions - sounds like a couple good options, I
apprecieate it.
Ross.
MRAB wrote:
RGK wrote:
I have a thread that is off reading things some of which will get
written into a file while another UI thread manages input from a user.
The reader-thread and the UI-thread will
I have a thread that is off reading things some of which will get
written into a file while another UI thread manages input from a user.
The reader-thread and the UI-thread will both want to write stuff to the
same output file. What first comes to mind is that there may be write
collisions, ie
I'm doing an app with the AUI manager capabilities (using some of the
wxPython demo's for help). All is well, except I'm a bit disappointed
with the font management.
The default font for all the widgets (TextCtrl's, StaticText's etc) are
a bit large for my design intent and as I try to adjust