Pythonification of the asterisk-based collection packing/unpacking syntax

Chris Angelico rosuav at gmail.com
Thu Dec 22 09:30:29 EST 2011


On Fri, Dec 23, 2011 at 1:13 AM, Hans Mulder <hansmu at xs4all.nl> wrote:
> How about:
>
> <class name="MyClass" superclasses="A, B, C">
> ...
> </class>
>
> More more readable!  And it's a standard!

Unfortunately it's not Pythonic, because indentation is insignificant.
We need to adopt a more appropriate form. Eliminate all the </spam>
tags and use indentation to mark the ends of elements.

ChrisA
PS. Brilliant, sir, brilliant! I take off my cap to you.



More information about the Python-list mailing list