Changes between Version 111 and Version 112 of j2p


Ignore:
Timestamp:
08/19/24 17:13:55 (2 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v111 v112  
    316316 {{{pass}}}, to ensure that the code is a proper statement.
    317317
    318 
    319 
    320 {{{#!td style="background: #efe"
    321 import statements will be placed in your #PY code exactly where you place it. Note that python treats import statements differently depending on where you place them.
    322 
    323 It may be better to put an extra #PY with the import at the top of the code.
    324 }}}
     318Any line containing an import ({{{from ... impport}}} or {{{import ...}}}
     319without leading whitespace is interpreted as a global import. If you place an INDENT before the import, it's not a global import anymore and kept in-line        with the code.
     320
     321You can also annotate import statements with any python code. Note that in the translated python code, these snips will be placed after the imports.
     322
    325323
    326324