Re: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2)

2004-12-04 Thread Gustavo Córdova Avila
Thomas Heller wrote: Gerrit <[EMAIL PROTECTED]> writes: Cameron Laird wrote: Subject: Dr. Dobb's Python-URL! - weekly Python news and links (Dec 2) What is the frequency of the weekly Python-URL? (-; According to the name, about 1.6 µHz. Thomas NOW you've done it!! Made me s

Re: non blocking read()

2004-12-02 Thread Gustavo Córdova Avila
Steve Holden wrote: Gustavo Córdova Avila wrote: Actually the op did mention that he wanted to monitor files. As was pointed out to me when I made the same assertion, he actually said "file object which is stdin" or something like that, which means the object could be a socket, a pipe,

Re: non blocking read()

2004-12-02 Thread Gustavo Córdova Avila
indeed talking about a pipe or something that really can block, and you call fileobject.read(1024), it will block until it gets 1024 bytes. Donn Cave, [EMAIL PROTECTED] Actually the op did mention that he wanted to monitor files. -- Gustavo Córdova Avila <[EMAIL PROTECTED]> <mailto:[EMAI

Re: non blocking read()

2004-12-01 Thread Gustavo Córdova Avila
David Bolen wrote: Jp Calderone <[EMAIL PROTECTED]> writes: def nonBlockingReadAll(fileObj): bytes = [] while True: b = fileObj.read(1024) bytes.append(b) if len(b) < 1024: break return ''.join(bytes) Wouldn't this still block

Re: Python 3000 and "Python Regrets"

2004-12-01 Thread Gustavo Córdova Avila
:-) -- Gustavo Córdova Avila <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> *Tel:* +52 (81) 8130-1919 ext. 127 Integraciones del Norte, S.A. de C.V. Padua #6047, Colonia Satélite Acueducto Monterrey, Nuevo León, México. -- http://mail.python.org/mailman/listinfo/python-list

Re: comment out more than 1 line at once?

2004-11-30 Thread Gustavo Córdova Avila
th embeded comments ! */ #endif Rob. Actually, it's infinitly [sp?] more defficient (contrary of efficient?) than triple-quoted strings or line-by-line comments, because those two never make it to execution stage, because they're dropped by the compiler. :-) -- Gustavo Córdova Avi

Re: comment out more than 1 line at once?

2004-11-30 Thread Gustavo Córdova Avila
ines of code: triple-quoted strings. Strings which are unassigned in a source file are dropped by the compiler, so they don't make it to the execution stage; they're nice that way. -- Gustavo Córdova Avila <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> *Tel:* +52 (81) 8130-1919 ext

Re: Protecting Python source

2004-11-30 Thread Gustavo Córdova Avila
Peter Maas wrote: Grant Edwards schrieb: On 2004-11-29, Peter Maas <[EMAIL PROTECTED]> wrote: If the "reverse engineering" argument boils down to "protecting source doesn't make sense" then why does Microsoft try so hard to protect its sources? To avoid embarassment. :) This cannot be the whole tr

Anybody using Arch?

2004-11-29 Thread Gustavo Córdova Avila
Does anybody have an Arch archive with the current python source I could slurp it from? Thanks in advance :-) -- Gustavo Córdova Avila <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> *Tel:* +52 (81) 8130-1919 ext. 127 Integraciones del Norte, S.A. de C.V. Padua #6047, Colonia Satéli