Printing/writing an integer to a file

Steven D'Aprano steve at REMOVEME.cybersource.com.au
Thu Nov 16 22:49:44 EST 2006


On Fri, 17 Nov 2006 14:18:12 +1100, Ben Finney wrote:

> The function call syntax doesn't allow a space between the function
> name and the opening parenthesis.

Are you sure? I thought it was allowed but not recommended because it is
hard to read.

>>> len ([1, 2, 3])
3


Seems to work for me.

And if you think that's bad, check out this:

>>> '+'    .    join   (   [  'a'  ,  'b'  ]  )
'a+b'

How to write legal but unreadable code in Python.

-- 
Steven D'Aprano 




More information about the Python-list mailing list