projects
/
cython.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d96b212
)
freeze: fix cmath.pyx when run as __main__
author
Mark Lodato
<lodatom@gmail.com>
Tue, 6 Oct 2009 01:37:12 +0000
(21:37 -0400)
committer
Mark Lodato
<lodatom@gmail.com>
Tue, 6 Oct 2009 01:37:12 +0000
(21:37 -0400)
Demos/freeze/cmath.pyx
patch
|
blob
|
history
diff --git
a/Demos/freeze/cmath.pyx
b/Demos/freeze/cmath.pyx
index cc3f0521ed9a64494798c7f13bfbda00c4055998..d94bb1f2e895264feefe7ae49866d99033c1e780 100644
(file)
--- a/
Demos/freeze/cmath.pyx
+++ b/
Demos/freeze/cmath.pyx
@@
-20,5
+20,5
@@
if __name__ == "__main__":
if len(sys.argv) != 2:
sys.stderr.write("USAGE: %s n\nPrints n!.\n" % sys.argv[0])
sys.exit(1)
- n = map(float, sys.argv[1:])
+ n
,
= map(float, sys.argv[1:])
print factorial(n)