On Aug 27, 1:35 pm, Ethan Furman <et...@stoneleaf.us> wrote: > josef wrote: > > Thanks to everyone who responded. > > > I will be going with some sort of a = MyClass(name = 'a') format. It's > > the Python way. > > > For me, it was very hard to accept that EVERYTHING is an object > > reference. And that there are no object reference names, just string > > entries in dictionaries. But I think it all makes sense now. > > > Thanks again, > > > Josef > > My apologies if I missed it, but what *exactly* are you planning on > doing with your 'name' attribute? From the posts I've seen so far, I > think you are only setting yourself up for failure. > > ~Ethan~
I'm going to use it for printing purposes. dk = MyClass(name='dk') When I need a name dk.name. There will only ever be one dk defined. Does that read like I'm setting myself up for failure? -- http://mail.python.org/mailman/listinfo/python-list