Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/python-wasm
Path: blob/main/python/pylang/test/_import_one.py
1396 views
1
# vim:fileencoding=utf-8
2
nonlocal GLOBAL_SYMBOL
3
4
'Module level ds1'
5
6
7
def toplevel_func(a):
8
return a + 'toplevel'
9
10
11
'''
12
Module level ds2
13
line2
14
'''
15
16
17
class TopLevel:
18
def __init__(self, a):
19
self.a = a
20
21
22
'Module level ds 3'
23
24
25
class AClass(TopLevel):
26
def __init__(self, a):
27
self.a = a
28
29
30
toplevel_var = 'foo'
31
32
if True:
33
true_var = 'true'
34
else:
35
false_var = 'false'
36
37
GLOBAL_SYMBOL = 'i am global'
38
39
from _import_two.other import other
40
41
test_other = other
42
43