Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 22:33, 7 July 2008.

How to import a variable from a module

From Forum Nokia Wiki

The two line code below shows how to import a variable from a module.

Method 1

import mymodule
 
new_variable=mymodule.x

Method 2

from mymodule import x

or

from mymodule import x as new_variable
Related Discussions
Thread Thread Starter Forum Replies Last Post
Sensor module error? federico2929 Python 20 2008-03-10 01:09
help compiling a Python C module mad77 Python 7 2008-03-17 06:52
racing condition problem with positioning module oyuky Python 4 2008-05-22 08:50
Create Local SMS ASP-NewBie General Symbian C++ 1 2008-04-29 10:17
GPS Module LAM-1 ZeZinh0 PC Suite API and PC Connectivity SDK 1 2003-03-06 09:44
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX