A RetroSearch Logo

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

Search Query:

Showing content from https://mail.python.org/pipermail/python-list/2001-April/086711.html below:

idioms for abstract base classes

idioms for abstract base classes idioms for abstract base classesCarlos Ribeiro cribeiro at mail.inet.com.br
Fri Apr 13 13:41:36 EDT 2001
In Delphi, there is a "abstract" keyword that can be used as syntactic 
sugar as in the example below:

class B:
   def __init__(self): abstract
   def dosomething(self): abstract

...where "abstract" will raise a "abstract method exception". Do anyone 
smells a PEP here <wink>?


(disclaimer: before someone accuses me... Python don't need any extra 
reserved word, IMHO)


Carlos Ribeiro




More information about the Python-list mailing list

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