Changes between Version 106 and Version 107 of j2p


Ignore:
Timestamp:
07/11/24 09:50:35 (7 months ago)
Author:
wouter
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • j2p

    v106 v107  
    191191
    192192
     193=== Reserved keywords
     194Python has a number of reserved keywords:
     195
     196and
     197except
     198lambda
     199with
     200as
     201finally
     202nonlocal
     203while
     204assert
     205false
     206None
     207yield
     208break
     209for
     210not
     211class
     212from
     213or
     214continue
     215global
     216pass
     217def
     218if
     219raise
     220del
     221import
     222return
     223elif
     224in
     225True
     226else
     227is
     228try
     229
     230If you have these in your java program, as method name or variable name, then j2p will change the name by capitalizing the first letter of the name. Do not use both the lower and upper case variant at the same time, because the translated names will then collide.
     231
     232
    193233=== More notes:
    194234* some classes like {{{Arrays}}} or {{{Override}}} do not have a direct python equivalent. calls to static functions in these classes can still be translated.