Re: Question about None

2009-06-14 Thread Steven D'Aprano
On Sun, 14 Jun 2009 18:02:54 +0100, Arnaud Delobelle wrote: > Steven D'Aprano writes: >> So-called "vacuous truth". It's often useful to have all([]) return >> true, but it's not *always* useful -- there are reasonable cases where >> the opposite behaviour would be useful: >> >> if all(the eviden

Re: Question about None

2009-06-14 Thread Steven D'Aprano
On Sun, 14 Jun 2009 19:14:10 -0400, Terry Reedy wrote: > Steven D'Aprano wrote: >> >> So-called "vacuous truth". It's often useful to have all([]) return >> true, but it's not *always* useful -- there are reasonable cases where >> the opposite behaviour would be useful: [...] > It seems to me tha

Re: Measuring Fractal Dimension ?

2009-06-14 Thread Steven D'Aprano
On Sun, 14 Jun 2009 14:29:04 -0700, Kay Schluehr wrote: > On 14 Jun., 16:00, Steven D'Aprano > wrote: > >> Incorrect. Koch's snowflake, for example, has a fractal dimension of >> log 4/log 3 ≈ 1.26, a finite area of 8/5 times that of the initial >> triangle, and a perimeter given by lim n->inf (

Re: waling a directory with very many files

2009-06-14 Thread Steven D'Aprano
On Sun, 14 Jun 2009 22:35:50 +0200, Andre Engels wrote: > On Sun, Jun 14, 2009 at 6:35 PM, tom wrote: >> i can traverse a directory using os.listdir() or os.walk(). but if a >> directory has a very large number of files, these methods produce very >> large objects talking a lot of memory. >> >> in

Re: moving Connection/PipeConnection between processes

2009-06-14 Thread Randall Smith
Now that I've done some homework, everything you said is clear. Mike Kazantsev wrote: Pickle has nothing to do with the problem since it lay much deeper: in the OS. From kernel point of view, every process has it's own "descriptor table" and the integer id of the descriptor is all the process

Re: Good books in computer science?

2009-06-14 Thread Bob Martin
in 117455 20090615 044816 Steven D'Aprano wrote: >On Mon, 15 Jun 2009 10:39:50 +1200, Lawrence D'Oliveiro wrote: > >>> Shame on you for deliberately cutting out my more serious and nuanced >>> answer while leaving a silly quip. >> >> Can't have been very "serious and nuanced" if it could be summe

<    1   2