From 21a691e0e50bef589eeba53b4e202eb4f9d8f410 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 7 Aug 2001 15:44:15 +0000 Subject: [PATCH] Add note about similarity between class methods and Delphi's virtual class methods. --- pep-0252.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pep-0252.txt b/pep-0252.txt index 7b19eadcb..5fa7a2ea6 100644 --- a/pep-0252.txt +++ b/pep-0252.txt @@ -381,10 +381,12 @@ Static methods and class methods receive an implicit first argument that is the *class* for which they are invoked. This has no C++ or Java equivalent, and is not quite the same as what class methods are in Smalltalk, but may - serve a similar purpose. (Python also has real metaclasses, and - perhaps methods defined in a metaclass have more right to the name - "class method"; but I expect that most programmers won't be using - metaclasses.) Here's an example: + serve a similar purpose. According to Armin Rigo, they are + similar to "virtual class methods" in Borland Pascal dialect + Delphi. (Python also has real metaclasses, and perhaps methods + defined in a metaclass have more right to the name "class method"; + but I expect that most programmers won't be using metaclasses.) + Here's an example: class C: