overriding built-ins

dan danbmil99 at yahoo.com
Sun Sep 28 15:20:01 EDT 2003


I really have two related questions.

1) Is it possible (without recompiling and changing the core Python
behavior) to write functions that utilize the same syntax as built-in
functions?  IE, can I create a function that does this:

>>>printCaps "hello"          #note no parentheses
HELLO


2) Is it possible to do this with the built-in keywords themselves, ie
override functions such as print?

thanks in advance -




More information about the Python-list mailing list