Unified Type/class
Pedro Rodriguez
pedro_rodriguez at club-internet.fr
Sat Jan 26 13:06:11 EST 2002
"Pedro Rodriguez" <pedro_rodriguez at club-internet.fr> wrote:
> "Jason Orendorff" <jason at jorendorff.com> wrote: For imported modules,
> __builtins__ is a dictionary. What I intended was this:
>
> import __builtin__
> __builtin__.str = Kumquat()
>
>
Thanks Jason for the example. It corrects my point of view.
I am checking the Python Reference Manual on namespaces to understand the
rationale and issues of this module (and looking at the library for
examples of usage)
According to these commands, gzip and ihook show me two examples of usage.
grep "__builtin__" $(find . | egrep '\.(py)$') 2>/dev/null
grep "__builtin__.*=" $(find . | egrep '\.(py)$') 2>/dev/null
grep "setattr.*__builtin__" $(find . | egrep '\.(py)$') 2>/dev/null
Regards,
--
Pedro
More information about the Python-list
mailing list