Re: [Tutor] python memory management

2016-09-01 Thread Joel Goldstick
On Thu, Sep 1, 2016 at 4:21 PM, monik...@netzero.net wrote: > Thank you for your explanation. It is very clear and confirms what I thought > I knew. However, I had a job interview and the interview said it was a > mistake that I did not say that in cases when there are multiple > programmers,

Re: [Tutor] python memory management

2016-09-01 Thread monik...@netzero.net
Thank you for your explanation. It is very clear and confirms what I thought I knew. However, I had a job interview and the interview said it was a mistake that I did not say that in cases when there are multiple programmers, there might be some objects/references left and not deallocated from

Re: [Tutor] python memory management

2016-09-01 Thread Steven D'Aprano
On Thu, Sep 01, 2016 at 02:12:11PM +, monik...@netzero.net wrote: > Hi: > Can somebody please explain how memory is managed by python? What kind > of memory it uses? What structures use what kind of memory? > If many people work on the same project and have many instances of the > same object

Re: [Tutor] python memory management

2016-09-01 Thread Alan Gauld via Tutor
On 01/09/16 15:12, monik...@netzero.net wrote: > Can somebody please explain how memory is managed by python? > What kind of memory it uses? What structures use what kind of memory? I'm not sure what you have in mind? Do you want to know the internal structure of the various data types? Do you wa

[Tutor] python memory management

2016-09-01 Thread monik...@netzero.net
Hi: Can somebody please explain how memory is managed by python? What kind of memory it uses? What structures use what kind of memory? If many people work on the same project and have many instances of the same object how do they ensure that all instances are killed before the programs exit? App

Re: [Tutor] Inheritance vs Assignment

2016-09-01 Thread khalil zakaria Zemmoura
Let me clarify some ideas that I spoke about in my last email. I talked about extending exception and linearization from the perspective of inheriting from a class without adding behavior or some extra attributes, because the code you provided was doing that. Reading the Alan response made me rea

Re: [Tutor] Inheritance vs Assignment

2016-09-01 Thread khalil zakaria Zemmoura
Assignment and inheritance are not comparable at all In the inheritance you are extending the base class (a) and in "a=b()" you are instantiating it - you create an object according to the blueprint that you difining. To understand the difference. Inheritance: Say you defined a costume type (a cla

Re: [Tutor] Inheritance vs Assignment

2016-09-01 Thread Alan Gauld via Tutor
On 01/09/16 04:18, kay Cee wrote: > Class a(): > def__init__(self, var): > pass > > Class b(a): > def__init__(self): > super().__init__(self, var) > pass > Is it better to do > > b = a() > > Instead of making b its own class? > Also, what would be the ben

Re: [Tutor] Help with NameError

2016-09-01 Thread Peter Otten
Bryan Callow wrote: > Could someone help me with a NameError that I can't seem to figure out. > The program asks for an input and then runs two DC motors. It worked for > a while and then when I reopened the program today I keep getting this > error. Thank you. -Bryan [...] > print('Which dire

Re: [Tutor] Help with NameError

2016-09-01 Thread Alan Gauld via Tutor
On 01/09/16 02:29, Bryan Callow wrote: > Could someone help me with a NameError that I can't seem to figure out. It is hard for us to figure out without seeing the error message. It should tell you which name is in error and where. Please repost with the full error message included. -- Alan G A

[Tutor] Inheritance vs Assignment

2016-09-01 Thread kay Cee
Suppose there is -> Class a(): def__init__(self, var): pass Class b(a): def__init__(self): super().__init__(self, var) pass Note: syntax may be incorrect ... Is it better to do b = a() Instead of making b its own class? Also, what would be the benef

[Tutor] Help with NameError

2016-09-01 Thread Bryan Callow
Could someone help me with a NameError that I can't seem to figure out. The program asks for an input and then runs two DC motors. It worked for a while and then when I reopened the program today I keep getting this error. Thank you. -Bryan import RPi.GPIO as GPIO from time import sleep GPIO.s

[Tutor] python projects

2016-09-01 Thread monik...@netzero.net
Hi: I have been taking python classes for overa year now and studying and studying it all days long. However, I still cannot get a job as a python automation qa (despite of many years of experience in qa) because everybody is looking for a senior python developers for automation qa jobs. Entry l