A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2002-September/029011.html below:

[Python-Dev] proposal for interfaces (errata)

[Python-Dev] proposal for interfaces (errata)Esteban U.C.. Castro esteban@ccpgames.com
Mon, 30 Sep 2002 06:47:34 -0000
g_f should be i2f.

SPAM END :)
___________



Method renaming:
----------------

 class I1(interface):
   def f(self): ""

 class I2(interface):
   def f(self, a, r, g, s): ""

 class SomeClass:

   def i_f(self): pass
   i1f.__implements__ =3D I1.f

   def g_f(self, a, r, g, s): pass
   i2f.__implements__ =3D I2.f

[Note: if 'implements' is introduced as a keyword, as in the PEP, =
we=3D20
could just as well declare

 def g_f(self, a, r, g, s) implements I2.f:
   ...
]



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4