ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:glossary:i:import

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
en:glossary:i:import [2020/05/16 17:03]
Horst JENS
en:glossary:i:import [2020/05/16 17:04] (current)
Horst JENS
Line 12: Line 12:
 You can import only a specific class or function: You can import only a specific class or function:
  
-<code python;​gutter:​false>​+<code python; gutter:​false>​
 from modulename import this from modulename import this
 from modulename import this, that, another thing from modulename import this, that, another thing
Line 19: Line 19:
 You can import everything from a module using the star, but this is not recommended:​ You can import everything from a module using the star, but this is not recommended:​
  
-<​code ​pyhton;​gutter:​false>​+<​code ​python; gutter:​false>​
 from modulname import * from modulname import *
 </​code>​ </​code>​
/var/www/horst/thepythongamebook.com/data/pages/en/glossary/i/import.txt ยท Last modified: 2020/05/16 17:04 by Horst JENS