Mercurial > cpython-lru_cache-weakref
annotate Lib/test/badsyntax_future7.py @ 25135:0f0016632be4 legacy-trunk
_formatparam(), set_param(): RFC 2231 encoding support by Oleg
Broytmann in SF patch #600096. Specifically, the former function now
encodes the triplets, while the latter adds optional charset and
language arguments.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Fri, 06 Sep 2002 03:55:04 +0000 |
| parents | d06bbb8c493a |
| children | 47eaa38b29cb |
| rev | line source |
|---|---|
|
17558
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
1 """This is a test""" |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
2 |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
3 from __future__ import nested_scopes; import string; from __future__ import \ |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
4 nested_scopes |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
5 |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
6 def f(x): |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
7 def g(y): |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
8 return x + y |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
9 return g |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
10 |
|
d06bbb8c493a
Fix compileall.py so that it fails on SyntaxErrors
Jeremy Hylton <jeremy@alum.mit.edu>
parents:
diff
changeset
|
11 print f(2)(4) |
