[Python-checkins] peps: Update pep-362 text.

andrew.svetlov python-checkins at python.org
Fri Sep 21 17:08:34 CEST 2012


http://hg.python.org/peps/rev/20e3164cc43b
changeset: 4515:20e3164cc43b
user: Andrew Svetlov <andrew.svetlov at gmail.com>
date: Fri Sep 21 18:08:27 2012 +0300
summary:
 Update pep-362 text.
files:
 pep-0362.txt | 4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pep-0362.txt b/pep-0362.txt
--- a/pep-0362.txt
+++ b/pep-0362.txt
@@ -90,8 +90,8 @@
 True
 
 >>> new_sig = new_sig.replace(return_annotation=new_sig.empty)
- >>> hasattr(new_sig, "return_annotation")
- False
+ >>> new_sig.return_annotation is Signature.empty
+ True
 
 There are two ways to instantiate a Signature class:
 
-- 
Repository URL: http://hg.python.org/peps


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /