[Python-Dev] PEP 520: Ordered Class Definition Namespace (round 3) (original) (raw)
Berker Peksağ berker.peksag at gmail.com
Mon Jun 13 14:12:56 EDT 2016
- Previous message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace (round 3)
- Next message (by thread): [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Sun, Jun 12, 2016 at 5:37 AM, Eric Snow <ericsnowcurrently at gmail.com> wrote:
The following code demonstrates roughly equivalent semantics for the default behavior::
class Meta(type): def prepare(cls, *args, **kwargs):
Shouldn't this be wrapped with a classmethod decorator?
+1 from me.
--Berker
- Previous message (by thread): [Python-Dev] PEP 520: Ordered Class Definition Namespace (round 3)
- Next message (by thread): [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]