Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: classes

Thread Tools

Re: classes

Zero Piraeus
Posts: n/a

On 24 October 2012 11:18, Chris Angelico <(E-Mail Removed)> wrote:
> On Thu, Oct 25, 2012 at 2:14 AM, Zero Piraeus <(E-Mail Removed)> 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 ...

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Classes within classes David ASP .Net 2 07-22-2005 07:13 PM
What is the difference between nested classes and inner classes ? Razvan Java 5 07-27-2004 07:59 PM
Modifiers applied to attributes, local variables, member functions, classes and inncer classes ! Razvan Java 11 07-17-2004 08:57 PM
Can I using reflection to get all child classes or classes undera package dynamically? Carfield Yim Java 1 05-31-2004 05:33 PM
How to access inner classes variables & methods from outer classes lonelyplanet999 Java 1 11-13-2003 01:54 PM