classes

Zero Piraeus schesis at gmail.com
Wed Oct 24 12:10:07 EDT 2012


:

On 24 October 2012 11:18, Chris Angelico <rosuav at gmail.com> wrote:
> On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus <schesis at gmail.com> wrote:
>> [... on return values and side effects ...]
>
> Side point: It's not that it's *bad* code or even bad style;

It's a matter of taste, sure, but especially for a beginner, it's easy
to find yourself using a method for its return value and forgetting
that it actually does something to the object as well ... and then
getting bitten later.

> it just isn't the way Python generally does things.

When in Rome ... :-)

 -[]z.



More information about the Python-list mailing list