2015-08-10 13:38:06 +00:00
|
|
|
# Copyright 2015 The go-python Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style
|
|
|
|
# license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
## py2/py3 compat
|
|
|
|
from __future__ import print_function
|
|
|
|
|
|
|
|
import simple as pkg
|
|
|
|
|
2018-12-13 17:26:03 +00:00
|
|
|
print("doc(pkg):\n%s" % repr(pkg.__doc__).lstrip('u'))
|
2015-08-10 13:38:06 +00:00
|
|
|
print("pkg.Func()...")
|
|
|
|
pkg.Func()
|
|
|
|
print("fct = pkg.Func...")
|
|
|
|
fct = pkg.Func
|
|
|
|
print("fct()...")
|
|
|
|
fct()
|
|
|
|
|
2015-09-08 10:42:46 +00:00
|
|
|
print("pkg.Add(1,2)= %s" % (pkg.Add(1,2),))
|
2017-06-27 09:38:19 +00:00
|
|
|
print("pkg.Bool(True)= %s" % pkg.Bool(True))
|
|
|
|
print("pkg.Bool(False)= %s" % pkg.Bool(False))
|
2017-07-05 15:32:41 +00:00
|
|
|
a = 3+4j
|
|
|
|
b = 2+5j
|
|
|
|
print("pkg.Comp64Add(%s, %s) = %s" % (a, b, pkg.Comp128Add(a, b)))
|
|
|
|
print("pkg.Comp128Add(%s, %s) = %s" % (a, b, pkg.Comp128Add(a, b)))
|