Tarek Ziadé <ziade.ta...@gmail.com> writes:

> I think is simpler with the "somepackage.somemodule:MyPluginClass" notation
> 
> This is how setuptools does roughly:
> 
>    >>> parts = "somepackage.somemodule:MyPluginClass".split(':')
[…]

Using the standard import notation is no more difficult:

    >>> parts = "somepackage.somemodule.MyPluginClass".rsplit('.', 1)
    >>> parts
    ['somepackage.somemodule', 'MyPluginClass']

versus:

    >>> parts = "somepackage.somemodule:MyPluginClass".split(':', 1)
    >>> parts
    ['somepackage.somemodule', 'MyPluginClass']

I don't see any advantage, in the context of this discussion, to having
an additional, incompatible naming for full-path-to-a-class.

-- 
 \           “The lift is being fixed for the day. During that time we |
  `\            regret that you will be unbearable.” —hotel, Bucharest |
_o__)                                                                  |
Ben Finney

_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to