tag:blogger.com,1999:blog-4161159973198205072.post4289745786788695983..comments2023-05-29T05:51:28.383-04:00Comments on Web Infrastructure Systems, Deployments, and Technologies.: Odd Python ErrorsJeff McNeilhttp://www.blogger.com/profile/02255393480838160969noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-4161159973198205072.post-47737390360519473952009-05-15T10:48:00.000-04:002009-05-15T10:48:00.000-04:00I don't think I've ever bumped into that one. Modu...I don't think I've ever bumped into that one. Module object's init function takes a doc and a name, so that makes sense... good one.Jeff McNeilhttps://www.blogger.com/profile/02255393480838160969noreply@blogger.comtag:blogger.com,1999:blog-4161159973198205072.post-17918591519702712122009-05-15T04:39:00.000-04:002009-05-15T04:39:00.000-04:00There is an error that happens
when you accidental...There is an error that happens<br />when you accidentally use a module<br />instead of a class as base:<br /><br />In [1]: import os<br /><br />In [2]: class C(os): pass<br /> ...: <br />---------------------------------------------------------------------------<br />TypeError Traceback (most recent call last)<br /><br />/home/msimionato/trunk/ROnline/ipython console in module()<br /><br />TypeError: Error when calling the metaclass bases<br /> module.__init__() takes at most 2 arguments (3 given)Michele Simionatohttps://www.blogger.com/profile/14332630874146810354noreply@blogger.comtag:blogger.com,1999:blog-4161159973198205072.post-42238033773196730112009-05-14T17:51:00.000-04:002009-05-14T17:51:00.000-04:00Excellent post!Excellent post!rgzhttps://www.blogger.com/profile/00299003818364105534noreply@blogger.com