Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
class Pertanyaan: def cetak(self): print "Variabel :", self.__class__.__name__ print "Pertanyaan:", self.pertanyaan class Nama(Pertanyaan): pertanyaan = "Siapa nama kamu?" nama = Nama() nama.cetak() kelas = type('Umur', (Pertanyaan, object, ), { 'pertanyaan': 'Berapa umurmu?' }) objek = kelas() objek.cetak()
This paste will be private.
From the Design Piracy series on my blog: