jaraco / irc

Full-featured Python IRC library for Python.
MIT License
392 stars 87 forks source link

remove getter functions #2

Closed jaraco closed 8 years ago

jaraco commented 8 years ago

(Copied from [[https://sourceforge.net/p/python-irclib/feature-requests/4/|SourceForge]])

They are horribly ugly and unpythonic. Instead of e.g. whatever.source().xyz it should be whatever.source.xyz. The easiest way to change this while keeping the read-only style of those properties is simply decorating all those getters with @property and then using them like normal variables.


jaraco commented 8 years ago

Fixed and released in irc 5.0.


Original comment by: Jason R. Coombs