Q:

Python Error: object.__new__() takes no parameters

I get the error:  
object.__new__() takes no parameters

When I run the following program:
import urllib as net
class weather:
    api = "http://www.google/ig/api?weather="
    wData = None
    def _init_(self,location):
        self.api = self.api + location
        self.wData = net.urlopen(self.api).read()
    def showXML(self):
        return self.wData

w = weather("11570")
w.showXML()

A:

You have:
def _init_(self,location):

Did you mean this?
def __init__(self, location):

Special method names always begin and end with two underscores.
Also it would've been nice to include a traceback, and mention the version of Python you're using—I assume 3, or your class wouldn't inherit from object by default.

