Mercurial > cpython-lru_cache-weakref
view Lib/test/badsyntax_future4.py @ 20737:00a581bdedeb legacy-trunk
When overriding __str__ or __repr__, set the tp_print slot to NULL.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Mon, 29 Oct 2001 14:33:44 +0000 |
| parents | d06bbb8c493a |
| children | 47eaa38b29cb |
line wrap: on
line source
"""This is a test""" import __future__ from __future__ import nested_scopes def f(x): def g(y): return x + y return g print f(2)(4)
