Re: Fwd: Namespace question
- From: Frank Aune <Frank.Aune@xxxxxxxxxxxx>
- Date: Wed, 31 Oct 2007 17:59:32 +0100
On Wednesday 31 October 2007 15:19:25 Andrii V. Mishkovskyi wrote:
You mean something like this:
import random
def foo():
... print '42'
random.randit = foo
random.randit()
42
am I right?
--
I was thinking more of the line:
random.py: (my custom random.py module)
---
import random # this is the std lib random module
def someFunc():
print random.randint()
---
When I try this, the import statement in the above module will import itself,
and not the std lib random.py
-Frank
.
- Prev by Date: Re: _tkinter installation in python 2.5 on mandriva with a default 2.4
- Next by Date: Re: simple? embedding question
- Previous by thread: Fwd: Namespace question
- Next by thread: Python bug tracker now secret?
- Index(es):