[Python-checkins] CVS: python/nondist/peps pep-0252.txt,1.14,1.15

Guido van Rossum gvanrossum@users.sourceforge.net
2001年7月29日 16:02:54 -0700


Update of /cvsroot/python/python/nondist/peps
In directory usw-pr-cvs1:/tmp/cvs-serv23612
Modified Files:
	pep-0252.txt 
Log Message:
Correct typo and inconsistency detected by Hernan M. Foffani.
Index: pep-0252.txt
===================================================================
RCS file: /cvsroot/python/python/nondist/peps/pep-0252.txt,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** pep-0252.txt	2001年07月18日 13:44:57	1.14
--- pep-0252.txt	2001年07月29日 23:02:52	1.15
***************
*** 389,394 ****
 class C:
 
! def foo(x, y):
! print "classmethod", x, y
 foo = classmethod(foo)
 
--- 389,394 ----
 class C:
 
! def foo(cls, y):
! print "classmethod", cls, y
 foo = classmethod(foo)
 
***************
*** 418,424 ****
 
 class E(C):
! def foo(x, y): # override C.foo
 print "E.foo() called"
 C.foo(y)
 
 E.foo(1)
--- 418,425 ----
 
 class E(C):
! def foo(cls, y): # override C.foo
 print "E.foo() called"
 C.foo(y)
+ foo = classmethod(foo)
 
 E.foo(1)

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