FAQ
Hi,

First: This is probably my fault in forgetting to consider some call
when embedding python ....

When doing:

if __name__ == "__main__":

in modules i get the following error:

Traceback (innermost last):
File "/var/www/cgi-bin/CGIX.py", line 641, in ?
if __name__=="__main__":
TypeError: function requires at least 2 arguments; 1 given

Could some enlightened head give me a pointer as to what i've done wrong
(or am missing)?

Please query for more information - i haven't included much (because the
program is a bit large)...

Error on Linux 2.4 - using python 1.5 (haven't tried yet with 2.2 - but
i think the error is there as well)...

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouppython-list @
categoriespython
postedSep 24, '02 at 12:11p
activeSep 24, '02 at 12:11p
posts1
users1
websitepython.org

1 user in discussion

Kim Petersen: 1 post

People

Translate

site design / logo © 2022 Grokbase