all of my python conventions came from the styleguide:

http://www.python.org/peps/pep-0008.html

so this would explain why Im using "class_":

  If your public attribute name collides with a reserved keyword, append
   a single trailing underscore to your attribute name.  This is
   preferable to an abbreviation or corrupted spelling.  E.g. "class_"
   is preferable to "cls" or "klass".


Jonathan Ellis wrote:
> On 1/5/06, Michael Bayer <[EMAIL PROTECTED]> wrote:
>
>> also I have class_ all over the place, it has usually seemed less
>> annoying to me than using 'klass' which I have seen here and there.
>> but I suck at conventions....what do you think ?
>>
>
> It doesn't really bother me either way, but using klass to mean "a
> reference
> to a type" is standard in python the way using i as a loop variable is in
> C.  Most of the hits for python class_ otoh were hits to C++ code. :)
>
> --
> Jonathan Ellis
> http://spyced.blogspot.com
>



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to