[Tutor] Descriptors and type declaration order

2011-07-14 Thread Knacktus
Hi guys, I've got the following (not working) code: class Attribute(object): def __init__(self, attribute_name, att_type_name): self._attribute_name = attribute_name try: self._attribute_type = globals()[att_type_name] except KeyError: self._at

Re: [Tutor] compare and arrange file

2011-07-14 Thread Edgar Almonte
On Wed, Jul 13, 2011 at 11:02 AM, Peter Otten <__pete...@web.de> wrote: > Edgar Almonte wrote: > >> fist time i saw the statement "with" , is part of the module csv ? , >> that make a loop through the file ? is not the sortkey function >> waiting for a paramenter ( the row ) ? i don't see how is ge

Re: [Tutor] Descriptors and type declaration order

2011-07-14 Thread Dave Angel
On 07/14/2011 05:44 AM, Knacktus wrote: Hi guys, I've got the following (not working) code: class Attribute(object): def __init__(self, attribute_name, att_type_name): self._attribute_name = attribute_name try: self._attribute_type = globals()[att_type_name]

Re: [Tutor] Descriptors and type declaration order

2011-07-14 Thread Emile van Sebille
On 7/14/2011 2:44 AM Knacktus said... Hi guys, I've got the following (not working) code: class Attribute(object): def __init__(self, attribute_name, att_type_name): self._attribute_name = attribute_name try: self._attribute_type = globals()[att_type_name]

Re: [Tutor] Descriptors and type declaration order

2011-07-14 Thread Steven D'Aprano
Knacktus wrote: Hi guys, I've got the following (not working) code: [...] The problem is that the descriptors are created when the module is evaluated. But at this time the class BaseItem is not known yet. Any ideas? Yes -- don't do that. What are you actually trying to accomplish? Embeddin

Re: [Tutor] Get file last user

2011-07-14 Thread Susana Iraiis Delgado Rodriguez
Thank you Alan for your answer!! Well, I'm using Windows XP to run this script!! So I guess there's nothing I can do, about it. Than you 2011/7/12 Alan Gauld > Susana Iraiis Delgado Rodriguez wrote: > >> Hello list!!! >> >> I want to get the last user who accessed to a file, ... >> >> Is ther

Re: [Tutor] GUI selection help

2011-07-14 Thread Shwinn Ricci
by the way, I'm on a MAC if that helps/hurts at all. On Wed, Jul 13, 2011 at 10:41 AM, Shwinn Ricci wrote: > Hey all, > > I am browsing through the large list of apps for creating GUIs from python > on http://wiki.python.org/moin/GuiProgramming but unfortunately don't know > which one is the bes