Re: [Tutor] question about descriptors

2015-11-13 Thread Steven D'Aprano
On Thu, Nov 12, 2015 at 12:11:19PM +, Albert-Jan Roskam wrote: > > __getattr__() is only invoked as a fallback when the normal attribute > > lookup > > fails: > > > Aha.. and "normal attributes" live in self.__dict__? Not necessarily. Attributes can live either in "slots" or the instance

Re: [Tutor] question about descriptors

2015-11-13 Thread Albert-Jan Roskam
> To: tutor@python.org > From: __pete...@web.de > Date: Fri, 13 Nov 2015 09:26:55 +0100 > Subject: Re: [Tutor] question about descriptors > > Albert-Jan Roskam wrote: > > >> __getattr__() is only invoked as a fallback when the normal attribute > >> lookup fails: > > > > > > Aha.. and "normal at

Re: [Tutor] Python ASTM Implementation

2015-11-13 Thread Albert-Jan Roskam
> To: mokshavi...@gmail.com > CC: alan.ga...@btinternet.com; tutor@python.org; sjeik_ap...@hotmail.com; > l...@openend.se > From: l...@openend.se > Subject: Re: [Tutor] Python ASTM Implementation > Date: Fri, 13 Nov 2015 12:04:27 +0100 > > In a message of Fri, 13 Nov 2015 10:07:49 +0530, "Br. S

Re: [Tutor] Python ASTM Implementation

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 12:03:41 +0530, "Br. Sayan" writes: >Well, doing > >$ python setup.py install > >did the installation. It can now import astm. > >Should I try with PySerial first, as the communication is through RS232 >serial cable? > >Sayan Are you on ubuntu? Be warned about this

Re: [Tutor] Python ASTM Implementation

2015-11-13 Thread Laura Creighton
In a message of Fri, 13 Nov 2015 10:07:49 +0530, "Br. Sayan" writes: >Maybe it's setuptools that is too old? Or perhaps pip? >> sudo apt-get update >> sudo apt-get install --only-upgrade python-setuptools python-pip >> >> I believe it's safer to install Python packages via apt-get if you are >> us

Re: [Tutor] Python ASTM Implementation

2015-11-13 Thread Br. Sayan
Well, doing $ python setup.py install did the installation. It can now import astm. Should I try with PySerial first, as the communication is through RS232 serial cable? Sayan On 13 November 2015 at 10:07, Br. Sayan wrote: > *Alan* > > ​I note that the most recent release of ASTM (Mar 16 201

Re: [Tutor] Python ASTM Implementation

2015-11-13 Thread Br. Sayan
*Alan* ​I note that the most recent release of ASTM (Mar 16 2013) > pre-dates 2.7.4 (Apr 6th 2013) by a week or two. > There is a slight chance that it is incompatible. I can't > ​see any notes about which Python versions it works with. > In the Chnagelog for Ver. 0.4 it says "Set minimal Python

Re: [Tutor] question about descriptors

2015-11-13 Thread Peter Otten
Albert-Jan Roskam wrote: >> __getattr__() is only invoked as a fallback when the normal attribute >> lookup fails: > > > Aha.. and "normal attributes" live in self.__dict__? I meant "normal (attribute lookup)" rather than "(normal attribute) lookup". __getattr__() works the same (I think) when