Pythonification of the asterisk-based collection packing/unpacking syntax

Mel Wilson mwilson at the-wire.com
Thu Dec 22 10:06:46 EST 2011


Chris Angelico wrote:

> 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.

Easy-peasy:

     <def name="method" arguments="self, x, y">
         <indent>    </indent><let target="t">

	Mel.

> 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