bartc wrote:

"Wolfgang Rohdewald" <wolfg...@rohdewald.de> wrote in message news:mailman.1056.1263771299.28905.python-l...@python.org...
On Monday 18 January 2010, BarryJOgorman wrote:
TypeError: object._new_() takes no parameters

    def _init_(self, name, job=None, pay=0):

__init__ needs two underscores left and right

Any particular reason why two, and not one (or three)? In some fonts it's difficult to tell how many as they run together.

I believe it was borrowed from C, which has __FILE__ and __LINE__
(CPython is written in C).

With hindsight, of course, single underscores would've been
sufficient...
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to