Better name for PEP 403 that also covers the alternative idea discussed near the end

This commit is contained in:
Nick Coghlan 2012-02-22 01:28:07 +10:00
parent 59dc0a6f75
commit 093018129f
1 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
PEP: 403
Title: Forward references to anonymous functions and classes
Title: Statement local functions and classes
Version: $Revision$
Last-Modified: $Date$
Author: Nick Coghlan <ncoghlan@gmail.com>
@ -15,9 +15,11 @@ Resolution: TBD
Abstract
========
This PEP proposes the addition of a new ``in`` statement that allows the use
of the Ellipsis literal (``...``) to make a forward reference to a trailing
anonymous function definition.
This PEP proposes the addition of a new ``in`` statement that accepts a
statement local function or class definition.
The statement allows the use of the Ellipsis literal (``...``) to make a
forward reference to a trailing anonymous function definition.
This new statement is designed to be used whenever a "one-shot" function is
needed, and the meaning of the function is conveyed clearly by the context