Changes between Version 152 and Version 153 of j2p
- Timestamp:
- 11/06/24 14:40:16 (5 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v152 v153 364 364 Place the #PY block directly before the object you want to override. For example if you place a #PY block before an annotation, you override only the annotation, not the actual method/class after the annotation. This unfortunately will look a bit non-java but it seems the best way to accurately target the override. 365 365 366 If you want to insert a statement in python, not overriding an existing java statement, then insert an empty statement {{{;}}} in java, and annotate it with //#PY as usual. 367 368 {{{#!td style="background: #fee" 369 Do not add a line-comment AFTER the empty statement - it will override the earlier comment 370 }}} 371 372 366 373 Python has strict requirements regarding indentation. To make this possible, we need to be strict about indentation as well. In a single line python comment, the code must look exactly like 367 374