mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
* Fix #75 * Build on macOS 11 for #72 * Fix #76 * Fix test * Fix generator example in docs * Fix Python/Cython packaging; Fix #80 * Fix tests * Fix tests * Fix tests * Fix tests * Fix syntax * Fix CI * Fix CI * Fix CI; Dominate imported bindings * Fix CI; Dominate imported bindings * Fix .gitignore * Fix tests * Fix rm command * Format * clang-format * Organize and optimize string formatting * Fix format error message Co-authored-by: Ibrahim Numanagić <ibrahimpasa@gmail.com>
26 lines
250 B
Python
26 lines
250 B
Python
def foo():
|
|
print 'a.foo'
|
|
def bar():
|
|
print 'a.bar'
|
|
print 'a'
|
|
|
|
zoo = 5
|
|
_zoo = 3
|
|
|
|
class B:
|
|
pass
|
|
C = B
|
|
tt = Ptr[B]
|
|
@tuple
|
|
class Foo:
|
|
t: tt
|
|
|
|
def ha():
|
|
c = C()
|
|
print(c.__class__.__name__)
|
|
|
|
|
|
par = 'y'
|
|
if len('x') == 1:
|
|
par = 'x'
|