Re: instance as a sequence

2007-11-05 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : > On Nov 5, 9:40 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > >>On Nov 5, 11:32 am, [EMAIL PROTECTED] wrote: >> >> >>>suppose i want to >>>make foo.childNodes[bar] available as foo[bar] >>>(while still providing access to the printxml/printprettyxml() >>>functions >>>a

Re: instance as a sequence

2007-11-05 Thread Matimus
On Nov 5, 9:59 am, [EMAIL PROTECTED] wrote: > On Nov 5, 9:40 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > On Nov 5, 11:32 am, [EMAIL PROTECTED] wrote: > > > > suppose i want to > > > make foo.childNodes[bar] available as foo[bar] > > > (while still providing access to the printxml/printprettyx

Re: instance as a sequence

2007-11-05 Thread sndive
On Nov 5, 9:40 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Nov 5, 11:32 am, [EMAIL PROTECTED] wrote: > > > suppose i want to > > make foo.childNodes[bar] available as foo[bar] > > (while still providing access to the printxml/printprettyxml() > > functions > > and other functionality of dom/mi

Re: instance as a sequence

2007-11-05 Thread Paul McGuire
On Nov 5, 11:32 am, [EMAIL PROTECTED] wrote: > suppose i want to > make foo.childNodes[bar] available as foo[bar] > (while still providing access to the printxml/printprettyxml() > functions > and other functionality of dom/minidom instance). > > What is a good way to accomplish that? define __get

Re: instance as a sequence

2007-11-05 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: > suppose i want to > make foo.childNodes[bar] available as foo[bar] > (while still providing access to the printxml/printprettyxml() > functions > and other functionality of dom/minidom instance). > > What is a good way to accomplish that? Using element-tree. That alre

instance as a sequence

2007-11-05 Thread sndive
suppose i want to make foo.childNodes[bar] available as foo[bar] (while still providing access to the printxml/printprettyxml() functions and other functionality of dom/minidom instance). What is a good way to accomplish that? -- http://mail.python.org/mailman/listinfo/python-list