On Fri, Apr 15, 2011 at 1:32 PM, Éric Araujo <mer...@netwok.org> wrote:
> As an aside, I wonder why people use dot+colon notation instead of just
> dots to reference callables.  In distutils2 for example we resolve
> dotted names to find command classes, command hooks and compilers.  So
> what’s the benefit, marginally easier parsing?

An opportunity of using a colon is that it allows::

   dotted.module.name:expression

where expression may be more than just a name::


  foo.bar:Bar()

Jim


-- 
Jim Fulton
http://www.linkedin.com/in/jimfulton
_______________________________________________
Web-SIG mailing list
Web-SIG@python.org
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: 
http://mail.python.org/mailman/options/web-sig/archive%40mail-archive.com

Reply via email to