Re: Fwd: Namespace question

2007-10-31 Thread Frank Aune
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

Fwd: Namespace question

2007-10-31 Thread Andrii V. Mishkovskyi
2007/10/31, Frank Aune <[EMAIL PROTECTED]>: > Hello, > > Is it possible writing custom modules named the same as modules in the > standard library, which in turn use the same module from the standard > library? > > Say I want my application to have a random.py module, which in turn must > import th