Path: ...!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Lawrence D'Oliveiro Newsgroups: comp.os.linux.advocacy Subject: Re: Why Python When There Is Perl? Date: Fri, 5 Apr 2024 01:02:58 -0000 (UTC) Organization: A noiseless patient Spider Lines: 7 Message-ID: References: <17be420c4f90bfc7$63225$1585792$802601b3@news.usenetexpress.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 05 Apr 2024 01:02:59 +0200 (CEST) Injection-Info: dont-email.me; posting-host="f5e959706a1ab93774d71c78cd2d7e1b"; logging-data="1028030"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EZ/fWSX4knF1uMH6A+mTo" User-Agent: Pan/0.155 (Kherson; fc5a80b8) Cancel-Lock: sha1:XHJQb3e3oRowVWQBqSoMWDyX4Bo= Bytes: 1752 On Wed, 3 Apr 2024 08:28:07 -0400, Chris Ahlstrom wrote: > The C++ enum-class is scoped and strongly typed, thus a bit restrictive. > Implicit conversion (e.g. to int or char) is not supported. Since Python supports multiple inheritance, you can define a subclass which inherits from both enum and, say, int. Or enum and str.