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
> =] )
>
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
-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
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
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
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 \.''`. /
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
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
-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
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.
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
11 matches
Mail list logo