My python annoyances so far

Diez B. Roggisch deets at nospam.web.de
Wed Apr 25 19:13:25 EDT 2007


flifus at gmail.com schrieb:
> Hi all. I'm learning python these days. I'm going to use this thread
> to post, from time to time, my annoyances with python. I hope someone
> will clarify things to me where I have misunderstood them.
> 
> Annoyances:
> 
> 1. Underscores! What's the deal with that? Especially those double
> underscores. The best answer I read on this is that the double
> underscores denotes special methods that the interpreter may
> automatically use. For example, 4+4 get expanded by the interpreter to
> 4.__add__(4).


http://docs.python.org/ref/specialnames.html

> 2. There are modules, there are functions, and there are classes-
> methods! Wouldn't it have been easier had everything either been a
> function or a class method?

I'm not sure what you mean here. modules are modules, they can contain 
functions, classes, top-level code. Functions and class-methods are 
similar, but there are some differences that make sense. But I'm not 
sure if you really _mean_ class methods, given that you confuse so much.

The python community is a unusually friendly bunch of people. Yet you 
should consider not calling things you don't understand "annoyances".

Diez



More information about the Python-list mailing list