Re: [Python-Dev] Reintroduce or drop completly hex, bz2, rot13, ... codecs

2010-06-11 Thread Walter Dörwald
On 10.06.10 21:31, Terry Reedy wrote: > On 6/10/2010 7:08 AM, M.-A. Lemburg wrote: >> Walter Dörwald wrote: > The PEP would also serve as a reference back to both this discussion and the previous one (which was long enough ago that I've forgotten most of it). >>> >>> I too think t

[Python-Dev] Summary of Python tracker Issues

2010-06-11 Thread Python tracker
ACTIVITY SUMMARY (2010-06-04 - 2010-06-11) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue number. Do NOT respond to this message. 2764 open (+54) / 18028 closed (+23) / 20792 total (+77) Open issues with patches: 1115 Ave

[Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method?

2010-06-11 Thread Brett Cannon
The logging module taught me something today about the difference of a function defined in C and a function defined in Python:: import importlib class Base: def imp(self, name): return self.import_(name) class CVersion(Base): import_ = __import__ class PyVersion(Base):

Re: [Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method?

2010-06-11 Thread Benjamin Peterson
2010/6/11 Brett Cannon : > This "magical" ignoring of self seems to extend to any PyCFunction. Is > this dichotomy intentional or just a "fluke"? Maybe this is a > hold-over from before we had descriptors and staticmethod, but now > that we have these things perhaps this difference should go away.

Re: [Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method?

2010-06-11 Thread Guido van Rossum
On Fri, Jun 11, 2010 at 5:41 PM, Benjamin Peterson wrote: > 2010/6/11 Brett Cannon : >> This "magical" ignoring of self seems to extend to any PyCFunction. Is >> this dichotomy intentional or just a "fluke"? Maybe this is a >> hold-over from before we had descriptors and staticmethod, but now >> t

Re: [Python-Dev] Are PyCFunctions supposed to invisibly consume self when used as a method?

2010-06-11 Thread Brett Cannon
On Fri, Jun 11, 2010 at 18:30, Guido van Rossum wrote: > On Fri, Jun 11, 2010 at 5:41 PM, Benjamin Peterson > wrote: >> 2010/6/11 Brett Cannon : >>> This "magical" ignoring of self seems to extend to any PyCFunction. Is >>> this dichotomy intentional or just a "fluke"? Maybe this is a >>> hold-o