詹博丞
unread,Feb 8, 2016, 8:39:58 AM2/8/16Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to chewin...@googlegroups.com
Hi, PCMan
我另外可否請教兩個問題:
1. __del__ 連過去看是用 chewing_free 來釋放 ctx, 但看了一下應該是 chewing_delete 才有把
ctx 佔用的資源一起釋放,所以我也有發 issue, 是否用 chewing_delete 比較好?
2. __getattr__ 目前對 API call 沒有管制,但是我想請教是否要管制 new, new2, delete, free 等
API? 前三者是因為它們關係到 ctx 的 construct/destruct, 最好由 __init__, __del__
統一管理,free 因為它的參數沒有 ctx 而且目前 memory leak 的 API 被完全 disable, 所以覺得 free
也該被禁用,不過這個是否要 check 我沒發 issue, 想先在此提出
以上淺見,thanks!