What is Python good for?

Ignacio Vazquez-Abrams ignacio at openservices.net
Thu Sep 13 01:39:09 EDT 2001


On Wed, 12 Sep 2001, Ken Seehof wrote:

> Oh yes, the overall effect is definitely "ooh-ahh".  I was
> just commenting that I haven't noticed any specific unique
> python features that are "ooh-ahh".

Here's something that came up recently that if it doesn't make you go
"ooh-ahh", then it will make you go "whoa":

---
>>> def a():
...   return 'abc'
...
>>> def b():
...   return 123
...
>>> a.func_code=b.func_code
>>> a()
123
>>>
---

-- 
Ignacio Vazquez-Abrams  <ignacio at openservices.net>





More information about the Python-list mailing list