Re: Renaming or Overloading In Python

2007-03-19 Thread gamename
On Mar 18, 4:57 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: > gamename <[EMAIL PROTECTED]> wrote: > > Hi, > > > I'm a recent convert from TCL. One of the more powerful aspects of > > TCL is the ability to rename a function at will (generally for testing > > purposes). > > > Example from the tcl d

Re: Renaming or Overloading In Python

2007-03-18 Thread Alex Martelli
gamename <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a recent convert from TCL. One of the more powerful aspects of > TCL is the ability to rename a function at will (generally for testing > purposes). > > Example from the tcl doc: > > rename ::source ::theRealSource > set sourceCount 0 > proc ::

Re: Renaming or Overloading In Python

2007-03-18 Thread Paul McGuire
On Mar 18, 2:17 pm, "gamename" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm a recent convert from TCL. One of the more powerful aspects of > TCL is the ability to rename a function at will (generally for testing > purposes). > > Example from the tcl doc: > > rename ::source ::theRealSource > set sourc

Re: Renaming or Overloading In Python

2007-03-18 Thread Diez B. Roggisch
gamename schrieb: > Hi, > > I'm a recent convert from TCL. One of the more powerful aspects of > TCL is the ability to rename a function at will (generally for testing > purposes). > > Example from the tcl doc: > > rename ::source ::theRealSource > set sourceCount 0 > proc ::source args { >

Renaming or Overloading In Python

2007-03-18 Thread gamename
Hi, I'm a recent convert from TCL. One of the more powerful aspects of TCL is the ability to rename a function at will (generally for testing purposes). Example from the tcl doc: rename ::source ::theRealSource set sourceCount 0 proc ::source args { global sourceCount puts "called sourc