Re: [Tutor] Named-value formatting fails

2011-01-09 Thread Tim Johnson
* Steven D'Aprano [110109 13:23]: > Tim Johnson wrote: <...> >>> Are you aware that this is non-portable and subject to change without >>> notice? >> No! 1)Can you explain further? <.> Wow! You've given me a huge amount of technical information. I can't thank you enough for the time and

Re: [Tutor] Named-value formatting fails

2011-01-09 Thread Steven D'Aprano
Tim Johnson wrote: * Steven D'Aprano [110108 19:46]: A more detailed response. Dear me... messing with globals and locals. That's always a bad sign. But let's assume this is that one time in 100 that it is actually justified... if localvals is None: self.locals = sys

Re: [Tutor] Named-value formatting fails

2011-01-09 Thread Tim Johnson
* Steven D'Aprano [110108 19:46]: > A more detailed response. > > Dear me... messing with globals and locals. That's always a bad sign. > But let's assume this is that one time in 100 that it is actually > justified... > >> if localvals is None: self.locals = >> sys._getfr

Re: [Tutor] Named-value formatting fails

2011-01-08 Thread Steven D'Aprano
A more detailed response. Tim Johnson wrote: I'm using 2.6.5 on ubuntu 10.04. I'm evaluating a very large string using a named-value formatting scheme. The process fails with the following error message: """not enough arguments for format string""" I'd take that as a fairly straightforward err

Re: [Tutor] Named-value formatting fails

2011-01-08 Thread Steven D'Aprano
There's a shorter answer and a longer answer to this question. The shorter answer is here. The longer answer will follow. Tim Johnson wrote: I'm using 2.6.5 on ubuntu 10.04. I'm evaluating a very large string using a named-value formatting scheme. The process fails with the following error mess