Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • What about the abc module mentioned in the other answer then ?? Commented Dec 8, 2010 at 0:06
  • 7
    For what it's worth, Python is strongly typed, it's just dynamically typed. Commented Dec 8, 2010 at 0:09
  • 1
    Ack. This is the first time I'd heard of the abc module. I'm leaving this answer, though, because it applies to versions of Python before 2.6 (CentOS ships with 2.4), and duck typing still works here. Commented Dec 8, 2010 at 0:35
  • 1
    Yeah, it's a good point about the duck typing. Generally, programming in Python, you will generally be happier just calling the methods you expect rather than enforcing real type constraints. The abc is a nice option to specify what kind of duck you want, though. Commented Dec 8, 2010 at 1:11
  • python certainly is strongly typed. he is referring to static vs. dynamic typing. Commented Dec 8, 2010 at 3:30