[Python-Dev] Adding .decode() method to Unicode
Martin v. Loewis
Tue, 12 Jun 2001 20:00:19 +0200
> > So we have a proposal for a new feature, and we have dissenting
> > opinions. Who are you to decide that this additions is too simple to
> > require a PEP on its own?
> So you want a PEP for each and every small addition to in the
> core ?! (I am not talking about features which might break code !)
No, additions that find immediate consent and come with complete
patches (including documentation and test cases) don't need this
overhead. Features that find resistance should go through the full
> > I was asking for specific examples: Names of specific codecs that you
> > want to implement, and application code fragments using these specific
> > codecs. I don't know how to use Unicode compression if I had such this
> > proposed feature, for example. I know what XML escaping is, and I
> > cannot see how this feature would help.
> I think I have given enough examples in this thread already. See
> below for some more.
I haven't seen a single example involving actual Python code.
> > > True, but not all XML text out there is meant for XML parsers to
> > > read ;-). Preprocessing of e.g. XML text in Python is a rather common
> > > thing to do and this is what the direct codec access methods are
> > > meant for.
> > Can you give an example of an application [...]
> Yes, I am using these feature in real code and no, I can't show it to
> you because it's closed source.
Not very convincing... If this is "a rather common thing to do", it
shouldn't be hard to find examples in other people's code, shouldn't
> XML is only one example where this would be useful, HTML is another
> text format which would benefit from it, URL encoding is yet another
> application. You basically find these applications in all situations
> where some form of escaping is needed.
These are all not specific examples. I'm still looking for a specific
application that might use this feature, and specific codec names and