[Numpy-discussion] How to use a function into "import function" in python

dileep kunjaai dileepkunjaai at gmail.com
Fri Apr 8 06:54:58 EDT 2011


Dear sir,
 I defined a function  " hit_rate( )"  i want to use this into "import
function(name of function)".
For example:
   I defined a function as

   * def* hit_function(a,b,c):
     .........................
,...............................
............................
        * return*  value

 Now I want to use this in another function as
*
def *test_hr( ):
    import hit_function(a, b, c)
.......................
,,,,,,,,,,,,,,,,,,,,,,,,,,
,,,,,,,,,,,,,,,,,,,,,,,,,
      *return* value1


Please help me to solve this problem.
                                      thanking  you






-- 
DILEEPKUMAR. R
J R F, IIT DELHI
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110408/6ee1a4f4/attachment.html>


More information about the NumPy-Discussion mailing list