Re: Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-04 Thread Steven Bethard
Daniel Bickett wrote: |def setreplace( self , set ): |""" |Do multiple replaces at once, using dictionary `set' as a legend, |where each instance of each key is to be replaced with that key's |value. |""" |if type( set ) == dict: |resu

Re: Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-04 Thread Daniel Bickett
Fredrik Lundh wrote: > your DeleteKeyAll operation would fit nicely in such an interface, but I'm not > sure it belongs in the low-level interface, and a higher-level interface > consisting > of just one helper would seem a bit odd.on the other hand, it's about time > someone wrote that "winre

Re: Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-03 Thread Fredrik Lundh
Daniel Bickett wrote: > [2] I'm currently unaware if _winreg is a c extension module or pure > python, but I'm assuming it's C, so I don't know how possible it is to > add pure python to it... from the documentation: This module exposes a very low-level interface to the Windows registry;

Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-03 Thread Daniel Bickett
I was reading the thread by Frank Bello[1] about his offered addition to the xmlrpclib module, and it reminded me of a few methods I had made in the past that I considered worthy of being a part of the standard library. Rather than reiterate his question of how one gets one's patch into the standa