Double underscores -- ugly?
jgodoy at gmail.com
Wed Feb 20 11:17:40 CET 2008
Ivan Illarionov wrote:
> I would like to see something like %init or &init to be converted to
> __init__ behind the scenes. And $something to be converted to
> self.something. But, unfortunately, most Python people would consider
> this ugly just because Perl uses too much syntactic sugar and anything
> Perl-like is considered ugly in Python community. So, unless Perl die,
> I believe that Python will remain sugar-free.
A good text editor allows you to replace text. Some of them can even do
that for you with macros when you save a document or open it for editing
(making it possible to go from "$" to "self" and vice-versa).
Maybe using another tool would solve your problem.
More information about the Python-list