Re: object().__dict__

2014-04-23 Thread Phil Connell
On Wed, Apr 23, 2014 at 04:21:26PM +0200, Amirouche Boubekki wrote: > 2014-04-23 15:59 GMT+02:00 Phil Connell : > > > On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: > > > 2014-04-23 8:11 GMT+02:00 Cameron Simpson : > > > > Look up the "__

Re: object().__dict__

2014-04-23 Thread Phil Connell
On Wed, Apr 23, 2014 at 03:48:32PM +0200, Amirouche Boubekki wrote: > 2014-04-23 8:11 GMT+02:00 Cameron Simpson : > > Look up the "__slots__" dunder var in the Python doco index: > > > > https://docs.python.org/3/glossary.html#term-slots > > > > You'll see it as a (rarely used, mostly discouraged

Re: Using asyncio for serial port

2014-02-11 Thread Phil Connell
On 8 Feb 2014 23:45, wrote: > > > Hiya > > I'm looking at using asyncio for creating an socket <-> serial protocol bridge, but looking at the current implementation of asyncio it looks to be quite socket specific. > > I can't see any way to get it to support a simple serial device. > > Any advice

Re: Trying to wrap my head around futures and coroutines

2014-01-15 Thread Phil Connell
On Mon, Jan 06, 2014 at 06:56:00PM -0600, Skip Montanaro wrote: > So, I'm looking for a little guidance. It seems to me that futures, > coroutines, and/or the new Tulip/asyncio package might be my salvation, but > I'm having a bit of trouble seeing exactly how that would work. Let me > outline a si

Re: Periodic execution with asyncio

2013-11-25 Thread Phil Connell
On Sat, Nov 23, 2013 at 09:30:29PM +0100, Tobias M. wrote: > Now putting this into a PeriodicTask class that provides a similar interface > like our callback version, I get: > > > import asyncio > > class PeriodicTask2(object): > > def __init__(self, func, interval): > self.func =

Re: OT: e-mail reply to old/archived message

2013-06-11 Thread Phil Connell
On 12 Jun 2013 02:20, wrote: > > How can i be able to answer you guys posts by my mail client? Don't delete mails that you might want to reply to. If you do anything else, you're just making it difficult for yourself. Cheers, Phil > -- > http://mail.python.org/mailman/listinfo/python-list --

Re: Split a list into two parts based on a filter?

2013-06-11 Thread Phil Connell
On 12 Jun 2013 01:36, "Roy Smith" wrote: > > In article , > Serhiy Storchaka wrote: > > > 11.06.13 07:11, Roy Smith написав(ла): > > > In article , > > > Roel Schroeven wrote: > > > > > >> new_songs, old_songs = [], [] > > >> [(new_songs if s.is_new() else old_songs).append(s) for s in songs]

RE: Total Beginner - Extracting Data from a Database Online (Screenshot)

2013-05-27 Thread Phil Connell
On 28 May 2013 02:21, "Carlos Nepomuceno" wrote: > > > > Date: Mon, 27 May 2013 17:58:00 -0700 > > Subject: Re: Total Beginner - Extracting Data from a Database Online (Screenshot) > > From: logan.c.gra...@gmail.com > > To: python-list@python.org > [...] >

Re: import in Python3.3

2013-03-26 Thread Phil Connell
On Tue, Mar 26, 2013 at 08:37:00AM -0700, rocky wrote: > And again, I get the impression that for the use case asked about, there > isn't much ambiguity. If I am in mypackage.foo and I want to access > mypackage.collections I should be able to say something like that without > ambiguity or that