[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-14 Thread Timothy Fitz
Timothy Fitz timothyf...@gmail.com added the comment: Does that mean you agree that the behavior is a bug? If we're agreed that the behavior is a bug, then it's just a matter of solving the implementation details. One suggestion is to compile in a __debug__ check at the top of every .pyo file

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-12 Thread Timothy Fitz
Timothy Fitz timothyf...@gmail.com added the comment: In this case bytecode isn't an optimization, it's a distribution choice (this bug reared it's ugly head in our closed-source downloadable client). I think that implausible execution paths are still a bug. Running a .pyo without -O should

Re: Where are list methods documented?

2005-02-01 Thread Timothy Fitz
[Tim Peters] The methods on mutable sequence types are documented in the Library manual's section on mutable sequence types: http://docs.python.org/lib/typesseq-mutable.html And like -many- python programmers, when he thinks List he doesn't immediately think Mutable Sequence Type. The

Re: PyCon Preliminary Program Announced!

2005-01-21 Thread Timothy Fitz
I don't care much for parallel tracks myself, because I want to hear basically everything. But we had more proposals of higher quality this year than ever before, so it came down to scheduling more talks in parallel than ever before too, or rejecting perfectly good proposals. Will there

Zen of Python

2005-01-19 Thread Timothy Fitz
While I agree that the Zen of Python is an amazingly concise list of truisms, I do not see any meaning in: Flat is better than nested. I strive for balance between flat and nested. Does anyone have a good example of where this is applied? (specifically to python, or in general) --

Re: Zen of Python

2005-01-19 Thread Timothy Fitz
On 19 Jan 2005 15:24:10 -0800, Carl Banks [EMAIL PROTECTED] wrote: The gist of Flat is better than nested is be as nested as you have to be, no more, because being too nested is just a mess. Which I agree with, and which makes sense. However your gist is a different meaning. It's not that Flat

while 1 vs while True

2004-12-12 Thread Timothy Fitz
[ http://www.python.org/moin/PythonSpeed ] Starting with Py2.3, the interpreter optimizes 'while 1' to just a single jump. In contrast while True takes several more steps. While the latter is preferred for clarity, time-critical code should use the first form. Out of pure curiousity, Why wasn't