[wxpython-users] Re: ANN: Tobu 0.5.0

AK andrei.avk at gmail.com
Mon Apr 14 06:49:20 PDT 2008


Peter Damoc wrote:
> On Mon, Apr 14, 2008 at 1:52 PM, AK <andrei.avk at gmail.com 
> <mailto:andrei.avk at gmail.com>> wrote:
>
>     Peter Damoc wrote:
>
>
>         The code needs a lot of cleaning up but most of my code does
>         too. :)
>
>     That is an understatement, the code is really ungodly.. cleaning
>     it up is on the long todo list!
>     In the meantime if anyone is thinking of working with it, I'm
>     using a quick and dirty way
>     to work with the code by having separate files that list all
>     functions and classes, group them
>     by topic and include docstrings, so if that might be helpful I can
>     post those too..
>
>
> I have 2 small questions regarding design decisions.
>
> 1. Why don't you base your code on python 2.5 (you'll have sqlite3 
> included)
> 2. Why don't you use the logging module
I didn't know that sqlite3 was included there. It does work in 2.5, so 
it seems
like the only problem is that I list more requirements than needed. Are 
there
still distributions around that don't have 2.5 in their 'stable' branch? 
I don't
mean really tiny distributions, but the likes of ubuntu, debian, suse, 
RH, etc.
On the second point, I didn't use that module before so I didn't even think
about it. I started with 'print' statement then went to a small 2-line 
function
then added to it when I needed to so it sort of grown rather than being
designed.

That's something I wanted to ask about, by the way. It does cause a problem
when it tries to print out and there's no terminal to print to, then 
these parts
of the app just don't work. I have to turn off debugging when I use it 
without
a terminal (i.e. by double-clicking on desktop). Is there a quick workaround
or the quick work around would be using logging module?

thx,

-- 
ak
Tobu | http://tobu.lightbird.net/ | Freeform DB / Tagger / PIM
Python-by-Example | http://pbe.lightbird.net/ | Guide to LibRef



More information about the wxpython-users mailing list