Commit 32083f64 authored by Anthony Baxter's avatar Anthony Baxter

notes for @decorator

parent c2a5a636
...@@ -495,6 +495,7 @@ Donald Wallace Rouse II ...@@ -495,6 +495,7 @@ Donald Wallace Rouse II
Audun S. Runde Audun S. Runde
Jeff Rush Jeff Rush
Sam Rushing Sam Rushing
Mark Russell
Nick Russo Nick Russo
Rich Salz Rich Salz
Kevin Samborn Kevin Samborn
......
...@@ -12,6 +12,12 @@ What's New in Python 2.4 alpha 2? ...@@ -12,6 +12,12 @@ What's New in Python 2.4 alpha 2?
Core and builtins Core and builtins
----------------- -----------------
- PEP-0318, Function Decorators have been added to the language. These are
implemented using the Java-style @decorator syntax, like so:
@staticmethod
def foo(bar):
(The PEP needs to be updated to reflect this XXX before 2.4a2)
- When importing a module M raises an exception, Python no longer leaves M - When importing a module M raises an exception, Python no longer leaves M
in sys.modules. Before 2.4a2 it did, and a subsequent import of M would in sys.modules. Before 2.4a2 it did, and a subsequent import of M would
succeed, picking up a module object from sys.modules reflecting as much succeed, picking up a module object from sys.modules reflecting as much
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment