Re: UnboundLocalError with extra code after return

2009-09-29 Thread Rich Healey
On Sep 30, 2:15 pm, Rich Healey wrote: > I'm trying to write a decorator that causes a function to do nothing > if called more than once- the reason for this is trivial and to see if > I can (Read- I'm enjoying the challenge, please don't ruin it for me > =] ) >

UnboundLocalError with extra code after return

2009-09-29 Thread Rich Healey
t2() File "C:\tmp\callonce\callonce.py", line 12, in __ return func() UnboundLocalError: local variable 'func' referenced before assignment Any ideas on why? This looks like a bug to me, but I'm quite new to this style of programming so it may be some nuance I'm

Re: imaplib fetch message flags

2009-03-01 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rich Healey wrote: > Hi List, > > I'm using an example of an imap client I found with google as a > framework for a more fullfeatured imap client. > > They use the line: > > f = self.M.fetch(num, '(BODY[HEADER

imaplib fetch message flags

2009-03-01 Thread Rich Healey
ind. I've tried (BODY[HEADER.FIELDS (SUBJECT FROM FLAGS)]) but it doesn't have the desired result. I'm sure I'm missing something obvious. Thanks in advance Richo - -- Rich Healey - iTReign \.''`. / healey.r...@gmail.com Developer / Systems Admin

Re: Problem when Installing PyML module modules with mingw32

2008-11-04 Thread Rich Healey
AON LAZIO wrote: > On Tue, Nov 4, 2008 at 9:25 PM, Rich Healey <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > Why remove "###Bla bla bla bunch of errors###" > > How do we help without the error messages! > AON LAZIO wrote: > Ah, s

Re: Problem when Installing PyML module modules with mingw32

2008-11-04 Thread Rich Healey
uthor stated that the module was partly written in C++ (which I hate). > > Thanks in advance > > Aonlazio > Why remove "###Bla bla bla bunch of errors###" How do we help without the error messages! - -- Rich Healey - iTReign \.''`. /

Re: how to get the thighest bit position in big integers?

2008-10-05 Thread Rich Healey
faster. > > OFFSET= tuple( int(x) for x in "5433" ) > def get_highest_bit_num(r): > s = "%x"%r > return len(s) * 4 - OFFSET[int(s[0],16)] > > P.S. Back home, this sort of 'nitpicking' would be judged > unconstructive. Wort

Re: sending to an xterm

2008-08-08 Thread Rich Healey
program to run and foo and bar are its arguments. >> The problem is that as soon as the program exits, xterm will exit >> also. >> > > OK, I see that. > > (getting off topic) > > any chance of keeping the xterm open after running the command? > > Thanks

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Rich Healey
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David wrote: > Rich Healey wrote: >> >> I don't want to start a flamewar. >> >> But I like vim. >> > Hi Rich, could I take a look at your .vimrc , the python stuff. > thanks > -- > http://mail.python

Re: IDE on the level of Eclipse or DEVc++?

2008-06-23 Thread Rich Healey
sier browse the projectfiles for example. I don't want to start a flamewar. But I like vim. - -- Rich Healey - [EMAIL PROTECTED] Developer / Systems Admin - OpenPGP: 0x8C8147807 MSN: [EMAIL PROTECTED] AIM: richohealey33 irc.psych0tik.net-> #hbh #admins richohealey irc.freenode.

Re: print problem

2008-06-17 Thread Rich Healey
in the print statement, and it works. >> >> Is that because of the print statement buffer the characters until >> there is a new line character? > > Very probably, altough I can't reproduce it on Windows. Try invoking the > script with python -u (unbuffe