![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
I got it from the CherryPy FAQs on using reserved function names.
|
|
|
|
|
|
#12 | |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 4
![]() |
Quote:
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. |
|
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,791
Rep Power: 5
![]() |
Oh, it was my mistake to assume that both builtin concepts would take the same reservations.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|