On Fri, May 08, 2009 at 08:33:58PM -0700, Christopher Lee wrote:
-> On May 8, 2009, at 12:44 PM, Jenny Qing Qian wrote:
-> 
-> >
-> > I like the option of overwriting the builtin dir() for Python 2.6 or  
-> > later.  Is there a way to implement this without descriptors?  A way  
-> > that is universally supported by any Python version.  What's wrong  
-> > with __getattr__?
-> 
-> Hi Jenny,
-> I implemented a basic version of this.  First, I added __dir__ to  
-> worldbase (the new name for pygr.Data) objects.  Thus in Python 2.6  
-> you can do the following:

[ ... ]

very cool!

--titus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pygr-dev" group.
To post to this group, send email to pygr-dev@googlegroups.com
To unsubscribe from this group, send email to 
pygr-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/pygr-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to