Home

Bruno Desthuilliers <bdesth.quelquechose@free.quelquepart.fr> writes:
> from foo import foo
> x = foo(3)
>
> Or did I miss the point ???

The foo module might define a bunch of additional functions that you
still want to be able to access in qualified form. For example it
would somewhat clean up the interface to the python random module if
you could say

import random
x = random() # get a random float between 0 and 1

while still having access to random.shuffle, random.choice, etc.

previous
next

Re: Numeric command-line options vs. negative-number arguments
Re: Using s.sort([cmp[, key[, reverse]]]) to sort a list of objects based on a attribute
RE: A question on python performance.
Re: AIX - Python - db2.py
Re: Writing Object Data to Disk
rtv
Mariquita
laptop
tuleje wieloklinowe
frezy do metalu