String or None segmentation fault

Dec. 30, 2008
11:15 a.m.
Hi, the following code compiles into something that segfaults. Attached is a patch trying to fix that. def nstr(i): if i==0: return None return str(i) def fn(i): return (str(nstr(0)), str(nstr(i))) -- Håkan Ardö
5977
Age (days ago)
5977
Last active (days ago)
0 comments
1 participants
participants (1)
-
Hakan Ardo