Re: wxGlade: Who knows how to drive this application?

2007-07-26 Thread Alberto Griggio
Hello,

> I've been trying to use wxGlade recently and I am finding it something
> of a challenge. Is there any user who finds the user interface
> satisfactory and the operation of the program predictable?
> 
> If so I would love to hear from you.

Do you have some specific example of what you mean? 
Sure, wxGlade has bugs and isn't always in sync with the latest wxPython
changes (usually the CVS version is better in this respect), but
suggestions on how to improve it are always welcome...

Alberto
 

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: wxGlade: Who knows how to drive this application?

2007-07-29 Thread Alberto Griggio
> Here are some things I can think of, in no particular order:

Thanks! I can't promise I'll take care of all of them (some are nontrivial
to implement, and would probably take a lot of time), but this list is
definitely valuable (e.g. I can circulate it through the other developers
to see if there's any volunteer...)

Alberto



-- 
http://mail.python.org/mailman/listinfo/python-list


Re: python debugging under emacs?

2007-08-23 Thread Alberto Griggio
> Is there a debugging mode in emacs that works well with python?
> 
> I tried gud, but it was giving me errors, so I thought I'd ask before I
> try to get it to work: Is there an emacs mode (perhaps gud) that'll give a
> view of the python source, and currenly executing line, the ability
> inspect datastructures, etc.?  You know, like a modern debugger?  :)
> 
> I also looked at ddd, but it was cranky too, and apparently hasn't seen a
> new release in years.
> 
> I'm really more of a vim person than an emacs person, but if emacs will
> do what I want, I'd happily use it - for this.  :)

You can try pydb (http://bashdb.sourceforge.net/pydb/), has a GUD interface
that in my experience works better than pdb...

HTH,
Alberto


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Text processing and file creation

2007-09-06 Thread Alberto Griggio
> Thanks for making me aware of the (UNIX) split command (split -l 5
> inFile.txt), it's short, it's fast, it's beautiful.
> 
> I am still wondering how to do this efficiently in Python (being kind
> of new to it... and it's not for homework).

Something like this should do the job:

def nlines(num, fileobj):
done = [False]
def doit():
for i in xrange(num):
l = fileobj.readline()
if not l:
done[0] = True
return
yield l
while not done[0]:
yield doit()

for i, group in enumerate(nlines(5, open('bigfile.txt'))):
out = open('chunk_%d.txt' % i)
for line in group:
out.write(line)


> I am still wondering how to do this in Python (being new to Python)

This is just one way of doing it, but not as concise as using split...

Alberto


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Emacs users: feedback on diffs between python-mode.el and python.el?

2008-10-16 Thread Alberto Griggio
Hello,

> I second Bruno's points, the older python-mode.el is much
> better, 

I agree too. I can't really say what's missing from python.el, but I'm
much more comfortable with python-mode.el. The triple-quote highlight is
better in python.el, but I was successful in porting it to
python-mode.el as well. Unfortunately, I don't have a clean diff, as I
did some other tweaks...

Alberto
--
http://mail.python.org/mailman/listinfo/python-list