> Selecting an encoding is the kind of thing that will often come from the
> application's environment, or user preferences or configuration options,
> rather than being hardcoded at development time.
And that's the main difference why having encode/decode is a good idea,
and having transform/untr
Hi all!
I have created a project to make tests for all incompatibilities
between Python 2.5, 2.6 and 3.0. It's hosted on Google code:
http://code.google.com/p/python-incompatibility/
It currently contains what I believe to be complete tests of language
incompatibilities. It also contains examp
On Sun, May 18, 2008 at 4:38 PM, Lennart Regebro <[EMAIL PROTECTED]> wrote:
> It currently contains what I believe to be complete tests of language
> incompatibilities.
Although I just relialized that there is a bunch of builtin methods
that are gone which I don't have tests for. Ah well.
--
Len
I see the peps 3115 and 3129 about metaclass and class decorators.
I think that the pep 3129 need to be improved for show the way to declare
the decorator and not just the way to appy them.
I also wonder if we need this two things, and if that is not two way to
explain
the same semantic.
It's wh
paul bedaride schrieb:
I see the peps 3115 and 3129 about metaclass and class decorators.
I think that the pep 3129 need to be improved for show the way to declare
the decorator and not just the way to appy them.
I also wonder if we need this two things, and if that is not two way to
explain
It's why a want to know how to express the class decorator for making a
comparison
[Georg]
A class decorator works exactly like a function decorator, that is,
@foo
class X: ...
is equivalent to
class X: ...
X = foo(X)
This should be all you need to know in order to write a class decorator.
paul bedaride wrote:
I also wonder if we need this two things, and if that is not two way to
explain
the same semantic.
Changing the metaclass can lead to some fundamental changes to the way a
class operates. Class decorators are for simpler things which don't
require major changes to the cl