projects
/
cython.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Buffer type checking cleanup/rewrite (now uses use_utility_code)
[cython.git]
/
tests
/
run
/
r_bowden1.pyx
1
__doc__ = u"""
2
>>> f(100)
3
101L
4
>>> g(3000000000)
5
3000000001L
6
"""
7
8
import sys
9
if sys.version_info[0] >= 3:
10
__doc__ = __doc__.replace(u"L", u"")
11
12
def f(x):
13
cdef unsigned long long ull
14
ull = x
15
return ull + 1
16
17
def g(unsigned long x):
18
return x + 1