Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
http://www.java2s.com/example/python-book/class-bases-attribute.html
class rec: pass # Empty namespace object
rec.name = 'Bob' # Just objects with attributes
rec.age = 40 # ww w . ja v a2 s.c o m
d = rec.__bases__ # Class to superclasses link, () in 2.X
#d = rec.__ancestors__ #AttributeError: type object 'rec' has no attribute '__ancestors__'
#d = rec.__super__ #AttributeError: type object 'rec' has no attribute '__super__'
#d = rec.__upper__ #AttributeError: type object 'rec' has no attribute '__upper__'
print( d )
ans D
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
seaverick
1 month, 4 weeks agoMallie
1 year, 3 months agoBaldridge
1 year, 10 months ago666_m
1 year, 10 months agomacxsz
1 year, 11 months ago