Re: [Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Marc Tompkins
On Thu, Feb 19, 2009 at 8:39 PM, Lie Ryan wrote: > On Thu, 19 Feb 2009 11:45:52 -0800, Marc Tompkins wrote: > > Don't use reserved words as variable names! > > > str, set is built-in function not reserved words. Reserved words are like > if, for, from, as (see the whole list type keywords in hel

Re: [Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Lie Ryan
On Thu, 19 Feb 2009 11:45:52 -0800, Marc Tompkins wrote: > Don't use reserved words as variable names! str, set is built-in function not reserved words. Reserved words are like if, for, from, as (see the whole list type keywords in help() ) Nevertheless, it is a bad idea to use built-in funct

Re: [Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Kent Johnson
Oops, hit send by mistake...continued below. On Thu, Feb 19, 2009 at 3:40 PM, Kent Johnson wrote: > On Thu, Feb 19, 2009 at 2:34 PM, Isaac Eiland-Hall > wrote: >> http://python.pastebin.com/m26864a1b >> >> >> >> Traceback (most recent call last): >> >> File "./loopy", line 328,

Re: [Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Kent Johnson
On Thu, Feb 19, 2009 at 2:34 PM, Isaac Eiland-Hall wrote: > http://python.pastebin.com/m26864a1b > > > > Traceback (most recent call last): > > File "./loopy", line 328, in > > > set[current_set][current_section][current_key] = current_value > > KeyError: 'DEFAULT' > So what I'm

Re: [Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Marc Tompkins
On Thu, Feb 19, 2009 at 11:34 AM, Isaac Eiland-Hall wrote: > http://python.pastebin.com/m26864a1b > > > > Traceback (most recent call last): > > File "./loopy", line 328, in > > > set[current_set][current_section][current_key] = current_value > > KeyError: 'DEFAULT' > One thing p

[Tutor] KeyError: 'DEFAULT'

2009-02-19 Thread Isaac Eiland-Hall
http://python.pastebin.com/m26864a1b Traceback (most recent call last): File "./loopy", line 328, in set[current_set][current_section][current_key] = current_value KeyError: 'DEFAULT' First, apologies for the formatting - I'm teaching myself python after having t