Why not BDWGC?

2006-04-27 Thread LuciferLeo
I've heard that the reason why python uses reference counting rather than tracing collector is because python cannot determine the root set for its various C extensions. But provided that BDWGC(full name: Boehm-Demers-Weiser conservative garbage collector) is conservative --- can be used for C, and

misleading prefix ++

2006-05-20 Thread LuciferLeo
given i = 0, I know i = i + 1 and i += 1 are all correct but when I type: >>> i++ the interpreter replies: File "", line 1 i++ ^ SyntaxError: invalid syntax so I get the idea that suffix ++ is invalid in python but when I input: >>> ++i and the interpreter replies 0 Don't you think it