diff options
author | Brett Cannon <bcannon@gmail.com> | 2005-03-05 06:47:57 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2005-03-05 06:47:57 (GMT) |
commit | 409d8f2ebdf597837c593a40659949e5b15f457d (patch) | |
tree | 65efd1daca556adb53a28d3957ba57dc801e0dda /Misc | |
parent | 653a5adcca68d445b21dd2a640627f0f0185204a (diff) | |
download | cpython-409d8f2ebdf597837c593a40659949e5b15f457d.zip cpython-409d8f2ebdf597837c593a40659949e5b15f457d.tar.gz cpython-409d8f2ebdf597837c593a40659949e5b15f457d.tar.bz2 |
Allow classes to be defined with empty parentheses. This means that
``class C(): pass`` is no longer a syntax error.
Diffstat (limited to 'Misc')
-rw-r--r-- | Misc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -10,6 +10,9 @@ What's New in Python 2.5 alpha 1? Core and builtins ----------------- +- Defining a class with empty parentheses is now allowed + (e.g., ``class C(): pass`` is no longer a syntax error) + - Patch #1115086: Support PY_LONGLONG in structmember. - Bug #1155938: new style classes did not check that __init__() was |