[Interface-dev] Decorator naming
Barry Warsaw
barry at python.org
Tue Apr 7 09:15:23 EDT 2009
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Apr 7, 2009, at 7:29 AM, Lennart Regebro wrote:
> In the Python 3 porting effort, I have now reached the place where the
> @implementor(IFoo) decorator seems to work.
> Next step is to make a decorator for implementsOnly.
>
> But I don't know what to call that decorator. Here is some
> possibilities, in roughly the order of how much i dislike them, from
> quite a lot to even more. :) Better suggestions are very welcome.
>
> @implementer_of(IFoo)
> @implementerOf(IFoo)
> @only_implementer(IFoo)
> @onlyImplementer(IFoo)
> @implementer_only(IFoo)
> @implementerOnly(IFoo)
> @implementer(IFoo, inherit=False)
> @implementer(only=IFoo)
I'll make a plea for PEP 8 names. ;)
Barry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)
iQCVAwUBSdtR63EjvBPtnXfVAQIh1wQAsQbnTKFy7mojVh0pq8rUqn1Wzn/flrvW
m3hR3yGsAQXzpeLudT+7+wYxblADpc8FrzoqHIq+4fh3V+wh2Xkl5pVbaCGonjO4
PF2JbB/7rnkMbaj27D+Af25sAgKcw6/++cpCbZ9qLwFYzVTq5aGnaTeTDrUGbl9w
kcXvIk88zzQ=
=roTJ
-----END PGP SIGNATURE-----
More information about the Interface-dev
mailing list