I am just starting to look at writing class in Python. Can a class that I write inherit Python calendar?
bumsfeld 413 Nearly a Posting Virtuoso
Recommended Answers
Jump to PostYou can only inherit another class. The module calendar contains a function calendar, but you can't inherit a function. This small code might explain a few basic things ...
import calendar import Cookie import inspect if inspect.isclass(calendar): print "calendar is a class" else: print "calendar is not …
All 3 Replies
a1eio 16 Junior Poster
vegaseat 1,735 DaniWeb's Hypocrite Team Colleague
bumsfeld 413 Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.