[Python-Dev] Python Benchmarks

2006-05-31 Thread Niko Matsakis
ce, though if there is one and I didn't find it I would be very happy to be proven wrong. In any case, I would appreciate advice from the experts regarding what's available and what it tests. thank you, Niko Matsakis ___ Python-Dev mai

Re: [Python-Dev] PEP-xxx: Unification of for statement and list-comp syntax

2006-05-22 Thread Niko Matsakis
> I saw them. Your brain must be wired very differently > to mine, because I find loops with a continue in them > harder to follow than ones without -- exactly the > opposite of what you seem to prefer. Delurking for no particular reason: For what it's worth, I also favor the continue syntax Heik

Re: [Python-Dev] Memory management in the AST parser & compiler

2005-11-16 Thread Niko Matsakis
> Boy am I wanting RAII from C++ for automatic freeing when scope is > left. Maybe we need to come up with a similar thing, like all memory > that should be freed once a scope is left must use some special struct > that stores references to all created memory locally and then a free > call must be

Re: [Python-Dev] Memory management in the AST parser & compiler

2005-11-15 Thread Niko Matsakis
> As Neal pointed out, it's tricky to write code for the AST parser > and compiler > without accidentally letting memory leak when the parser or > compiler runs into > a problem and has to bail out on whatever it was doing. Thomas's > patch got to > v5 (based on Neal's review comments) with m

Re: [Python-Dev] Bare except clauses in PEP 348

2005-08-24 Thread Niko Matsakis
> > txn = new_transaction() > try: > txn.begin() > rtn = do_work() > finally: > if exception_occurred(): > txn.abort() > else: > txn.commit() > return rtn > Couldn't you just do: txn = new_transaction () try: complete = 0 txn.begin ()

Re: [Python-Dev] Bare except clauses in PEP 348

2005-08-24 Thread Niko Matsakis
> As for the rest, I'm not as sure and it would be helpful to get > thoughts > from others on this one. My sense is that blocking the clause from > appearing in the middle is treating the symptom and not the disease. +1 It would be better to prohibit bare except entirely (well, presumably at