scripting language newbie - compatibility
Moshe Zadka
moshez at math.huji.ac.il
Tue Aug 8 10:18:43 EDT 2000
On 8 Aug 2000, Cameron Laird wrote:
> An example is currently under discussion in comp.lang.tcl.
> $file close
> resists significant byte compilation, because $file might
> be *anything*--this command could, with little strain, have
> the effect of printing the word, "close", to the screen.
Huh?
What would the difference be between that and
file.close()
(
class _file:
def __getattr__(self, name):
def _(name=name):
print name
return _
file=_file()
)
--
Moshe Zadka <moshez at math.huji.ac.il>
There is no IGLU cabal.
http://advogato.org/person/moshez
More information about the Python-list
mailing list