Menu

#14 python exportation "_"

v1.3a
open
nobody
plugins (2)
5
2003-07-04
2003-07-04
Anonymous
No

Instead of the verbose 'self' I personally favour the
concise '_' in
class methods, e.g.:

class Foo:
def __init__(_):
_.bar = "bar"
def __repr__(_):
return _.bar

Since 'self' or '_' is a purely internal class issue
(never exposed to
the outside world) wouldn't it be nice to make it a
configuration option
in pyut?

Kind regards,

Henk Jansen

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.