In article <[email protected]>, Steve Holden <[email protected]> wrote:
> Roy Smith wrote: > > In article > > <[email protected]>, > > v4vijayakumar <[email protected]> wrote: > > > >> I saw some code where someone is really managed to import braces from > >> __future__. ;) > >> > >> def test(): > >> #{ > >> print "hello" > >> #} > > > > That usage is obsolete. Current best practice is: > > > > def test(): > > """{""" > > print "hello" > > """}""" > > Which would be OK if it were syntactically valid ... > > regards > Steve Doh. I'm sorry: def test(): """{""" print "hello" """}""" This one I tested :-) -- http://mail.python.org/mailman/listinfo/python-list
