Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 3rd, 2006, 11:18 AM   #11
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,013
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
I got it from the CherryPy FAQs on using reserved function names.
Sane is offline   Reply With Quote
Old Jun 3rd, 2006, 12:11 PM   #12
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
Quote:
Originally Posted by Sane
I got it from the CherryPy FAQs on using reserved function names.
I think I found the FAQ you mean, and I think you've misunderstood it slightly.

The CherryPy FAQ was talking about using reserved names (such as 'class' or 'print') for the names of methods in functions. Because CherryPy takes the function name as the page name, this is relevant if one wants to have a page in CherryPy called "class" or "return", or something similar.

This doesn't apply to the names of builtin functions, just reserved names that are part of the Python syntax itself.
Arevos is offline   Reply With Quote
Old Jun 3rd, 2006, 9:10 PM   #13
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 2,013
Rep Power: 6 Sane will become famous soon enough
Send a message via MSN to Sane
Oh, it was my mistake to assume that both builtin concepts would take the same reservations.
Sane is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:40 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC