Re: Unexpected python exception

2009-11-11 Thread Ralax
On Nov 11, 6:59 pm, Richard Purdie wrote: > I've been having problems with an unexpected exception from python which > I can summarise with the following testcase: > > def A(): >     import __builtin__ >     import os > >     __builtin__.os = os > > def B(): >     os.stat("/") >     import os > >

Re: Basic list/dictionary question

2009-11-11 Thread Ralax
On Nov 11, 8:58 pm, Chris Rebert wrote: > On Wed, Nov 11, 2009 at 4:16 AM, Daniel Jowett > wrote: > > Greetings, > > > I'm trying to categorize items in a list, by copying them into a > > dictionary... > > A simple example with strings doesn't seem to work how I'd expect: > > basket = ['app