File: test.ngc

package info (click to toggle)
linuxcnc 1%3A2.9.7-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 285,604 kB
  • sloc: python: 202,568; ansic: 109,036; cpp: 99,239; tcl: 16,054; xml: 10,631; sh: 10,303; makefile: 1,255; javascript: 138; sql: 72; asm: 15
file content (15 lines) | stat: -rw-r--r-- 303 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

;py,import interpreter

; pass value to Python and store in a self.attribute
o<retainparam1> call [25.0]

; now check it's still there
o<checkparam1_retained> call

; since 'self' is aliased to 'interpreter.this' 
; the same value must show up here too:

;py,assert interpreter.this.param1 == 25.0
M2