[問題] assert() in extensions for CPython

看板Python作者 (Eric)時間14年前 (2010/03/12 22:59), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
前陣子將手邊一個C code的project改寫成Python C module, 但改用distutils來做build之後不知為啥原本C code裡面的assert() 全部失效,distutils.core.Extension裡面user可以設的compiler flag 也跟原本都一樣。 請問有人也有遇過類似的狀況嗎?assert()失效真的是很~~~恐怖的事情.......>< -- Real World, The (n.): 1. In programming, those institutions at which programming may be used in the same sentence as FORTRAN, COBOL, RPG, IBM, etc. 2. To programmers, the location of non-programmers and activities not related to programming. 3. A universe in which the standard dress is shirt and tie and in which a person's working hours are defined as 9 to 5. -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.94.118
文章代碼(AID): #1BcbRfyg (Python)