Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.stack.nl!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.032 X-Spam-Evidence: '*H*': 0.94; '*S*': 0.00; 'cc:addr:python-list': 0.11; 'python': 0.11; '(also': 0.16; '11:42': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'usable': 0.16; 'wrote:': 0.18; 'cc:addr:python.org': 0.22; 'simpler': 0.24; "haven't": 0.24; 'cc:2**0': 0.24; 'class.': 0.26; 'logging': 0.26; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'message-id:@mail.gmail.com': 0.30; 'libraries': 0.31; 'url:python': 0.33; 'problem': 0.35; 'basic': 0.35; 'received:google.com': 0.35; 'url:org': 0.36; 'url:library': 0.38; 'pm,': 0.38; 'does': 0.39; 'sure': 0.39; 'how': 0.40; 'url:3': 0.61; 'url:4': 0.69; 'to:none': 0.92 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=2eRGp5HMz8JxZu9B0piwtSjofIG7JLMrecDlqTzV5Lk=; b=Qg+aUXNR9ksYnQyyjNvxDTc7td+CIF0/R24htQ/uU7XWU+08umXFLs6A56/TP762+3 vF+GoTpjh+myw1UW74aW0tBQ3+SHfi6e74m2+WMiQo6OsWHEvKc4efXi2GjiGhg2xuDF 4XxfKXwnNzNESBgNYSwtwoJsSOn2Sfh4XMpsDvlNDi8hY0xcmyKLJxU4DnL6l5ruDrW2 fBtGu0fL8Lau4irUklsB3TWsEZY8uV7kQBPD8PRnsqv7P6y2lAdP8Tu5v8xohz30/MrE 7K/dy/4WYAQFV6SQvh+IxEnGWrBm/a2J7VlIUo7//usa46dK4oKZ8OUaXyDYOgqfgaiO dqxg== MIME-Version: 1.0 X-Received: by 10.52.244.84 with SMTP id xe20mr14149596vdc.3.1401803366381; Tue, 03 Jun 2014 06:49:26 -0700 (PDT) In-Reply-To: <87d2equn23.fsf@elektro.pacujo.net> References: <874n03t5t9.fsf@elektro.pacujo.net> <7x4n03dor0.fsf@ruckus.brouhaha.com> <878upe8poc.fsf@elektro.pacujo.net> <87ha42uos2.fsf@elektro.pacujo.net> <87d2equn23.fsf@elektro.pacujo.net> Date: Tue, 3 Jun 2014 23:49:26 +1000 Subject: Re: Benefits of asyncio From: Chris Angelico Cc: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1401803369 news.xs4all.nl 2871 [2001:888:2000:d::a6]:36166 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:72519 On Tue, Jun 3, 2014 at 11:42 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> https://docs.python.org/3.4/library/logging.html#logging.Logger.debug >> >> What happens if that blocks? How can you make sure it won't? > > I haven't used that class. Generally, Python standard libraries are not > readily usable for nonblocking I/O. > > For myself, I have solved that particular problem my own way. Okay. How do you do basic logging? (Also - rolling your own logging facilities, instead of using what Python provides, is the simpler solution? This does not aid your case.) ChrisA