Re: [Python-Dev] Dynamic module namspaces

2006-07-16 Thread Josiah Carlson
Andrew Bennetts <[EMAIL PROTECTED]> wrote: > On Sat, Jul 15, 2006 at 03:38:04PM -0300, Johan Dahlin wrote: > > In an effort to reduce the memory usage used by GTK+ applications > > written in python I've recently added a feature that allows attributes > > to be lazy loaded in a module namespace.

Re: [Python-Dev] Dynamic module namspaces

2006-07-16 Thread Andrew Bennetts
On Sat, Jul 15, 2006 at 03:38:04PM -0300, Johan Dahlin wrote: > In an effort to reduce the memory usage used by GTK+ applications > written in python I've recently added a feature that allows attributes > to be lazy loaded in a module namespace. The gtk python module contains > quite a few attri

Re: [Python-Dev] Dynamic module namspaces

2006-07-16 Thread James Y Knight
On Jul 15, 2006, at 2:38 PM, Johan Dahlin wrote: > What I want to ask, is it possible to have a sanctioned way to > implement > a dynamic module/namespace in python? > > For instance, it could be implemented to allow you to replace the > __dict__ attribute in a module with a user provided object

[Python-Dev] I have submitted a patch that implement IrDA socket support .

2006-07-16 Thread Yingbo Qiu
I have uploaded it at https://sourceforge.net/tracker/download.php?group_id=5470&atid=305470&file_id=184896&aid=1522400. socketmodule.c already have a bluetooth socket, so i think we could put irda socket support in it. Now I can run a simple obex session through IrDA socket layer. my reference i

[Python-Dev] Pronouncement on SF #1520294 sought

2006-07-16 Thread Barry Warsaw
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Just as 2.5b2 was being release, I updated SF patch #1520294: https://sourceforge.net/tracker/index.php? func=detail&aid=1520294&group_id=5470&atid=305470 This fixes the pydoc, inspect, and types modules for built-in types like getset and m

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-16 Thread James Y Knight
On Jul 16, 2006, at 5:42 AM, Scott Dial wrote: > Talin wrote: >> Scott Dial wrote: >>> Phillip J. Eby wrote: >>> A function's func_closure contains cell objects that hold the variables. These are readable if you can set the func_closure of some function of your own. If the

Re: [Python-Dev] Capabilities / Restricted Execution

2006-07-16 Thread Scott Dial
Talin wrote: > Scott Dial wrote: >> Phillip J. Eby wrote: >> >>> A function's func_closure contains cell objects that hold the >>> variables. These are readable if you can set the func_closure of some >>> function of your own. If the overall plan includes the ability to restrict >>> func_closu

[Python-Dev] Problem with super() usage

2006-07-16 Thread Greg Ewing
For about the third time in my life, I thought I might have found a use for cooperative super calls, but I've run into another problem with the concept. Consider: class A(object): def m(self): print "A.m" class B(object): def m(self): print "B.m" super(B, self).m() clas