[Distutils] entry points

Barry Warsaw barry at python.org
Tue Jul 24 23:21:41 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Just a quick question as I'm starting to play with this feature.

Why do entry point values use a colon to separate the module from the  
callable?  Couldn't you just as easily use a "normal" Python dotted  
path, the last component of which would of course be the callable?

E.g. instead of

setup(
     # ...
     entry_points = {'blogtool.parsers': '.rst = some_module:SomeClass'}
)

use

setup(
     # ...
     entry_points = {'blogtool.parsers': '.rst = some_module.SomeClass'}
)

That would seem a bit more Pythonic.

Cheers,
- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)

iQCVAwUBRqZtZnEjvBPtnXfVAQIOHwP6AgX58dLBIzqvI7wo+z9MOIXm/rUIDikX
j6Zc5S/97Fc9n3qjRlKf/fTT229oQVSIsPJgxvfXxWKYS5Qlk+YqhoACI9BuTbrm
KshRSiPzFPy2eqjk287sHmrpq1MJWwrccjF4lSROn6VDcojlW/t2p6FY/+Gvj3au
CPhRo/Amr+M=
=8qj5
-----END PGP SIGNATURE-----


More information about the Distutils-SIG mailing list