Changes between Version 35 and Version 36 of j2p
- Timestamp:
- 06/26/23 16:16:53 (16 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
j2p
v35 v36 106 106 Comments can contain python code to override the automatic code, if the block starts with {{{#PY}}}. This code replaces the entire object (if/case/while block; statement) that follows the comment. 107 107 108 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. 109 108 110 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 109 111