Re: [Tutor] R: Re: Re: Re: Class learning

2015-01-24 Thread Alan Gauld
On 24/01/15 01:50, Cameron Simpson wrote: On 24Jan2015 00:47, Alan Gauld wrote: But why a property rather than a simple method? Because it is a value that feels like an attribute. OK, Having seen Dannys reply as well as yours I guess I see the logic. I think Python's openness has lead to

Re: [Tutor] R: Re: Re: Re: Class learning

2015-01-24 Thread Cameron Simpson
On 24Jan2015 09:16, Alan Gauld wrote: On 24/01/15 01:50, Cameron Simpson wrote: On 24Jan2015 00:47, Alan Gauld wrote: But why a property rather than a simple method? Because it is a value that feels like an attribute. OK, Having seen Dannys reply as well as yours I guess I see the logi

Re: [Tutor] Does the Python way of doing things have a definite preference for the structure and content of program file header comments?

2015-01-24 Thread Steven D'Aprano
On Fri, Jan 23, 2015 at 12:10:38AM -0600, boB Stepp wrote: > On Thu, Jan 22, 2015 at 5:45 PM, Steven D'Aprano wrote: > > On Thu, Jan 22, 2015 at 03:17:58PM -0600, boB Stepp hid the following > > question in the subject line: > > > > "Does the Python way of doing things have a definite preference f

Re: [Tutor] R: Re: Re: Re: Class learning

2015-01-24 Thread Mark Lawrence
On 24/01/2015 01:50, Cameron Simpson wrote: My intuition is that a function is costly (potentially) and that consulting an attribute is very cheap. I don't want to break such intuition. It's not just your intuition, it's a fact. Function calls are costly, relative to attribute lookup that

Re: [Tutor] Initiating an external email transmission

2015-01-24 Thread Steven D'Aprano
On Thu, Jan 22, 2015 at 07:09:24PM -0800, dw wrote: > I have a python script that I've created. > It logs into an online email service and sends out an email. > It works in my Linux box, and it works in my Windows 7 box. > I've also converted it with Py2EXE and it works as an executable in my > Win

Re: [Tutor] R: Re: Re: Re: Class learning

2015-01-24 Thread Cameron Simpson
On 24Jan2015 15:03, Mark Lawrence wrote: On 24/01/2015 01:50, Cameron Simpson wrote: My intuition is that a function is costly (potentially) and that consulting an attribute is very cheap. I don't want to break such intuition. It's not just your intuition, it's a fact. Function calls are co

Re: [Tutor] Initiating an external email transmission

2015-01-24 Thread bw_dw
I apologize I should have known better than to have posted without getting more info from the user. Since then, I've discovered that simply sending someone a Py2ExE executable is not sufficient. A little more investigation about Py2EXE and I'm beginning to see it requires both the executable f