[Tutor] getting around ValueError in os.walk

John Fouhy john at fouhy.net
Tue Jan 31 02:28:24 CET 2006


On 31/01/06, Alan Gauld <alan.gauld at freenet.co.uk> wrote:
> You need a comma after dirpath, python sees only two values
> in the tuple but expects 3 (actually I'd expect a syntax error,
> unless there is no space in the real code?)

>>> 1 . __add__ ( 4 )
5

Python is quite happy about whitespace either side of the '.'
operator.. Some of the wxPython guys like their whitespace, eg:
http://wiki.wxpython.org/index.cgi/DataAwareControlsMixin#head-d1249e34e446972c34012a866f67bc184db7bc52
:-)

--
John.


More information about the Tutor mailing list