Re: [Tutor] class data member and objects of class in python

2013-09-12 Thread zubair alam
a_store = mypizza_shop.get_pizza() print "{}".format(repr(domino_pizza_store.next())) can't we again use the same object mypizza_shop once its generator is exhausted On Thu, Sep 12, 2013 at 6:53 AM, Marc Tompkins wrote: > On Wed, Sep 11, 2013 at 5:40 AM, zubair alam wrote: > >

[Tutor] class data member and objects of class in python

2013-09-11 Thread zubair alam
i am learning how a __class__ data member behaves in python as compared to static data member in java, but following code is throwing error class PizzaShop(): pizza_stock = 10 def get_pizza(self): while not PizzaShop.pizza_stock: PizzaShop.pizza_stock -= 1

Re: [Tutor] Coursera Python Course starts today

2013-08-20 Thread zubair alam
@anung..have you started this course? On Tue, Aug 20, 2013 at 11:44 AM, Anung Ariwibowo wrote: > Just started today before catching bus to work. I will start this evening. > > Regards, > Anung > > > On 8/20/13, Leam Hall wrote: > > A little cooperation is motivating. I have finished up Week 1 b

Re: [Tutor] Coursera Python Course starts today

2013-08-20 Thread zubair alam
i signed up for the course...lets see how much i gain from this. On Tue, Aug 20, 2013 at 11:43 AM, Anung Ariwibowo wrote: > This should go to the list > > Let's discuss our progress then, if it is allowed by list rules. I was > just retake the course as well. > > Regards, > Anung > > > On 8/20/1

Re: [Tutor] Question

2013-08-07 Thread zubair alam
what exactly you want to do by [1,2,3] = "Anything" the above code is called unpacking of sequence, so there must be some variable on left side of assignment operator. but you have list of integers, why? On Tue, Jul 23, 2013 at 11:15 PM, Don Jennings wrote: > > On Jul 21, 2013, at 10:26