ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> python-tutor
python-tutor
Re: [Tutor] Classes that do operator overloading
by C.T. Matsumoto other posts by this author
Nov 7 2009 1:41AM messages near this date
Re: [Tutor] Classes that do operator overloading | Re: [Tutor] Classes that do operator overloading
yes,

class Foo: # the book says this is a class header
    pass

As for my question it looks like the convention is if a class only has
operator overloading then the class receives a lowercase class name.
If the class has a mix, operator overloading and a normal method then
the class name gets starts with a capital.

It's just a detail, but I wanted to know.

T
Alan Gauld wrote:
> 
>  "C.T. Matsumoto" <tmatsumoto@[...].net> wrote
> > I'm reading Learning Python's section 'Operator Overloading' and I 
> > was wondering why class headers that implement and overload are 
> > lowercase?
> 
>  I'm not sure what you mean by class headers?
>  Can you post an example?
> 
> 

_______________________________________________
Tutor maillist  -  Tutor@[...].org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Thread:
C.T. Matsumoto
Alan Gauld
Alan Gauld
Alan Gauld
Spir
C.T. Matsumoto
Hugo Arts
C.T. Matsumoto
Hugo Arts
Tim Golden

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved