[Tutor] Aggregation vs Composition

2017-12-10 Thread jia yue Kee
Good Day All, I am new to Python and I came across the concept of Composition and Aggregation the other day in Dusty Philips's Python 3: Object-Oriented Programming book. Based on my reading, what I gathered was that Composition implies a relationship where the child cannot exist independent of t

[Tutor] Question

2017-12-10 Thread Khabbab Zakaria
I am working on a program where I found the line: x,y,z = np.loadtext('abcabc.txt', unpack= True, skiprows =1) What does the x, y, z thing mean? What does the unpack= True mean? Thank you -- Khabbab Zakaria Dept of Power Engineering Jadavpur University Calcutta India __

Re: [Tutor] Aggregation vs Composition

2017-12-10 Thread Alan Gauld via Tutor
On 10/12/17 05:07, jia yue Kee wrote: > in Dusty Philips's Python 3: Object-Oriented > Programming book. Caveat: I've not read this book so can only guess at what the author might be meaning. > Based on my reading, what I gathered was that Composition implies a > relationship where the child can

Re: [Tutor] Question

2017-12-10 Thread Alan Gauld via Tutor
On 10/12/17 05:48, Khabbab Zakaria wrote: > I am working on a program where I found the line: > x,y,z = np.loadtext('abcabc.txt', unpack= True, skiprows =1) > What does the x, y, z thing mean? > What does the unpack= True mean? They are related. unpacking is a feature of Python whereby a collect

Re: [Tutor] Question

2017-12-10 Thread Steven D'Aprano
Hello Khabbab Zakaria, On Sun, Dec 10, 2017 at 11:18:16AM +0530, Khabbab Zakaria wrote: > I am working on a program where I found the line: > x,y,z = np.loadtext('abcabc.txt', unpack= True, skiprows =1) > What does the x, y, z thing mean? "x, y, z = ..." is iterable unpacking. The right hand side

Re: [Tutor] Aggregation vs Composition

2017-12-10 Thread boB Stepp
I own this book, too. I'll insert the portions of the text that I believe the OP is referring to. On Sun, Dec 10, 2017 at 3:01 AM, Alan Gauld via Tutor wrote: > On 10/12/17 05:07, jia yue Kee wrote: > >> in Dusty Philips's Python 3: Object-Oriented >> Programming book. > > Caveat: I've not read