instiki/attic/vendor/plugins/HTML5lib/testdata/sites/python-ref-import.htm

2 lines
13 KiB
HTML
Raw Permalink Normal View History

2007-06-12 06:33:06 +02:00
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><link rel="STYLESHEET" href="ref.css" type='text/css' /><link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /><link rel='start' href='../index.html' title='Python documentation Index' /><link rel="first" href="ref.html" title='Python reference Manual' /><link rel='contents' href='contents.html' title="Contents" /><link rel='index' href='genindex.html' title='Index' /><link rel='last' href='about.html' title='About this document...' /><link rel='help' href='about.html' title='About this document...' /><link rel="next" href="global.html" /><link rel="prev" href="continue.html" /><link rel="parent" href="simple.html" /><link rel="next" href="future.html" /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name='aesop' content='information' /><title>6.12 The import statement </title></head><body><div class="navigation"><div id='top-navigation-panel' xml:id='top-navigation-panel'><table align="center" width="100%" cellpadding="0" cellspacing="2"><tr><td class='online-navigation'><a rel="prev" title="6.11 the continue statement" href="continue.html"><img src='../icons/previous.png' border='0' height='32' alt='Previous Page' width='32' /></a></td><td class='online-navigation'><a rel="parent" title="6. simple statements" href="simple.html"><img src='../icons/up.png' border='0' height='32' alt='Up one Level' width='32' /></a></td><td class='online-navigation'><a rel="next" title="6.12.1 future statements" href="future.html"><img src='../icons/next.png' border='0' height='32' alt='Next Page' width='32' /></a></td><td align="center" width="100%">Python Reference Manual</td><td class='online-navigation'><a rel="contents" title="Table of Contents" href="contents.html"><img src='../icons/contents.png' border='0' height='32' alt='Contents' width='32' /></a></td><td class='online-navigation'><img src='../icons/blank.png' border='0' height='32' alt='' width='32' /></td><td class='online-navigation'><a rel="index" title="Index" href="genindex.html"><img src='../icons/index.png' border='0' height='32' alt='Index' width='32' /></a></td></tr></table><div class='online-navigation'><b class="navlabel">Previous:</b><a class="sectref" rel="prev" href="continue.html">6.11 The continue statement</a><b class="navlabel">Up:</b><a class="sectref" rel="parent" href="simple.html">6. Simple statements</a><b class="navlabel">Next:</b><a class="sectref" rel="next" href="future.html">6.12.1 Future statements</a></div><hr /></div></div><!--End of Navigation Panel--><h1><a name="SECTION0081200000000000000000"></a><a name="import"></a><br>6.12 The <tt class="keyword">import</tt> statement </h1><a id='l2h-535' xml:id='l2h-535'></a><a id='l2h-556' xml:id='l2h-556'></a><a id='l2h-536' xml:id='l2h-536'></a><a id='l2h-537' xml:id='l2h-537'></a><p><dl><dd class="grammar"><div class="productions"><table><tr> <td><a id='tok-import_stmt' xml:id='tok-import_stmt'>import_stmt</a></td> <td>::=</td> <td>"import" <a class='grammartoken' href="import.html#tok-module">module</a> ["as" <a class='grammartoken' href="notation.html#tok-name">name</a>] ( "," <a class='grammartoken' href="import.html#tok-module">module</a> ["as" <a class='grammartoken' href="notation.html#tok-name">name</a>] )*</td></tr> <tr> <td></td> <td></td> <td><code>| "from" <a class='grammartoken' href="import.html#tok-module">module</a> "import" <a class='grammartoken' href="identifiers.html#tok-identifier">identifier</a> ["as" <a class='grammartoken' href="notation.html#tok-name">name</a>]</code></td></tr> <tr> <td></td> <td></td> <td><code>( "," <a class='grammartoken' href="identifiers.html#tok-identifier">identifier</a> ["as" <a class='grammartoken' href="notation.html#tok-name">name</a>] )*</code></td></tr> <tr> <td></td> <td></td> <td><code>| "from" <a class='grammartoken' href="import.html#tok-module">module</a> "import" "(" <a class='grammartoken' href="identifiers.html#tok-identifier">identifie